Repository navigation
Deprecate old FP8 online MoE quantization class - #44514
Conversation
|
Documentation preview: https://vllm--44514.org.readthedocs.build/en/44514/ |
|
Hi @yma11, the pre-commit checks have failed. Please run: uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, Tip Is
|
| if kv_cache_dtype == "fp8": | ||
| attn = model.model.decoder.layers[0].self_attn.attn | ||
| assert isinstance(attn.quant_method, Fp8KVCacheMethod) | ||
| assert attn._k_scale == 1.0 | ||
| assert attn._v_scale == 1.0 | ||
|
|
||
| if current_platform.is_cuda(): | ||
| if current_platform.is_cuda() or current_platform.is_xpu(): |
There was a problem hiding this comment.
@divakar-amd could you please check this part if it should be cuda_alike?
There was a problem hiding this comment.
This is fine. The rocm case is handled below at line 182/194 and is unaffected.
| if kv_cache_dtype == "fp8": | ||
| attn = model.model.decoder.layers[0].self_attn.attn | ||
| assert isinstance(attn.quant_method, Fp8KVCacheMethod) | ||
| assert attn._k_scale == 1.0 | ||
| assert attn._v_scale == 1.0 | ||
|
|
||
| if current_platform.is_cuda(): | ||
| if current_platform.is_cuda() or current_platform.is_xpu(): |
There was a problem hiding this comment.
This is fine. The rocm case is handled below at line 182/194 and is unaffected.
ce9f545 to
735ee3e
Compare
|
@AndreasKaratzas Can you take a look again to see whether okay to merge? |
|
This pull request has merge conflicts that must be resolved before it can be |
|
You got a merge conflict. But also I am not codeowner for this. Tests look alright, but source needs to be reviewed by codeowners |
|
@mgoin @yewentao256 Can you PTAL? Thanks. |
|
This pull request has merge conflicts that must be resolved before it can be |
b2b70d7 to
8c088b2
Compare
|
@yewentao256 I found your PR #45463 has removed |
| @@ -65,7 +65,7 @@ def load_model( | |||
|
|
|||
| # Log peak GPU memory after loading weights. This is needed | |||
| # to have test coverage on peak memory for online quantization. | |||
| if current_platform.is_cuda_alike(): | |||
| if current_platform.is_cuda_alike() or current_platform.is_xpu(): | |||
There was a problem hiding this comment.
Why do we need to update here, and related XPU config?
There was a problem hiding this comment.
Yes. This change is to make XPU pass on test_fp8.py.
yewentao256
left a comment
There was a problem hiding this comment.
LGTM, thanks for the work!
Signed-off-by: Yan Ma <yan.ma@intel.com>
Signed-off-by: Yan Ma <yan.ma@intel.com>
Signed-off-by: Yan Ma <yan.ma@intel.com>
Signed-off-by: Yan Ma <yan.ma@intel.com>
Signed-off-by: Yan Ma <yan.ma@intel.com>
Purpose
Deprecate old FP8 online quantization classes
Fp8OnlineLinearMethodandFp8OnlineMoEMethod, as it can be replaced by new online quantization frontend.Test Plan
pytest -s -v tests/quantization/test_fp8.pyTest Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.