Update README.md
Browse files
README.md
CHANGED
|
@@ -32,8 +32,6 @@ Most models. More specifically, any `transformer` LLM/VLM trained for causal lan
|
|
| 32 |
```py
|
| 33 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 34 |
|
| 35 |
-
# `generate` with `custom_generate` -> `generate` uses custom code
|
| 36 |
-
# note: calling the custom method prints "✨ using a custom generation method ✨"
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct")
|
| 38 |
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct", device_map="auto")
|
| 39 |
|
|
|
|
| 32 |
```py
|
| 33 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 34 |
|
|
|
|
|
|
|
| 35 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct")
|
| 36 |
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct", device_map="auto")
|
| 37 |
|