Skip to content

Fix Rope scaling#3598

Merged
andreaskoepf merged 5 commits into
LAION-AI:mainfrom
shahules786:fix-rope
Jul 25, 2023
Merged

Fix Rope scaling#3598
andreaskoepf merged 5 commits into
LAION-AI:mainfrom
shahules786:fix-rope

Conversation

@shahules786

@shahules786 shahules786 commented Jul 24, 2023

Copy link
Copy Markdown
Collaborator

What

Fixed rope scaling for all models.

Why

Earlier the model config was being ignored during patching which might cause issues like initializing with wrong max_position_embeddings

How

Gets required args from model_config and passes it to patching functions.

@andreaskoepf andreaskoepf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks a lot.

@andreaskoepf
andreaskoepf merged commit a32993d into LAION-AI:main Jul 25, 2023
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