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

Make hf_olmo device_map compatible #393

Merged
merged 3 commits into from
Dec 11, 2023
Merged

Make hf_olmo device_map compatible #393

merged 3 commits into from
Dec 11, 2023

Conversation

AkshitaB
Copy link
Contributor

No description provided.

@AkshitaB AkshitaB merged commit 364e21e into main Dec 11, 2023
10 checks passed
@AkshitaB AkshitaB deleted the hf-olmo-auto-map branch December 11, 2023 05:37
@sarahwie
Copy link
Contributor

This doesn't seem to be working as expected-- when I try running the following line
> model = OLMoForCausalLM.from_pretrained("allenai/OLMo-7B", device_map="auto")

I get the error

The model weights are not tied. Please use the `tie_weights` method before using the `infer_auto_device` function.

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.

2 participants