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

[Doc]: Marlin does not support weight_bits = uint4b8 #8149

Closed
1 task done
xiaotukuaipao12318 opened this issue Sep 4, 2024 · 3 comments · Fixed by #8165
Closed
1 task done

[Doc]: Marlin does not support weight_bits = uint4b8 #8149

xiaotukuaipao12318 opened this issue Sep 4, 2024 · 3 comments · Fixed by #8165
Labels
documentation Improvements or additions to documentation

Comments

@xiaotukuaipao12318
Copy link

📚 The doc issue

使用 python -m vllm.entrypoints.openai.api_server --host 0.0.0.0 --port 17003 --model /data/Qwen2-7B-Instruct-GPTQ-Int4 --served-model-name Qwen 命令 加载下载的Qwen2-7B-Instruct-GPTQ-Int4模型时,显示Marlin 量化异常。
错误如下:
lf.model = get_model(model_config=self.model_config,
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/model_loader/init.py", line 21, in get_model
return loader.load_model(model_config=model_config,
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/model_loader/loader.py", line 324, in load_model
model = _initialize_model(model_config, self.load_config,
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/model_loader/loader.py", line 152, in _initialize_model
quant_config = _get_quantization_config(model_config, load_config)
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/model_loader/loader.py", line 93, in _get_quantization_config
quant_config = get_quant_config(model_config, load_config)
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/model_loader/weight_utils.py", line 132, in get_quant_config
return quant_cls.from_config(hf_quant_config)
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/gptq_marlin.py", line 84, in from_config
return cls(weight_bits, group_size, desc_act, is_sym,
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/gptq_marlin.py", line 51, in init
verify_marlin_supported(quant_type=self.quant_type,
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/utils/marlin_utils.py", line 88, in verify_marlin_supported
raise ValueError(err_msg)
ValueError: Marlin does not support weight_bits = uint4b8. Only types = [] are supported (for group_size = 128, min_capability = 75, zp = False).

Suggest a potential alternative/fix

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@xiaotukuaipao12318 xiaotukuaipao12318 added the documentation Improvements or additions to documentation label Sep 4, 2024
@youkaichao
Copy link
Member

cc @mgoin

@mgoin
Copy link
Member

mgoin commented Sep 4, 2024

Based on min_capability = 75 is it the case that you are using a T4 GPU? This should be failing before getting to this point since Marlin only supports >=80

@mgoin
Copy link
Member

mgoin commented Sep 4, 2024

Thanks for finding this issue, I have resolved it in the attached PR above ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants