This commit is contained in:
Heyang Sun 2023-12-20 09:41:59 +08:00 committed by GitHub
parent 3aa8b66bc3
commit 612651cb5d

View file

@ -85,7 +85,7 @@ def load_gguf_mixtral(loader: GGUFFileLoader, dtype: torch.dtype = torch.float):
model = MixtralForCausalLM(mixtral_config)
for name, weight in state_dict.items():
set_module_tensor_to_device(model, name, "cpu", weight, dytype=dtype)
set_module_tensor_to_device(model, name, "cpu", weight, dtype=dtype)
model = model.cpu()