update app
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME, trust_remote_code=True)
|
|
| 14 |
model = AutoModelForCausalLM.from_pretrained(
|
| 15 |
MODEL_NAME,
|
| 16 |
torch_dtype=torch.float16,
|
| 17 |
-
device_map="
|
| 18 |
trust_remote_code=True,
|
| 19 |
)
|
| 20 |
if not tokenizer.chat_template:
|
|
|
|
| 14 |
model = AutoModelForCausalLM.from_pretrained(
|
| 15 |
MODEL_NAME,
|
| 16 |
torch_dtype=torch.float16,
|
| 17 |
+
device_map="cpu",
|
| 18 |
trust_remote_code=True,
|
| 19 |
)
|
| 20 |
if not tokenizer.chat_template:
|