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 num_hidden_layers in initialization of new model in Mamba #30403

Merged
merged 1 commit into from
May 20, 2024

Conversation

SrGonao
Copy link
Contributor

@SrGonao SrGonao commented Apr 22, 2024

What does this PR do?

Originally, the initialization was using config.num_layers instead of config.num_hidden_layers. This fixes that.

Fixes

Initialization would use a parameter not in the config (num_layers)

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).

Who can review?

@ArthurZucker and @younesbelkada

Originally, the initialization was using config.num_layers instead of config.num_hidden_layers. This fixes that.
@SrGonao SrGonao marked this pull request as draft April 30, 2024 11:38
@SrGonao SrGonao marked this pull request as ready for review April 30, 2024 11:39
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Thanks for the nit

@ArthurZucker ArthurZucker merged commit 1834916 into huggingface:main May 20, 2024
17 checks passed
@SrGonao SrGonao deleted the patch-1 branch May 23, 2024 11:29
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