-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
[ROCm] [Feature] [Doc] [Dockerfile] Support Per-Token-Activation Per-Channel-Weight FP8 Quantization Inferencing #12499
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
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
Signed-off-by: kliuae <kuanfu.liu@embeddedllm.com>
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
…12244) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…m-project#12237) Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…project#12252) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…ct#12246) Signed-off-by: youkaichao <youkaichao@gmail.com>
…-project#12259) Signed-off-by: Roger Wang <ywang@roblox.com>
…ct#12260) Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
Signed-off-by: Mengqing Cao <cmq0113@163.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
…ed (vllm-project#10802) Signed-off-by: Jannis Schönleber <joennlae@gmail.com>
Signed-off-by: Jinzhen Lin <linjinzhen@hotmail.com>
…project#10907) Signed-off-by: rickyx <rickyx@anyscale.com>
Signed-off-by: Andy Lo <andy@mistral.ai>
Signed-off-by: Adrian Cole <adrian.cole@elastic.co>
…ject#12235) Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
…shes (vllm-project#12277) Signed-off-by: maleksan85 <maleksan@amd.com> Co-authored-by: maleksan85 <maleksan@amd.com>
…for perf validation purpose (vllm-project#12281) Signed-off-by: Hongxia Yang <hongxyan@amd.com>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…-project#12464) Signed-off-by: Isotr0py <2037008807@qq.com>
…12454) Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
Signed-off-by: Isotr0py <2037008807@qq.com>
…t#12339) Signed-off-by: Lucas Wilkinson <lwilkinson@neuralmagic.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
…12469) Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
Signed-off-by: Bowen Wang <abmfy@icloud.com> Signed-off-by: youkaichao <youkaichao@gmail.com> Co-authored-by: youkaichao <youkaichao@gmail.com>
…robs` with ChunkedPrefill (vllm-project#10132) Signed-off-by: NickLucche <nlucches@redhat.com> Signed-off-by: wallashss <wallashss@ibm.com> Co-authored-by: wallashss <wallashss@ibm.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
…vllm-project#11277) Signed-off-by: Liangfu Chen <liangfc@amazon.com> Co-authored-by: Jiangfei Duan <jfduan@outlook.com>
Signed-off-by: mgoin <michael@neuralmagic.com>
d2b5204
to
79151e0
Compare
This pull request has merge conflicts that must be resolved before it can be |
This PR is closed as the git history is messed up. The PR is replaced by #12501 |
Support Per-Token-Activation Per-Channel-Weight FP8 Quantization Inferencing
Note: This PR feature requires ROCm 6.3 and later and GPU Arch MI300 and later.
Description
This PR involves the following enhancements
This is a PR specific to support Per-Token-Activation Per-Channel-Weight (PTPC-FP8) FP8 Quantization Inferencing.
The model will be quantized on-the-fly from BFloat16 to FP8. Model weight which are store in Float16 will need to be casted into BFloat16.
It used PyTorch latest rowwise scaled GEMM feature in
torch._scaled_mm
which is introduced in [ROCm] hipblaslt rowwise f8 gemm pytorch/pytorch#144432 , which speeds up current naive implementation by at least 2 times. For more details check out the Performance sectionDockerfile.rocm_base
PyTorch repo commit has been updated to3a585126
.Dockerfile.rocm
is left untouched as the base image is referencing to AMD docker hub registry. That base image at this point in time has already installed with PyTorch repo commit3a585126
.Dockerfile.rocm_base
.Performance
Perplexity Test
Model: Llama-3.1-8B-Instruct
Dataset: Wikitexts
GPU: MI300X
Speed Test (Old naive implementation vs torch._scaled_mm rowwise scaled GEMM feature)
Model: Llama-3.1-70B-Instruct
Dataset: SharedGPT
GPU: 1xMI300X