mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Add large model config (#9140)
This commit is contained in:
parent
2a7e8e1608
commit
0b2f46fa9e
1 changed files with 3 additions and 0 deletions
|
|
@ -610,6 +610,9 @@ class T5EncoderOnlyModelTester:
|
|||
self.scope = None
|
||||
self.is_training = is_training
|
||||
|
||||
def get_large_model_config(self):
|
||||
return T5Config.from_pretrained("t5-base")
|
||||
|
||||
def prepare_config_and_inputs(self):
|
||||
input_ids = ids_tensor([self.batch_size, self.encoder_seq_length], self.vocab_size)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue