Skip to content

support int4-awq/gptq for Qwen - #554

Closed
Tlntin wants to merge 7 commits into
NVIDIA:mainfrom
Tlntin:main
Closed

Tlntin wants to merge 7 commits into
NVIDIA:mainfrom
Tlntin:main

Conversation

@Tlntin

@Tlntin Tlntin commented Dec 4, 2023

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread examples/qwen/quantize.py Resolved
Co-authored-by: yiakwy-xpu-ml-framework-team <[email protected]>
@yiakwy-xpu-ml-framework-team

yiakwy-xpu-ml-framework-team commented Dec 5, 2023 •

Copy link
Copy Markdown

Hi @Tlntin , it seems that although a int4 quant mode has (enum) been passed into TensorRT-LLM's trt builder and config,
the real int4 is generated by this package "https://github.com/PanQiWei/AutoGPTQ" . (following the traditional way to calibrate weights or activation in host).

How do you think about usage of activation aware quantization of native int4 in TRT-LLM ?

@Tlntin

Tlntin commented Dec 5, 2023

Copy link
Copy Markdown
Contributor Author

Hi @Tlntin , it seems that although a int4 quant mode has (enum) been passed into TensorRT-LLM's trt builder and config, the real int4 is generated by this package "https://github.com/PanQiWei/AutoGPTQ" . (following the traditional way to calibrate weights or activation in host).

How do you think about usage of activation aware quantization of native int4 in TRT-LLM ?

I believe that TensorRT-LLM has relatively low difficulty in adapting to int4 quantization after auto-gptq. The experience is excellent. Auto-gptq itself also supports many models, so using it as an example in the official demo would yield better results than using llama-gptq.

As far as I know, the huggingface transformers package has already integrated auto-gptq and auto-awq. Perhaps TensorRT-LLM could consider incorporating these two packages and use them as demonstrations to support existing models. This would also help reduce the difficulty for newcomers in adapting to new models.

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