yi-01-ai
commited on
Commit
•
a99ec35
1
Parent(s):
2f906f7
Auto Sync from git://github.com/01-ai/Yi.git/commit/231bf09e44204b105eeaab5f2aa5c50644544ace
Browse files
README.md
CHANGED
@@ -321,8 +321,8 @@ Or if you'd like to get your hands dirty:
|
|
321 |
```python
|
322 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
323 |
|
324 |
-
model = AutoModelForCausalLM.from_pretrained("01-ai/Yi-34B", device_map="auto", torch_dtype="auto"
|
325 |
-
tokenizer = AutoTokenizer.from_pretrained("01-ai/Yi-34B"
|
326 |
inputs = tokenizer("There's a place where time stands still. A place of breath taking wonder, but also", return_tensors="pt")
|
327 |
max_length = 256
|
328 |
|
|
|
321 |
```python
|
322 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
323 |
|
324 |
+
model = AutoModelForCausalLM.from_pretrained("01-ai/Yi-34B", device_map="auto", torch_dtype="auto")
|
325 |
+
tokenizer = AutoTokenizer.from_pretrained("01-ai/Yi-34B")
|
326 |
inputs = tokenizer("There's a place where time stands still. A place of breath taking wonder, but also", return_tensors="pt")
|
327 |
max_length = 256
|
328 |
|