Update README.md
Browse files
README.md
CHANGED
@@ -31,7 +31,7 @@ Usage:
|
|
31 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
|
32 |
|
33 |
tokenizer = AutoTokenizer.from_pretrained("hiyouga/Qwen-14B-Chat-LLaMAfied")
|
34 |
-
model = AutoModelForCausalLM.from_pretrained("hiyouga/Qwen-14B-Chat-LLaMAfied")
|
35 |
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|
36 |
|
37 |
query = (
|
|
|
31 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
|
32 |
|
33 |
tokenizer = AutoTokenizer.from_pretrained("hiyouga/Qwen-14B-Chat-LLaMAfied")
|
34 |
+
model = AutoModelForCausalLM.from_pretrained("hiyouga/Qwen-14B-Chat-LLaMAfied", torch_dtype="auto", device_map="auto")
|
35 |
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|
36 |
|
37 |
query = (
|