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

Fix: loading DBRX back from saved path #35728

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zucchini-nlp
Copy link
Member

@zucchini-nlp zucchini-nlp commented Jan 16, 2025

What does this PR do?

Fixes huggingface/trl#2574 and adds a test for that. Plus fixes one edge case when the composite model is loaded with torch_dtype=torch.float16 (i.e. the dtype is not string or dict) by adding one small condition

Copy link
Member

@qgallouedec qgallouedec left a comment

Choose a reason for hiding this comment

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

The PR does solve huggingface/trl#2574 👍

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.

ValueError: Found unknown kwargs when loading DbrxForCausalLM
2 participants