[BugFix] Fix invalid flashinfer_fused_moe_blockscale_fp8 op registration#32855
Conversation
There was a problem hiding this comment.
Code Review
This pull request correctly fixes a bug in the registration of the flashinfer_fused_moe_blockscale_fp8 custom operator. The issue was an "invalid numeric default value" error caused by using an enum member as a default value for an integer parameter. The fix addresses this by using the .value attribute to provide the integer value from the enum. A related change in a call site ensures consistency by also comparing against the enum's integer value. The changes are accurate and resolve the bug.
|
Hi @fadara01, the pre-commit checks have failed. Please run: uv pip install pre-commit
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, Tip Is
|
|
Could you please take a look? @mgoin / @bigPYJ1151 / @robertgshaw2-redhat |
…ockscale_fp8 op registration Default value has to be int and not enum Fixes: vllm-project#32840 Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com>
a4abd21 to
eb5a933
Compare
mgoin
left a comment
There was a problem hiding this comment.
Makes sense to me, thanks for the fix
yewentao256
left a comment
There was a problem hiding this comment.
LGTM, thanks for the work!
|
Thanks for reviewing! |
…ion (vllm-project#32855) Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com> Signed-off-by: 陈建华 <1647430658@qq.com>
…ion (vllm-project#32855) Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com>
…ion (vllm-project#32855) Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com>
…ion (vllm-project#32855) Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com>
…ion (vllm-project#32855) Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com>
…ion (vllm-project#32855) Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com>
[BugFix] Fix invalid numeric default value in flashinfer_fused_moe_blockscale_fp8 op registration
Fixes: #32840
Purpose
Fix invalid numeric default value in flashinfer_fused_moe_blockscale_fp8 op registration
The default value has to be an int an not an enum as the error indicates:
Test Plan
Reproducer on #32840
Test Result
Reproducer doesn't fail
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.