Update README.md
Browse files
README.md
CHANGED
@@ -46,8 +46,8 @@ Usage:
|
|
46 |
```python
|
47 |
|
48 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
|
49 |
-
tokenizer = AutoTokenizer.from_pretrained("Minami-su/Qwen1.5-
|
50 |
-
model = AutoModelForCausalLM.from_pretrained("Minami-su/Qwen1.5-
|
51 |
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|
52 |
|
53 |
messages = [
|
|
|
46 |
```python
|
47 |
|
48 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
|
49 |
+
tokenizer = AutoTokenizer.from_pretrained("Minami-su/Qwen1.5-14B-Chat_mistral")
|
50 |
+
model = AutoModelForCausalLM.from_pretrained("Minami-su/Qwen1.5-14B-Chat_mistral", torch_dtype="auto", device_map="auto")
|
51 |
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|
52 |
|
53 |
messages = [
|