mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fix test_compare_unprocessed_logit_scores
(#39053)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
58c7689226
commit
23b7e73f05
@ -3807,7 +3807,7 @@ class GenerationIntegrationTests(unittest.TestCase):
|
||||
logits_gen = outputs.logits[0][0]
|
||||
|
||||
# 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):
|
||||
# tell model to generate text and return unprocessed/unwarped logit scores
|
||||
|
Loading…
Reference in New Issue
Block a user