cloneQ commited on
Commit
4c65cb7
·
verified ·
1 Parent(s): 48848fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -184,7 +184,7 @@ def load_model():
184
  # model = (AutoModelForCausalLM.from_pretrained(
185
  # model_name_or_path,
186
  # trust_remote_code=True).to(torch.bfloat16).cuda())
187
- model = AutoModelForCausalLM.from_pretrained(model_name_or_path, map_location=torch.device('cpu'))
188
  model.to_bettertransformer()
189
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path,
190
  trust_remote_code=True)
 
184
  # model = (AutoModelForCausalLM.from_pretrained(
185
  # model_name_or_path,
186
  # trust_remote_code=True).to(torch.bfloat16).cuda())
187
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path, map_location=torch.device('cpu'),trust_remote_code=True)
188
  model.to_bettertransformer()
189
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path,
190
  trust_remote_code=True)