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

Qwen nan fix #522

Merged
merged 3 commits into from
Jun 30, 2024
Merged

Qwen nan fix #522

merged 3 commits into from
Jun 30, 2024

Conversation

baoyf4244
Copy link
Contributor

After quantization, Qwen2-72B can not inference using multi gpu with vllm, so we need to pad intermediate_size from 29568 to 29696 with zeros. But after padding, the nan problem occurs again. This commit fix it.

The details can be found in QwenLM/Qwen2.5#578, it's found in GPTQ, but also occurs in AWQ.

…vllm, so we need to pad intermediate_size from 29568 to 29696. But after padding, the nan problem occurs again. This commit fix it.
@casper-hansen casper-hansen merged commit 35d23db into casper-hansen:main Jun 30, 2024
@baoyf4244 baoyf4244 deleted the qwen_nan_fix branch July 5, 2024 10:37
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