thobuiq commited on
Commit
2acde50
1 Parent(s): 2a810dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="auto",
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