piphany commited on
Commit
ecd0327
·
verified ·
1 Parent(s): ba5b75a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def main():
19
  # Load the full, merged model (quantization_config has been removed)
20
  model = AutoModelForCausalLM.from_pretrained(
21
  MODEL_ID,
22
- torch_dtype=torch.float32, # 在CPU上使用 torch.float32 更稳定
23
  device_map="auto",
24
  trust_remote_code=True
25
  )
 
19
  # Load the full, merged model (quantization_config has been removed)
20
  model = AutoModelForCausalLM.from_pretrained(
21
  MODEL_ID,
22
+ torch_dtype=torch.float16,
23
  device_map="auto",
24
  trust_remote_code=True
25
  )