Skip to content

Commit adbee68

Browse files
committed
comment
1 parent 7d3b390 commit adbee68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/llmcompressor/transformers/obcq/test_consecutive_runs.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"tests/llmcompressor/transformers/obcq/obcq_configs/consec_runs/gpu"
1717
)
1818

19-
quantization_config = CompressedTensorsConfig(run_compressed=False)
20-
2119

2220
class TestConsecutiveRuns(unittest.TestCase):
21+
quantization_config = CompressedTensorsConfig(run_compressed=False)
22+
2323
def _test_consecutive_runs(
2424
self, tolerance: float, num_calibration_samples: int = 16
2525
):
@@ -45,7 +45,7 @@ def _test_consecutive_runs(
4545
first_model = AutoModelForCausalLM.from_pretrained(
4646
self.output_first,
4747
device_map="auto",
48-
quantization_config=quantization_config,
48+
quantization_config=self.quantization_config,
4949
)
5050

5151
layer_0_sparse = tensor_sparsity(
@@ -78,7 +78,7 @@ def _test_consecutive_runs(
7878
second_model = AutoModelForCausalLM.from_pretrained(
7979
self.output_second,
8080
device_map="auto",
81-
quantization_config=quantization_config,
81+
quantization_config=self.quantization_config,
8282
)
8383

8484
layer_0_sparse = tensor_sparsity(
@@ -141,7 +141,7 @@ def setUp(self):
141141
self.model = AutoModelForCausalLM.from_pretrained(
142142
self.model,
143143
device_map=self.device,
144-
quantization_config=quantization_config,
144+
quantization_config=self.quantization_config,
145145
)
146146

147147
self.output = "./oneshot_output"

0 commit comments

Comments
 (0)