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

Fixing bug with param count without embeddings #12461

Merged
merged 4 commits into from
Jul 1, 2021
Merged

Conversation

TevenLeScao
Copy link
Contributor

The model param number count utility (model.num_parameters) had an exclude_embeddings flag that did not actually exclude embedding counts. This PR fixes this bug so that the flag behaves properly.

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 implementing this! I think you forgot to run make style on your branch though.

src/transformers/modeling_utils.py Outdated Show resolved Hide resolved
TevenLeScao and others added 3 commits July 1, 2021 16:07
@sgugger sgugger merged commit 7f0027d into master Jul 1, 2021
@sgugger sgugger deleted the model_param_count branch July 1, 2021 17:25
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.

2 participants