hiyouga commited on
Commit
c570a32
1 Parent(s): d7c71db

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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").cuda()
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 = (