Skip to content

Commit 47cad58

Browse files
authored
Merge branch 'main' into metadata-lora
2 parents 4588d83 + 0f91f2f commit 47cad58

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎tests/quantization/bnb/test_4bit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ def test_generate_quality_dequantize(self):
476476
r"""
477477
Test that loading the model and unquantize it produce correct results.
478478
"""
479+
torch.use_deterministic_algorithms(True)
479480
self.pipeline_4bit.transformer.dequantize()
480481
output = self.pipeline_4bit(
481482
prompt=self.prompt,

‎tests/quantization/bnb/test_mixed_int8.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ def test_generate_quality_dequantize(self):
478478
r"""
479479
Test that loading the model and unquantize it produce correct results.
480480
"""
481+
torch.use_deterministic_algorithms(True)
481482
self.pipeline_8bit.transformer.dequantize()
482483
output = self.pipeline_8bit(
483484
prompt=self.prompt,

0 commit comments

Comments
 (0)