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: unpin flake8 and fix cs errors #4367

Merged
merged 2 commits into from
May 14, 2020
Merged

Fix: unpin flake8 and fix cs errors #4367

merged 2 commits into from
May 14, 2020

Conversation

julien-c
Copy link
Member

No description provided.

@julien-c julien-c requested a review from LysandreJik May 14, 2020 16:34
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Very nice!

@LysandreJik LysandreJik merged commit 448c467 into master May 14, 2020
@LysandreJik LysandreJik deleted the fix_flake8_update branch May 14, 2020 17:14
if args.vocab_transform:
for w in ["weight", "bias"]:
compressed_sd[f"vocab_transform.{w}"] = state_dict[f"cls.predictions.transform.dense.{w}"]
compressed_sd[f"vocab_layer_norm.{w}"] = state_dict[f"cls.predictions.transform.LayerNorm.{w}"]
compressed_sd[f"vocab_transform.{w}"] = state_dict["cls.predictions.transform.dense.{w}"]
Copy link
Contributor

@girishponkiya girishponkiya May 18, 2020

Choose a reason for hiding this comment

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

I think state_dict["cls.predictions.transform.dense.{w}"] shoud be state_dict[f"cls.predictions.transform.dense.{w}"] (the key should be f-string).

Same goes for the next line as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct – I'll fix it on master.

julien-c added a commit that referenced this pull request May 18, 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