Skip to content

Commit

Permalink
fix: remove deletion of removed model_kwargs key
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof committed Dec 26, 2023
1 parent fb442c9 commit cd34680
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ def load_model(
model_kwargs["device"] = torch.cuda.current_device()
del model_kwargs["torch_dtype"]
del model_kwargs["device_map"]
del model_kwargs["max_memory"]

model = MambaLMHeadModel.from_pretrained(
base_model,
Expand Down

0 comments on commit cd34680

Please sign in to comment.