Generate tests: modality-agnostic input preparation (#33685)
This commit is contained in:
@@ -107,7 +107,7 @@ class Starcoder2ModelTester:
|
||||
|
||||
input_mask = None
|
||||
if self.use_input_mask:
|
||||
input_mask = torch.tril(torch.ones(self.batch_size, self.seq_length)).to(torch_device)
|
||||
input_mask = torch.tril(torch.ones_like(input_ids).to(torch_device))
|
||||
|
||||
token_type_ids = None
|
||||
if self.use_token_type_ids:
|
||||
|
||||
Reference in New Issue
Block a user