dantepalacio commited on
Commit
c5fd002
·
1 Parent(s): 74a63dc

Update README.md

Browse files

import torch
from transformers import MT5Tokenizer, LongT5ForConditionalGeneration

model_name = "dantepalacio/ruLongT5-Large"
tokenizer = MT5Tokenizer.from_pretrained(model_name)
model = LongT5ForConditionalGeneration.from_pretrained(model_name, ignore_mismatched_sizes=True)

Files changed (1) hide show
  1. README.md +12 -1
README.md CHANGED
@@ -1,4 +1,15 @@
 
 
 
 
1
  original model: agemagician/mlong-t5-tglobal-large
2
 
3
 
4
- adaptation guide: https://towardsdatascience.com/how-to-adapt-a-multilingual-t5-model-for-a-single-language-b9f94f3d9c90
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ru
4
+ ---
5
  original model: agemagician/mlong-t5-tglobal-large
6
 
7
 
8
+ adaptation guide: https://towardsdatascience.com/how-to-adapt-a-multilingual-t5-model-for-a-single-language-b9f94f3d9c90
9
+
10
+ import torch
11
+ from transformers import MT5Tokenizer, LongT5ForConditionalGeneration
12
+
13
+ model_name = "dantepalacio/ruLongT5-Large"
14
+ tokenizer = MT5Tokenizer.from_pretrained(model_name)
15
+ model = LongT5ForConditionalGeneration.from_pretrained(model_name, ignore_mismatched_sizes=True)