Skip to content

Commit

Permalink
Update src/axolotl/utils/models.py
Browse files Browse the repository at this point in the history
Co-authored-by: Wing Lian <wing.lian@gmail.com>
  • Loading branch information
kallewoof and winglian committed Dec 22, 2023
1 parent a546d81 commit 68982f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def load_model(
device_map = infer_auto_device_map(
model_canvas,
max_memory=max_memory,
dtype="float16", # TODO: may probably use bfloat16 and others here as well
dtype=cfg.torch_dtype,
)
# We can discard max_memory now as we have a device map set up for us
max_memory = None
Expand Down

0 comments on commit 68982f8

Please sign in to comment.