Release v0.3.5.post1 (#2022)

This commit is contained in:
Lianmin Zheng
2024-11-13 10:27:12 -08:00
committed by GitHub
parent 54479d6f30
commit f407fcf9ef
5 changed files with 10 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ class TestPyTorchSamplingBackend(unittest.TestCase):
)
metrics = run_eval(args)
assert metrics["score"] >= 0.65
self.assertGreaterEqual(metrics["score"], 0.65)
def test_greedy(self):
@@ -62,7 +62,7 @@ class TestPyTorchSamplingBackend(unittest.TestCase):
if first_text is None:
first_text = text
assert text == first_text, f'"{text}" is not identical to "{first_text}"'
self.assertEqual(text, first_text)
first_text = None
@@ -82,7 +82,7 @@ class TestPyTorchSamplingBackend(unittest.TestCase):
text = response_batch[i]["text"]
if first_text is None:
first_text = text
assert text == first_text, f'"{text}" is not identical to "{first_text}"'
self.assertEqual(text, first_text)
if __name__ == "__main__":