Fix tokenizer path
Browse files
README.md
CHANGED
@@ -18,12 +18,10 @@ T5ForConditionalGeneration files for the [Madlad-400](https://github.com/google-
|
|
18 |
from transformers import T5ForConditionalGeneration, T5Tokenizer, GenerationConfig
|
19 |
|
20 |
model = T5ForConditionalGeneration.from_pretrained('jbochi/madlad400-3b-mt')
|
21 |
-
|
22 |
-
tokenizer = T5Tokenizer.from_pretrained('./madlad400-3b-mt')
|
23 |
|
24 |
text = "<2es> how do you say torch in portuguese?"
|
25 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
26 |
-
|
27 |
outputs = model.generate(
|
28 |
input_ids=input_ids,
|
29 |
generation_config=GenerationConfig(
|
|
|
18 |
from transformers import T5ForConditionalGeneration, T5Tokenizer, GenerationConfig
|
19 |
|
20 |
model = T5ForConditionalGeneration.from_pretrained('jbochi/madlad400-3b-mt')
|
21 |
+
tokenizer = T5Tokenizer.from_pretrained('jbochi/madlad400-3b-mt')
|
|
|
22 |
|
23 |
text = "<2es> how do you say torch in portuguese?"
|
24 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
|
|
25 |
outputs = model.generate(
|
26 |
input_ids=input_ids,
|
27 |
generation_config=GenerationConfig(
|