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

[TF] from_pt should respect authorized_unexpected_keys #8056

Merged

Conversation

sshleifer
Copy link
Contributor

This comes in handy when

        "model.encoder.embed_tokens.weight",
        "model.decoder.embed_tokens.weight",

are in the PT state dict but not the TF symbolic weights.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding!

@sshleifer sshleifer merged commit bc9332b into huggingface:master Oct 26, 2020
@sshleifer sshleifer deleted the respect-tf-authorized_unexpected_keys branch October 26, 2020 17:53
fabiocapsouza pushed a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
fabiocapsouza added a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
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.

3 participants