Skip to content

Commit e1ba399

Browse files
committed
allow small diff in metric test
1 parent bf46fae commit e1ba399

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/inference/test_inference_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def test_ollama_inference_engine(self):
464464
{"source": "Answer in one word only. What is the capital of Canada"},
465465
]
466466

467-
engine = OllamaInferenceEngine(model="llama3:8b", temperature=0.0)
467+
engine = OllamaInferenceEngine(model="llama3.2:1b", temperature=0.0)
468468
predictions = engine.infer(dataset)
469469

470470
self.assertTrue("Ottawa" in predictions[0], predictions[0])

tests/library/test_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2708,7 +2708,7 @@ def test_perplexity(self):
27082708
metric=perplexity_question, predictions=prediction, references=references
27092709
)
27102710
self.assertAlmostEqual(
2711-
first_instance_target, outputs[0]["score"]["instance"]["score"]
2711+
first_instance_target, outputs[0]["score"]["instance"]["score"], places=5
27122712
)
27132713

27142714
def test_fuzzyner(self):

0 commit comments

Comments
 (0)