Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peft no longer needs device_map #187

Merged
merged 2 commits into from
Jun 12, 2023
Merged

peft no longer needs device_map #187

merged 2 commits into from
Jun 12, 2023

Conversation

winglian
Copy link
Collaborator

fixes #184
see also huggingface/peft#534

@@ -437,8 +436,6 @@ def load_lora(model, cfg):
model = PeftModel.from_pretrained(
model,
cfg.lora_model_dir,
device_map=cfg.device_map,
# torch_dtype=torch.float16,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we pass in torch_dtype here?

Copy link
Collaborator Author

@winglian winglian Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't need to, that's been commented out for a while I think, I'm just removing it b/c it's a comment at this point

@winglian winglian merged commit 93dacba into main Jun 12, 2023
@winglian winglian deleted the strip-peft-device-map branch June 13, 2023 17:04
mkeoliya pushed a commit to mkeoliya/axolotl that referenced this pull request Dec 15, 2023
…/strip-peft-device-map

peft no longer needs device_map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unexpected keyword argument 'device_map'
2 participants