likewendy commited on
Commit
da8ad43
·
1 Parent(s): fd944cc
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -14,6 +14,7 @@ model = AutoModelForCausalLM.from_pretrained(
14
  device_map="cuda", # 使用 GPU
15
  torch_dtype="auto", # 自动选择数据类型
16
  trust_remote_code=True, # 允许远程代码加载
 
17
  )
18
  tokenizer = AutoTokenizer.from_pretrained("./phi-4/phi-4")
19
 
 
14
  device_map="cuda", # 使用 GPU
15
  torch_dtype="auto", # 自动选择数据类型
16
  trust_remote_code=True, # 允许远程代码加载
17
+ use_safetensors=True,
18
  )
19
  tokenizer = AutoTokenizer.from_pretrained("./phi-4/phi-4")
20