fix test_compare_unprocessed_logit_scores (#39053)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -3807,7 +3807,7 @@ class GenerationIntegrationTests(unittest.TestCase):
|
|||||||
logits_gen = outputs.logits[0][0]
|
logits_gen = outputs.logits[0][0]
|
||||||
|
|
||||||
# assert that unprocessed logits from generate() are same as those from modal eval()
|
# assert that unprocessed logits from generate() are same as those from modal eval()
|
||||||
self.assertListEqual(logits_fwd.tolist(), logits_gen.tolist())
|
torch.testing.assert_allclose(logits_fwd.tolist(), logits_gen.tolist())
|
||||||
|
|
||||||
def test_return_unprocessed_logit_scores(self):
|
def test_return_unprocessed_logit_scores(self):
|
||||||
# tell model to generate text and return unprocessed/unwarped logit scores
|
# tell model to generate text and return unprocessed/unwarped logit scores
|
||||||
|
|||||||
Reference in New Issue
Block a user