-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
[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 <[email protected]>
Signed-off-by: tjtanaa <[email protected]>
Signed-off-by: tjtanaa <[email protected]>
Signed-off-by: tjtanaa <[email protected]>
Signed-off-by: tjtanaa <[email protected]>
…12244) Signed-off-by: DarkLight1337 <[email protected]>
…m-project#12237) Signed-off-by: Jee Jee Li <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
…project#12252) Signed-off-by: DarkLight1337 <[email protected]>
…ct#12246) Signed-off-by: youkaichao <[email protected]>
…-project#12259) Signed-off-by: Roger Wang <[email protected]>
…ct#12260) Signed-off-by: Thomas Parnell <[email protected]>
Signed-off-by: Mengqing Cao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
…ed (vllm-project#10802) Signed-off-by: Jannis Schönleber <[email protected]>
Signed-off-by: Jinzhen Lin <[email protected]>
…project#10907) Signed-off-by: rickyx <[email protected]>
Signed-off-by: Andy Lo <[email protected]>
Signed-off-by: Adrian Cole <[email protected]>
…ject#12235) Signed-off-by: wangxiyuan <[email protected]>
…shes (vllm-project#12277) Signed-off-by: maleksan85 <[email protected]> Co-authored-by: maleksan85 <[email protected]>
…for perf validation purpose (vllm-project#12281) Signed-off-by: Hongxia Yang <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
…-project#12464) Signed-off-by: Isotr0py <[email protected]>
…12454) Signed-off-by: Woosuk Kwon <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
…t#12339) Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: Mark McLoughlin <[email protected]>
…12469) Signed-off-by: Woosuk Kwon <[email protected]>
Signed-off-by: Bowen Wang <[email protected]> Signed-off-by: youkaichao <[email protected]> Co-authored-by: youkaichao <[email protected]>
…robs` with ChunkedPrefill (vllm-project#10132) Signed-off-by: NickLucche <[email protected]> Signed-off-by: wallashss <[email protected]> Co-authored-by: wallashss <[email protected]>
Signed-off-by: Harry Mellor <[email protected]>
…vllm-project#11277) Signed-off-by: Liangfu Chen <[email protected]> Co-authored-by: Jiangfei Duan <[email protected]>
Signed-off-by: mgoin <[email protected]>
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_mmwhich 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_basePyTorch repo commit has been updated to3a585126.Dockerfile.rocmis 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