hiyouga commited on
Commit
d106232
1 Parent(s): 221e890

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ CSS = """
47
 
48
 
49
  tokenizer = AutoTokenizer.from_pretrained("shenzhi-wang/Llama3-8B-Chinese-Chat")
50
- model = AutoModelForCausalLM.from_pretrained("shenzhi-wang/Llama3-8B-Chinese-Chat", device_map="auto")
51
 
52
 
53
  @spaces.GPU
 
47
 
48
 
49
  tokenizer = AutoTokenizer.from_pretrained("shenzhi-wang/Llama3-8B-Chinese-Chat")
50
+ model = AutoModelForCausalLM.from_pretrained("shenzhi-wang/Llama3-8B-Chinese-Chat", torch_dtype="auto", device_map="auto")
51
 
52
 
53
  @spaces.GPU