schnell commited on
Commit
59eaa1a
1 Parent(s): 899f64f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -45,8 +45,8 @@ generator("早稲田 大学 で 自然 言語 処理 を", max_length=30, do_sam
45
 
46
  ```python
47
  from transformers import AutoTokenizer, GPT2Model
48
- tokenizer = AutoTokenizer.from_pretrained('nlp-waseda/gpt2-small-japanese')
49
- model = GPT2Model.from_pretrained('nlp-waseda/gpt2-small-japanese')
50
  text = "早稲田 大学 で 自然 言語 処理 を"
51
  encoded_input = tokenizer(text, return_tensors='pt')
52
  output = model(**encoded_input)
 
45
 
46
  ```python
47
  from transformers import AutoTokenizer, GPT2Model
48
+ tokenizer = AutoTokenizer.from_pretrained('nlp-waseda/gpt2-xl-japanese')
49
+ model = GPT2Model.from_pretrained('nlp-waseda/gpt2-xl-japanese')
50
  text = "早稲田 大学 で 自然 言語 処理 を"
51
  encoded_input = tokenizer(text, return_tensors='pt')
52
  output = model(**encoded_input)