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 llava next tie_word_embeddings config #30640

Merged
merged 3 commits into from
May 6, 2024

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented May 3, 2024

What does this PR do ?

This PR fixes the llava next config. We set tie_word_embeddings to False since we don't tie the weights at all (actually the tie_weights is redefined to call the language_model.tie_weights() instead).
This fixes the following issue #30001 where we get a warning about untied weights. This happens because we don't find any tied weights even though tie_word_embeddings is set to True.

@SunMarc SunMarc requested review from LysandreJik and NielsRogge May 3, 2024 15:57
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@NielsRogge NielsRogge left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@SunMarc SunMarc requested a review from ArthurZucker May 6, 2024 09:55
@LysandreJik LysandreJik merged commit aa64f08 into huggingface:main May 6, 2024
18 checks passed
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.

4 participants