cloneQ commited on
Commit
c01dc02
1 Parent(s): a4331c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -186,7 +186,7 @@ def load_model():
186
  # trust_remote_code=True).to(torch.bfloat16).cuda())
187
  model = AutoModelForCausalLM.from_pretrained(
188
  model_name_or_path,
189
- trust_remote_code=True).to("cpu")
190
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path,
191
  trust_remote_code=True)
192
  return model, tokenizer
 
186
  # trust_remote_code=True).to(torch.bfloat16).cuda())
187
  model = AutoModelForCausalLM.from_pretrained(
188
  model_name_or_path,
189
+ trust_remote_code=True).to(torch.float32)
190
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path,
191
  trust_remote_code=True)
192
  return model, tokenizer