Spaces:
Runtime error
Runtime error
Vision-CAIR
commited on
Commit
β’
6c45ef3
1
Parent(s):
5d798b0
Update minigpt4/models/base_model.py
Browse files
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={'
|
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(
|