Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Apr 16, 2024
1 parent 142a8cb commit 79c5a16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/neural_compressor/test_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ def test_weight_only_quantization(self, methodology, weight_dtype):
bits = 4 if "4" in weight_dtype else 8
if methodology == "gptq":
# max_input_length can be removed after neural-compressor > v2.5.1
quantization_config = GPTQConfig(bits=bits, sym=True, damp_percent=0.01, weight_dtype=weight_dtype, max_input_length=128)
quantization_config = GPTQConfig(
bits=bits, sym=True, damp_percent=0.01, weight_dtype=weight_dtype, max_input_length=128
)
else:
quantization_config = RtnConfig(bits=bits, weight_dtype=weight_dtype)

Expand Down

0 comments on commit 79c5a16

Please sign in to comment.