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

check model required transformers version #1220

Merged
merged 3 commits into from
Mar 1, 2024

Conversation

grimoire
Copy link
Collaborator

Add transformers version check for model

Mismatched model and transformers would leads to error:

2024-02-29 18:32:01,224 - lmdeploy - ERROR - ValueError: The checkpoint you are trying to load has model type `gemma` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
2024-02-29 18:32:01,225 - lmdeploy - ERROR - <transformers> test failed!
 Load model config with transformers==4.37.1 failed. Please make sure model can be loaded with huggingface API.

@grimoire
Copy link
Collaborator Author

Model dependency(such as flash_attn) check has not been added.
I can do the check by import the modeling_xxx. But it is ... heavy.

Copy link
Collaborator

@lvhan028 lvhan028 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@RunningLeon RunningLeon left a comment

Choose a reason for hiding this comment

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

LGTM

@lvhan028 lvhan028 merged commit cc06bba into InternLM:main Mar 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants