File size: 289 Bytes
d75724f |
1 2 3 4 5 6 7 8 9 10 11 12 |
```py
checkpoint = "google/t5-v1_1-xxl"
model = T5EncoderModel.from_pretrained(
checkpoint, torch_dtype=torch.bfloat16
)
tokenizer = T5Tokenizer.from_pretrained(
checkpoint
)
model.push_to_hub("ariG23498/t5-v1_1-xxl-torch")
tokenizer.push_to_hub("ariG23498/t5-v1_1-xxl-torch")``` |