There was an error while loading. Please reload this page.
2 parents 4588d83 + 0f91f2f commit 47cad58Copy full SHA for 47cad58
tests/quantization/bnb/test_4bit.py
@@ -476,6 +476,7 @@ def test_generate_quality_dequantize(self):
476
r"""
477
Test that loading the model and unquantize it produce correct results.
478
"""
479
+ torch.use_deterministic_algorithms(True)
480
self.pipeline_4bit.transformer.dequantize()
481
output = self.pipeline_4bit(
482
prompt=self.prompt,
tests/quantization/bnb/test_mixed_int8.py
@@ -478,6 +478,7 @@ def test_generate_quality_dequantize(self):
self.pipeline_8bit.transformer.dequantize()
483
output = self.pipeline_8bit(
484
0 commit comments