nhanv commited on
Commit
87370ac
1 Parent(s): 2d57274

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -31,7 +31,7 @@ The results on test set.
31
  ``` bash
32
  import torch
33
 
34
- from transformers import MT5ForConditionalGeneration, T5Tokenizer
35
  import torch
36
  if torch.cuda.is_available():
37
  device = torch.device("cuda")
@@ -43,7 +43,7 @@ else:
43
  print('No GPU available, using the CPU instead.')
44
  device = torch.device("cpu")
45
 
46
- model = MT5ForConditionalGeneration.from_pretrained("NlpHUST/t5-en-vi-small")
47
  tokenizer = T5Tokenizer.from_pretrained("NlpHUST/t5-en-vi-small")
48
  model.to(device)
49
 
31
  ``` bash
32
  import torch
33
 
34
+ from transformers import T5ForConditionalGeneration, T5Tokenizer
35
  import torch
36
  if torch.cuda.is_available():
37
  device = torch.device("cuda")
43
  print('No GPU available, using the CPU instead.')
44
  device = torch.device("cpu")
45
 
46
+ model = T5ForConditionalGeneration.from_pretrained("NlpHUST/t5-en-vi-small")
47
  tokenizer = T5Tokenizer.from_pretrained("NlpHUST/t5-en-vi-small")
48
  model.to(device)
49