[go: nahoru, domu]

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

Revert "Error (also in original) model, scaling only q matrix not qk.T dot product (qk.T/sqrt(dim_per_head))" #22444

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

sgugger
Copy link
Collaborator
@sgugger sgugger commented Mar 29, 2023

Reverts #21627

This PR changed the modeling code and as a result broke training as reported in #22426
Moreover, since the "error" was in the original code from the authors, it's not an error anymore but a feature.

This will be put in the patch v4.27.4

…T dot product (qk.T/sqrt(dim_per_head)) (#21627)"

This reverts commit bad8300.
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.

Yes, LGTM

@sgugger sgugger merged commit 55dae94 into main Mar 29, 2023
@sgugger sgugger deleted the revert-21627-patch-1 branch March 29, 2023 14:59
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

sgugger added a commit that referenced this pull request Mar 29, 2023
…T dot product (qk.T/sqrt(dim_per_head))" (#22444)

Revert "Error (also in original) model, scaling only q matrix not qk.T dot product (qk.T/sqrt(dim_per_head)) (#21627)"

This reverts commit bad8300.
raghavanone pushed a commit to raghavanone/transformers that referenced this pull request Apr 5, 2023
…T dot product (qk.T/sqrt(dim_per_head))" (huggingface#22444)

Revert "Error (also in original) model, scaling only q matrix not qk.T dot product (qk.T/sqrt(dim_per_head)) (huggingface#21627)"

This reverts commit bad8300.
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
…T dot product (qk.T/sqrt(dim_per_head))" (huggingface#22444)

Revert "Error (also in original) model, scaling only q matrix not qk.T dot product (qk.T/sqrt(dim_per_head)) (huggingface#21627)"

This reverts commit bad8300.
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.

None yet

3 participants