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 glm4-9b-chat nan error on vllm 0.3.3 #11970

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

hzjane
Copy link
Contributor

@hzjane hzjane commented Aug 30, 2024

Description

Refer to https://github.com/analytics-zoo/nano/issues/1544#issuecomment-2309163575. Use env IPEX_LLM_NOT_CONVERT_LAST_MLP to not convert last MLP to avoid nan error running glm4-chat-9b.
Then the output will be normal but the blocks will reduce (26488-25261 = 1227), and the next_token prefomance will reduce 0-1ms.

1. Why the change?

2. User API changes

3. Summary of the change

4. How to test?

  • N/A
  • Unit test: Please manually trigger the PR Validation here by inputting the PR number (e.g., 1234). And paste your action link here once it has been successfully finished.
  • Application test
  • Document test
  • ...

5. New dependencies

  • New Python dependencies
    - Dependency1
    - Dependency2
    - ...
  • New Java/Scala dependencies and their license
    - Dependency1 and license1
    - Dependency2 and license2
    - ...

@hzjane hzjane marked this pull request as ready for review August 30, 2024 01:47
@hzjane hzjane requested a review from gc-fu August 30, 2024 01:47
Copy link
Contributor

@glorysdj glorysdj left a comment

Choose a reason for hiding this comment

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

LGTM

@gc-fu gc-fu merged commit 7d10341 into intel-analytics:main Aug 30, 2024
1 check 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.

3 participants