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 max_pos_embeddings error #1478

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

AdamLouly
Copy link
Contributor

Changes Made

  • Added handling for configurations that may not have the max_position_embeddings attribute.
  • Introduced a default value of 1024 for max_position_embeddings when it's missing in the configuration.

Motivation and Context

@fxmarty fxmarty requested a review from JingyaHuang October 24, 2023 07:50
Copy link
Contributor

@JingyaHuang JingyaHuang 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 a lot for the fix! @AdamLouly

@JingyaHuang JingyaHuang merged commit 0b22218 into huggingface:main Oct 24, 2023
48 of 50 checks passed
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