Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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
|