vllm - 💡(How to fix) Fix [Bug]: kimi k2.5 Int4 default `flashinfer_trtllm_mxint4_moe` not working B300 SM103

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 132, in _moe_forward_shared (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] return runner.forward_impl( (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] ^^^^^^^^^^^^^^^^^^^^ (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 815, in forward_impl (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] shared_output, hidden_states = self._apply_quant_method( (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] ^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 492, in _apply_quant_method (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] result = self.quant_method.apply_monolithic( (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py", line 1616, in apply_monolithic (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] return flashinfer_trtllm_mxint4_moe( (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/quantization/utils/flashinfer_mxint4_moe.py", line 264, in flashinfer_trtllm_mxint4_moe (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] ).to(x.dtype) (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] ^^ (Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] AttributeError: 'list' object has no attribute 'to'

Code Example

(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 132, in _moe_forward_shared
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     return runner.forward_impl(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]            ^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 815, in forward_impl
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     shared_output, hidden_states = self._apply_quant_method(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 492, in _apply_quant_method
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     result = self.quant_method.apply_monolithic(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py", line 1616, in apply_monolithic
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     return flashinfer_trtllm_mxint4_moe(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/quantization/utils/flashinfer_mxint4_moe.py", line 264, in flashinfer_trtllm_mxint4_moe
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     ).to(x.dtype)
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]       ^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] AttributeError: 'list' object has no attribute 'to'
RAW_BUFFERClick to expand / collapse

Your current environment

Kimi K2.5 INT4

vllm/vllm-openai:v0.19.0-cu130

moonshotai/Kimi-K2.5

🐛 Describe the bug

hi @xinli-sw @kedarpotdar-nv

full reprod https://github.com/SemiAnalysisAI/InferenceX/blob/ce47b76574238b8672c7ea00ea23898f5e3c7459/benchmarks/single_node/kimik2.5_int4_b300.sh

and full logs https://github.com/SemiAnalysisAI/InferenceX/actions/runs/24695560185/job/72227409591?pr=1071

(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 132, in _moe_forward_shared
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     return runner.forward_impl(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]            ^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 815, in forward_impl
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     shared_output, hidden_states = self._apply_quant_method(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/runner/default_moe_runner.py", line 492, in _apply_quant_method
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     result = self.quant_method.apply_monolithic(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py", line 1616, in apply_monolithic
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     return flashinfer_trtllm_mxint4_moe(
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/quantization/utils/flashinfer_mxint4_moe.py", line 264, in flashinfer_trtllm_mxint4_moe
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]     ).to(x.dtype)
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949]       ^^
(Worker_TP5 pid=2071791) ERROR 04-20 23:50:01 [multiproc_executor.py:949] AttributeError: 'list' object has no attribute 'to'

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

TL;DR

The error is likely due to an incorrect data type being passed to the flashinfer_trtllm_mxint4_moe function, which expects a tensor but receives a list instead.

Guidance

  • Review the code in flashinfer_mxint4_moe.py to ensure that the input to flashinfer_trtllm_mxint4_moe is correctly typed and not a list.
  • Verify that the x variable in the error message has the expected data type, and that the to method is applicable to it.
  • Check the documentation for flashinfer_trtllm_mxint4_moe to confirm its input requirements and ensure that the calling code meets these requirements.
  • Consider adding type checking or debugging statements to identify where the incorrect data type is being introduced.

Example

No code example is provided due to the lack of context about the surrounding code.

Notes

The error message suggests a specific line of code where the error occurs, but without more context, it's difficult to provide a precise fix. The solution will depend on the intended functionality of the code and the expected data types.

Recommendation

Apply a workaround by modifying the code to ensure that the input to flashinfer_trtllm_mxint4_moe is correctly typed, or investigate and fix the root cause of the incorrect data type being passed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

vllm - 💡(How to fix) Fix [Bug]: kimi k2.5 Int4 default `flashinfer_trtllm_mxint4_moe` not working B300 SM103