ryo0634 commited on
Commit
ce50360
1 Parent(s): d3e1943

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -19,7 +19,7 @@ Trained on English and Japanese Wikipedia data.
19
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
20
 
21
  model = AutoModelForCausalLM.from_pretrained("sbintuitions/tiny-lm", torch_dtype="auto")
22
- tokenizer = AutoTokenizer.from_pretrained("sbintuitions/tiny-lm")
23
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
24
  print(generator("Hello", max_length=30, do_sample=True, top_k=100))
25
  ```
 
19
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
20
 
21
  model = AutoModelForCausalLM.from_pretrained("sbintuitions/tiny-lm", torch_dtype="auto")
22
+ tokenizer = AutoTokenizer.from_pretrained("sbintuitions/tiny-lm", use_fast=False)
23
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
24
  print(generator("Hello", max_length=30, do_sample=True, top_k=100))
25
  ```