Repository navigation
[xpu][rocm] Update current_platform.supports_fp8() for TritonExperts
#40132
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
Changes from 2 commits
b6be4c2
45c01f9
e60e1f2
135dfb4
1494723
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -323,6 +323,10 @@ def get_device_communicator_cls(cls) -> str: | |||||||||
| ) | ||||||||||
| return "vllm.distributed.device_communicators.xpu_communicator.XpuCommunicator" # noqa | ||||||||||
|
Comment on lines
323
to
324
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding
Suggested change
|
||||||||||
|
|
||||||||||
| @classmethod | ||||||||||
| def supports_fp8(cls) -> bool: | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @xinyu-intel @xuechendi can you help to take alook if this logic for XPU is correct? Can we assume all XPU supports fp8?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the logic is align with the original: |
||||||||||
| return True | ||||||||||
|
|
||||||||||
| @classmethod | ||||||||||
| def get_default_ir_op_priority( | ||||||||||
| cls, vllm_config: "VllmConfig" | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change to
on_gfx9() or on_gfx12x()is a regression in accuracy for FP8 support detection.on_gfx9()(defined on line 189) includesgfx90a(MI200 series), which does not have native hardware support for FP8 compute. Additionally,on_gfx9()as currently defined only checks forgfx942andgfx950, missing other GFX94x variants likegfx940(MI300A) which were covered by the previous prefix-based check. It is recommended to revert to the more accurate explicit check.