Defaults to adamw_torch_fused for Pytorch>=2.8 (#37358)
* Defaults to adamw_torch_fused for latest Pytorch Signed-off-by: cyy <cyyever@outlook.com> * Fix test Signed-off-by: cyy <cyyever@outlook.com> --------- Signed-off-by: cyy <cyyever@outlook.com>
This commit is contained in:
@@ -347,7 +347,8 @@ class GitModelTester:
|
||||
num_return_sequences=2,
|
||||
)
|
||||
|
||||
self.parent.assertEqual(generated_ids.shape, (self.batch_size * 2, 20))
|
||||
self.parent.assertEqual(generated_ids.shape[0], self.batch_size * 2)
|
||||
self.parent.assertTrue(generated_ids.shape[1] < 20)
|
||||
|
||||
def _test_batched_generate_captioning(self, config, input_ids, input_mask, pixel_values):
|
||||
model = GitForCausalLM(config=config)
|
||||
|
||||
Reference in New Issue
Block a user