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

LLM: fix error of 'AI-ModelScope/phi-2' hosted by ModelScope hub #10364

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

plusbang
Copy link
Contributor

@plusbang plusbang commented Mar 11, 2024

Description

In ModelScope, model_type of AI-ModelScope/phi-2 is phi-msft.
Then optimization for phixtral is applied to phi-2 and will cause error. More details are in https://github.com/analytics-zoo/nano/issues/1140#issuecomment-1987534096

2. User API changes

N/A

4. How to test?

  • Unit test
  • Local test

@plusbang plusbang added the llm label Mar 11, 2024
@plusbang plusbang requested a review from rnwang04 March 11, 2024 05:54
Copy link
Contributor

@rnwang04 rnwang04 left a comment

Choose a reason for hiding this comment

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

LGTM, please merge it after style ut is passed.
May also add simple comments here to illustrate why we need to limit this condition.

@plusbang
Copy link
Contributor Author

plusbang commented Mar 11, 2024

LGTM, please merge it after style ut is passed. May also add simple comments here to illustrate why we need to limit this condition.

Sure, have added some comments to illustrate. Will merge it after style ut pass.

@plusbang plusbang merged commit e2836e3 into intel:main Mar 11, 2024
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants