jbochi commited on
Commit
7504c16
1 Parent(s): 75e6a99

Fix tokenizer path

Browse files
Files changed (1) hide show
  1. README.md +1 -3
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(