Vision-CAIR commited on
Commit
6c45ef3
β€’
1 Parent(s): 5d798b0

Update minigpt4/models/base_model.py

Browse files
Files changed (1) hide show
  1. minigpt4/models/base_model.py +1 -1
minigpt4/models/base_model.py CHANGED
@@ -179,7 +179,7 @@ class BaseModel(nn.Module):
179
  llama_model_path,
180
  torch_dtype=torch.float16,
181
  load_in_8bit=True,
182
- device_map={'auto': low_res_device}
183
  )
184
  else:
185
  llama_model = LlamaForCausalLM.from_pretrained(
 
179
  llama_model_path,
180
  torch_dtype=torch.float16,
181
  load_in_8bit=True,
182
+ device_map={'': low_res_device}
183
  )
184
  else:
185
  llama_model = LlamaForCausalLM.from_pretrained(