Skip to content

Fix parameters tying in dispatch_model#1000

Merged
sgugger merged 2 commits intomainfrom
dispatch_model_retie
Jan 23, 2023
Merged

Fix parameters tying in dispatch_model#1000
sgugger merged 2 commits intomainfrom
dispatch_model_retie

Conversation

@sgugger
Copy link
Collaborator

@sgugger sgugger commented Jan 23, 2023

Currently dispatch_model breaks the tied parameters. This PR makes sure it does not.
Fixes #993

@sgugger sgugger requested a review from muellerzr January 23, 2023 15:46
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jan 23, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Great! Thanks for the fix and test 🤗

@sgugger sgugger merged commit ae8c487 into main Jan 23, 2023
@sgugger sgugger deleted the dispatch_model_retie branch January 23, 2023 18:10
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.

dispatch_model seems to untie weights (typically the embedding matrix and the vocab projection nn.Linear)

3 participants