Update README.md
Browse files
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 |
```
|