Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1",
|
|
16 |
load_in_4bit=True,
|
17 |
quantization_config=bnb_config,
|
18 |
torch_dtype=torch.bfloat16,
|
19 |
-
device_map="
|
20 |
trust_remote_code=True)
|
21 |
|
22 |
# using CUDA for an optimal experience
|
|
|
16 |
load_in_4bit=True,
|
17 |
quantization_config=bnb_config,
|
18 |
torch_dtype=torch.bfloat16,
|
19 |
+
device_map="cpu",
|
20 |
trust_remote_code=True)
|
21 |
|
22 |
# using CUDA for an optimal experience
|