Skip to content

skip cudagraph/DP padding in topk - #48979

Merged
WoosukKwon merged 1 commit into
vllm-project:mainfrom
gnovack:topk-skip-padding
Jul 21, 2026
Merged

skip cudagraph/DP padding in topk#48979
WoosukKwon merged 1 commit into
vllm-project:mainfrom
gnovack:topk-skip-padding

Conversation

@gnovack

@gnovack gnovack commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Purpose

This PR modifies the VLLM_MOE_SKIP_PADDING logic introduced by #46428, removing the separate call to torch.where and instead passing the is_padding mask into the topk kernel. The topk kernel then reads from is_padding to determine whether to set any given topk_ids entry to -1.

Test Plan

Unit tests

Ran Top-K kernel unit tests after adding new test cases to validate handling of pad tokens

pytest -s -v tests/kernels/moe/test_topk_softplus_sqrt.py 

End-to-End benchmarks

Benchmarked deepseek-ai/DeepSeek-V4-Flash on 4xGB200 w/ sonnet dataset, 512/512

Allgather ReduceScatter backend

Concurrency Output tok/s (baseline) Output tok/s (skip padding) % improvement Total tok/s (baseline) Total tok/s (skip padding) % improvement
8 826.27 833.62 0.89% 1573.64 1587.56 0.88%
16 1451.6 1489.92 2.64% 2754.97 2827.81 2.64%
32 2564.41 2632.43 2.65% 4866.7 4998.58 2.71%
64 4620.65 4757.85 2.97% 8770.94 9028.48 2.94%
128 8126.78 8132.84 0.07% 15426.75 15453.92 0.18%

DeepEP V2 backend

Concurrency Output tok/s (baseline) Output tok/s (skip padding) % improvement Total tok/s (baseline) Total tok/s (skip padding) % improvement
8 724.93 730.48 0.77% 1380.6 1391.18 0.77%
16 1324.77 1341.49 1.26% 2511.02 2544.42 1.33%
32 2432.17 2525.53 3.84% 4615.76 4792.98 3.84%
64 4273.25 4462.1 4.42% 8116.55 8467.59 4.32%
128 7947.95 8022.49 0.94% 15093.67 15226.37 0.88%

DeepGEMM MegaMoE

Concurrency Output tok/s (baseline) Output tok/s (skip padding) % improvement Total tok/s (baseline) Total tok/s (skip padding) % improvement
8 809.56 843.45 4.19% 1611.83 1679.3 4.19%
16 1511.34 1543.23 2.11% 3008.44 3071.91 2.11%
32 2683.05 2784.8 3.79% 5340.3 5542.82 3.79%
64 4681.23 4899 4.65% 9315.53 9748.88 4.65%
128 8378.46 8618.01 2.86% 16675.4 17152.16 2.86%

Top-K kernel microbenchmarks

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-project-automation github-project-automation Bot moved this to Ready in NVIDIA Jul 17, 2026
@WoosukKwon WoosukKwon added the ready ONLY add when PR is ready to merge/full CI is needed label Jul 17, 2026
@mergify

mergify Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @gnovack.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase label Jul 17, 2026
Signed-off-by: gnovack <novackgm@gmail.com>
@gnovack
gnovack force-pushed the topk-skip-padding branch from b210624 to 6e37c87 Compare July 18, 2026 20:53
@mergify mergify Bot removed the needs-rebase label Jul 18, 2026
@WoosukKwon
WoosukKwon merged commit 85f638a into vllm-project:main Jul 21, 2026
239 of 240 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in NVIDIA Jul 21, 2026
@urakozz

urakozz commented Jul 22, 2026

Copy link
Copy Markdown

@WoosukKwon hey guys, I'm experimenting with Intel B70 and main branch code, it looks like after this PR some function call in XPU has changed from 6 to 7 arguments and it's failing now. I understand it's main branch and so on, just FYI

docker run --rm -it     --device /dev/dri     -v /dev/dri/by-path:/dev/dri/by-path:ro     --group-add "$(getent group render | cut -d: -f3)"     --group-add "$(getent group video | cut -d: -f3)"     --ipc=host     --net=host     -e VLLM_XPU_ENABLE_XPU_GRAPH=1     -e HF_HUB_ENABLE_HF_TRANSFER=0     -e HF_HUB_OFFLINE=1     -v ~/.cache/vllm:/root/.cache/vllm     -v ~/.cache/huggingface:/root/.cache/huggingface     vllm-xpu-env     palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4     --served-model-name palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4     --host 0.0.0.0     --port 8000     --tensor-parallel-size 1     --max-model-len 32768     --kv-cache-dtype fp8     --max-num-seqs 2     --reasoning-parser qwen3     --enable-auto-tool-choice     --tool-call-parser qwen3_coder     --language-model-only     --max-num-batched-tokens 16384     --block-size 32     --trust-remote-code  --enforce-eager   --speculative-config '{"method":"mtp","num_speculative_tokens":4}'
(APIServer pid=1) INFO 07-22 06:49:01 [api_utils.py:345] 
(APIServer pid=1) INFO 07-22 06:49:01 [api_utils.py:345]        █     █     █▄   ▄█
(APIServer pid=1) INFO 07-22 06:49:01 [api_utils.py:345]  ▄▄ ▄█ █     █     █ ▀▄▀ █  version 0.25.1.dev380+g387189c42.d20260722
(APIServer pid=1) INFO 07-22 06:49:01 [api_utils.py:345]   █▄█▀ █     █     █     █  model   palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4
(APIServer pid=1) INFO 07-22 06:49:01 [api_utils.py:345]    ▀▀  ▀▀▀▀▀ ▀▀▀▀▀ ▀     ▀
(APIServer pid=1) INFO 07-22 06:49:01 [api_utils.py:345] 
(APIServer pid=1) INFO 07-22 06:49:01 [api_utils.py:273] non-default args: {'model_tag': 'palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4', 'enable_auto_tool_choice': True, 'tool_call_parser': 'qwen3_coder', 'host': '0.0.0.0', 'model': 'palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4', 'trust_remote_code': True, 'max_model_len': 32768, 'enforce_eager': True, 'served_model_name': ['palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4'], 'reasoning_parser': 'qwen3', 'block_size': 32, 'kv_cache_dtype': 'fp8', 'language_model_only': True, 'max_num_batched_tokens': 16384, 'max_num_seqs': 2, 'speculative_config': {'method': 'mtp', 'num_speculative_tokens': 4}}
(APIServer pid=1) INFO 07-22 06:49:01 [arg_utils.py:777] HF_HUB_OFFLINE is True, replace model_id [palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4] to model_path [/root/.cache/huggingface/hub/models--palmfuture--Qwen3.6-35B-A3B-GPTQ-Int4/snapshots/00a66983516f8f8057741221277eed4141c9e431]
(APIServer pid=1) INFO 07-22 06:49:01 [model.py:623] Resolved architecture: Qwen3_5MoeForConditionalGeneration
(APIServer pid=1) INFO 07-22 06:49:01 [model.py:1788] Using max model len 32768
(APIServer pid=1) INFO 07-22 06:49:02 [cache.py:285] Using fp8 data type to store kv cache. It reduces the GPU memory footprint and boosts the performance. Meanwhile, it may cause accuracy drop without a proper scaling factor
(APIServer pid=1) INFO 07-22 06:49:02 [model.py:623] Resolved architecture: Qwen3_5MoeMTP
(APIServer pid=1) INFO 07-22 06:49:02 [model.py:1788] Using max model len 262144
(APIServer pid=1) WARNING 07-22 06:49:02 [speculative.py:901] Enabling num_speculative_tokens > 1 will run multiple times of forward on same MTP layer,which may result in lower acceptance rate
(APIServer pid=1) INFO 07-22 06:49:02 [speculative.py:1126] Overriding draft model max model len from 262144 to 32768
(APIServer pid=1) INFO 07-22 06:49:02 [scheduler.py:242] Chunked prefill is enabled with max_num_batched_tokens=16384.
(APIServer pid=1) INFO 07-22 06:49:03 [vllm.py:1109] Asynchronous scheduling is enabled.
(APIServer pid=1) WARNING 07-22 06:49:03 [vllm.py:1163] Enforce eager set, disabling torch.compile and CUDAGraphs. This is equivalent to setting -cc.mode=none -cc.cudagraph_mode=none
(APIServer pid=1) WARNING 07-22 06:49:03 [vllm.py:1213] Inductor compilation was disabled by user settings, optimizations settings that are only active during inductor compilation will be ignored.
(APIServer pid=1) INFO 07-22 06:49:03 [kernel.py:303] Final IR op priority after setting platform defaults: IrOpPriorityConfig(rms_norm=['xpu_kernels', 'native'], fused_add_rms_norm=['xpu_kernels', 'native'])
(APIServer pid=1) INFO 07-22 06:49:03 [vllm.py:1392] Cudagraph is disabled under eager mode
(APIServer pid=1) INFO 07-22 06:49:03 [xpu.py:332] XPU platform: set server shutdown_timeout=5.
(APIServer pid=1) INFO 07-22 06:49:05 [compilation.py:329] Enabled custom fusions: norm_quant, act_quant
(APIServer pid=1) INFO 07-22 06:49:21 [registry.py:134] All limits of multimodal modalities supported by the model are set to 0, running in text-only mode.
(EngineCore pid=240) INFO 07-22 06:49:35 [core.py:116] Initializing a V1 LLM engine (v0.25.1.dev380+g387189c42.d20260722) with config: model='/root/.cache/huggingface/hub/models--palmfuture--Qwen3.6-35B-A3B-GPTQ-Int4/snapshots/00a66983516f8f8057741221277eed4141c9e431', speculative_config=SpeculativeConfig(method='mtp', model='/root/.cache/huggingface/hub/models--palmfuture--Qwen3.6-35B-A3B-GPTQ-Int4/snapshots/00a66983516f8f8057741221277eed4141c9e431', num_spec_tokens=4), tokenizer='/root/.cache/huggingface/hub/models--palmfuture--Qwen3.6-35B-A3B-GPTQ-Int4/snapshots/00a66983516f8f8057741221277eed4141c9e431', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=True, dtype=torch.bfloat16, max_seq_len=32768, download_dir=None, load_format=auto, tensor_parallel_size=1, pipeline_parallel_size=1, data_parallel_size=1, decode_context_parallel_size=1, dcp_comm_backend=ag_rs, disable_custom_all_reduce=True, quantization=auto_gptq, quantization_config=None, enforce_eager=True, enable_return_routed_experts=False, kv_cache_dtype=fp8, device_config=xpu, structured_outputs_config=StructuredOutputsConfig(backend='auto', disable_any_whitespace=False, disable_additional_properties=False, reasoning_parser='qwen3', reasoning_parser_plugin='', enable_in_reasoning=False), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=None, kv_cache_metrics=False, kv_cache_metrics_sample=0.01, cudagraph_metrics=False, enable_layerwise_nvtx_tracing=False, enable_mfu_metrics=False, enable_mm_processor_stats=False, enable_logging_iteration_details=False, jit_monitor_mode='warn', jit_monitor_verbose=False), seed=0, served_model_name=palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4, enable_prefix_caching=False, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.NONE: 0>, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['all'], 'ir_enable_torch_wrap': False, 'splitting_ops': [], 'compile_mm_encoder': False, 'cudagraph_mm_encoder': False, 'encoder_cudagraph_token_budgets': [], 'encoder_cudagraph_max_vision_items_per_batch': 0, 'encoder_cudagraph_max_frames_per_batch': None, 'compile_sizes': [], 'compile_ranges_endpoints': [16384], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.NONE: 0>, 'cudagraph_num_of_warmups': 0, 'cudagraph_capture_sizes': [], 'cudagraph_copy_inputs': False, 'cudagraph_specialize_lora': True, 'use_inductor_graph_partition': False, 'pass_config': {'fuse_norm_quant': True, 'fuse_act_quant': True, 'fuse_attn_quant': False, 'enable_sp': False, 'fuse_gemm_comms': False, 'fuse_allreduce_rms': False, 'enable_qk_norm_rope_fusion': False, 'fuse_rope_kvcache_cat_mla': False, 'fuse_act_padding': False, 'fuse_qk_norm_rope_kvcache': False}, 'max_cudagraph_capture_size': 0, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': None, 'fast_moe_cold_start': False, 'static_all_moe_layers': []}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['xpu_kernels', 'native'], fused_add_rms_norm=['xpu_kernels', 'native']), enable_flashinfer_autotune=True, enable_cutedsl_warmup=True, enable_jit_warmup=True, enable_bf16x3_router_gemm=False, moe_backend='auto', linear_backend='auto')
(EngineCore pid=240) INFO 07-22 06:49:37 [registry.py:134] All limits of multimodal modalities supported by the model are set to 0, running in text-only mode.
(EngineCore pid=240) INFO 07-22 06:49:38 [parallel_state.py:1612] world_size=1 rank=0 local_rank=0 distributed_init_method=tcp://192.168.86.36:53849 backend=xccl
(EngineCore pid=240) INFO 07-22 06:49:38 [parallel_state.py:1943] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, PCP rank 0, TP rank 0, EP rank 0, EPLB rank N/A
2026:07:22-06:49:38:  240 |CCL_WARN| value of CCL_ATL_TRANSPORT changed to be ofi (default:mpi)
2026:07:22-06:49:38:  240 |CCL_WARN| could not get local_idx/count from environment variables, trying to get them from ATL
2026:07:22-06:49:39:  412:[0] |CCL_WARN| no membind support for NUMA node 0, skip thread membind
2026:07:22-06:49:39:  240:[0] |CCL_WARN| pidfd is not supported, fallbacks to drmfd exchange mode
(EngineCore pid=240) WARNING 07-22 06:49:39 [__init__.py:204] min_p and logit_bias parameters won't work with speculative decoding.
(EngineCore pid=240) INFO 07-22 06:49:39 [gpu_model_runner.py:5250] Starting to load model /root/.cache/huggingface/hub/models--palmfuture--Qwen3.6-35B-A3B-GPTQ-Int4/snapshots/00a66983516f8f8057741221277eed4141c9e431...
(EngineCore pid=240) INFO 07-22 06:49:39 [xpu.py:211] Using backend AttentionBackendEnum.FLASH_ATTN for vit attention
(EngineCore pid=240) INFO 07-22 06:49:39 [mm_encoder_attention.py:373] Using AttentionBackendEnum.FLASH_ATTN for MMEncoderAttention.
(EngineCore pid=240) INFO 07-22 06:49:41 [qwen_gdn_linear_attn.py:150] Using Triton/FLA GDN prefill kernel (requested=auto, head_k_dim=128).
(EngineCore pid=240) INFO 07-22 06:49:41 [int_wna16.py:266] Using 'XPU' WNA16 MoE backend.
(EngineCore pid=240) INFO 07-22 06:49:41 [xpu.py:177] Using Flash Attention backend.
(EngineCore pid=240) INFO 07-22 06:49:41 [flash_attn.py:788] Using FlashAttention version 2
(EngineCore pid=240) INFO 07-22 06:49:45 [weight_utils.py:869] Filesystem type for checkpoints: EXT4. Checkpoint size: 22.74 GiB. Available RAM: 109.68 GiB.
(EngineCore pid=240) INFO 07-22 06:49:45 [weight_utils.py:892] Auto-prefetch is disabled because the filesystem (EXT4) is not a recognized network FS (NFS/Lustre). If you want to force prefetching, start vLLM with --safetensors-load-strategy=prefetch.
Loading safetensors checkpoint shards:   0% Completed | 0/7 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  14% Completed | 1/7 [00:01<00:06,  1.15s/it]
Loading safetensors checkpoint shards:  29% Completed | 2/7 [00:08<00:24,  4.98s/it]
Loading safetensors checkpoint shards:  43% Completed | 3/7 [00:19<00:30,  7.68s/it]
Loading safetensors checkpoint shards:  57% Completed | 4/7 [00:31<00:27,  9.20s/it]
Loading safetensors checkpoint shards:  71% Completed | 5/7 [00:41<00:19,  9.75s/it]
Loading safetensors checkpoint shards:  86% Completed | 6/7 [00:45<00:07,  7.52s/it]
Loading safetensors checkpoint shards: 100% Completed | 7/7 [00:45<00:00,  6.46s/it]
(EngineCore pid=240) 
(EngineCore pid=240) INFO 07-22 06:50:30 [default_loader.py:430] Loading weights took 45.21 seconds
(EngineCore pid=240) INFO 07-22 06:50:30 [int_wna16.py:378] Using MoEPrepareAndFinalizeNoDPEPModular
(EngineCore pid=240) INFO 07-22 06:50:30 [int_wna16.py:379] Using XPUExpertsWNA16
(EngineCore pid=240) INFO 07-22 06:50:30 [gpu_model_runner.py:5274] Loading drafter model...
(EngineCore pid=240) INFO 07-22 06:50:30 [vllm.py:1109] Asynchronous scheduling is enabled.
(EngineCore pid=240) WARNING 07-22 06:50:30 [vllm.py:1163] Enforce eager set, disabling torch.compile and CUDAGraphs. This is equivalent to setting -cc.mode=none -cc.cudagraph_mode=none
(EngineCore pid=240) WARNING 07-22 06:50:30 [vllm.py:1213] Inductor compilation was disabled by user settings, optimizations settings that are only active during inductor compilation will be ignored.
(EngineCore pid=240) INFO 07-22 06:50:30 [kernel.py:303] Final IR op priority after setting platform defaults: IrOpPriorityConfig(rms_norm=['xpu_kernels', 'native'], fused_add_rms_norm=['xpu_kernels', 'native'])
(EngineCore pid=240) INFO 07-22 06:50:30 [vllm.py:1392] Cudagraph is disabled under eager mode
(EngineCore pid=240) INFO 07-22 06:50:30 [compilation.py:329] Enabled custom fusions: norm_quant, act_quant
(EngineCore pid=240) INFO 07-22 06:50:31 [unquantized.py:302] Using XPU Unquantized MoE backend out of potential backends: ['XPU'].
(EngineCore pid=240) INFO 07-22 06:50:31 [weight_utils.py:869] Filesystem type for checkpoints: EXT4. Checkpoint size: 22.74 GiB. Available RAM: 109.77 GiB.
Loading safetensors checkpoint shards:   0% Completed | 0/7 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  14% Completed | 1/7 [00:00<00:03,  1.68it/s]
Loading safetensors checkpoint shards:  29% Completed | 2/7 [00:01<00:04,  1.02it/s]
Loading safetensors checkpoint shards:  43% Completed | 3/7 [00:02<00:04,  1.01s/it]
Loading safetensors checkpoint shards:  57% Completed | 4/7 [00:03<00:03,  1.04s/it]
Loading safetensors checkpoint shards:  71% Completed | 5/7 [00:05<00:02,  1.06s/it]
Loading safetensors checkpoint shards:  86% Completed | 6/7 [00:05<00:00,  1.23it/s]
Loading safetensors checkpoint shards: 100% Completed | 7/7 [00:06<00:00,  1.34it/s]
Loading safetensors checkpoint shards: 100% Completed | 7/7 [00:06<00:00,  1.16it/s]
(EngineCore pid=240) 
(EngineCore pid=240) INFO 07-22 06:50:37 [default_loader.py:430] Loading weights took 6.03 seconds
(EngineCore pid=240) INFO 07-22 06:50:37 [unquantized.py:374] Using MoEPrepareAndFinalizeNoDPEPModular
(EngineCore pid=240) INFO 07-22 06:50:37 [unquantized.py:375] Using XPUExperts MoE backend
(EngineCore pid=240) INFO 07-22 06:50:37 [llm_base_proposer.py:1475] Detected MTP model. Sharing target model embedding weights with the draft model.
(EngineCore pid=240) INFO 07-22 06:50:37 [llm_base_proposer.py:1555] Detected MTP model. Sharing target model lm_head weights with the draft model.
(EngineCore pid=240) INFO 07-22 06:50:37 [gpu_model_runner.py:5347] Model loading took 21.84 GiB memory and 57.510947 seconds
(EngineCore pid=240) INFO 07-22 06:50:37 [interface.py:905] Setting attention block size to 2176 tokens to ensure that attention page size is >= mamba page size.
(EngineCore pid=240) INFO 07-22 06:50:37 [interface.py:929] Padding mamba page size by 0.74% to ensure that mamba page size and attention page size are exactly equal.
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330] EngineCore failed to start.
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330] Traceback (most recent call last):
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1299, in run_engine_core
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return func(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1065, in __init__
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     super().__init__(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 136, in __init__
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return func(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 286, in _initialize_kv_caches
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self.collective_rpc("determine_available_memory")
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 92, in collective_rpc
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return func(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return func(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 488, in determine_available_memory
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     self.model_runner.profile_run()
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 6424, in profile_run
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     hidden_states, last_hidden_states = self._dummy_run(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                                         ^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return func(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 6084, in _dummy_run
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     outputs = self.model(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]               ^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self._call_impl(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return forward_call(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_5.py", line 506, in forward
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     hidden_states = self.language_model.model(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/decorators.py", line 507, in __call__
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self.forward(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 682, in forward
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     hidden_states, residual = layer(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                               ^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self._call_impl(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return forward_call(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 554, in forward
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     hidden_states = self.mlp(hidden_states)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                     ^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self._call_impl(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return forward_call(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 212, in forward
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     final_hidden_states = self.experts(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                           ^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self._call_impl(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return forward_call(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 685, in forward
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     result = self._forward_entry(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]              ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/_ops.py", line 1279, in __call__
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self._op(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 161, in _moe_forward_shared
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return layer._forward_impl(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 830, in _forward_impl
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     shared_output, hidden_states = self._apply_quant_method(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 573, in _apply_quant_method
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     topk_weights, topk_ids = self.router.select_experts(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_moe_router.py", line 67, in select_experts
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     topk_weights, topk_ids = self._select_experts(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                              ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/base_router.py", line 291, in _select_experts
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     topk_weights, topk_ids = self._compute_routing(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                              ^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_topk_router.py", line 165, in _compute_routing
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     topk_weights, topk_ids, token_expert_indices = fused_topk(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                                                    ^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_topk_router.py", line 109, in fused_topk
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     topk_weights, topk_ids = topk_func(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]                              ^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_topk_router.py", line 33, in vllm_topk_softmax
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     ops.topk_softmax(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/vllm/_custom_ops.py", line 2394, in topk_softmax
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     torch.ops._moe_C.topk_softmax(
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]   File "/opt/venv/lib/python3.12/site-packages/torch/_ops.py", line 1279, in __call__
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]     return self._op(*args, **kwargs)
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330]            ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) ERROR 07-22 06:50:42 [core.py:1330] RuntimeError: _moe_C::topk_softmax() expected at most 6 argument(s) but received 7 argument(s). Declaration: _moe_C::topk_softmax(Tensor($0! -> ) topk_weights, Tensor($1! -> ) topk_indices, Tensor($2! -> ) token_expert_indices, Tensor gating_output, bool renormalize, Tensor? bias) -> ()
(EngineCore pid=240) Process EngineCore:
(EngineCore pid=240) Traceback (most recent call last):
(EngineCore pid=240)   File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=240)     self.run()
(EngineCore pid=240)   File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
(EngineCore pid=240)     self._target(*self._args, **self._kwargs)
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1334, in run_engine_core
(EngineCore pid=240)     raise e
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1299, in run_engine_core
(EngineCore pid=240)     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=240)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=240)     return func(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1065, in __init__
(EngineCore pid=240)     super().__init__(
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 136, in __init__
(EngineCore pid=240)     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=240)                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=240)     return func(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 286, in _initialize_kv_caches
(EngineCore pid=240)     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=240)                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=240)     return self.collective_rpc("determine_available_memory")
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 92, in collective_rpc
(EngineCore pid=240)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=240)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=240)     return func(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=240)     return func(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 488, in determine_available_memory
(EngineCore pid=240)     self.model_runner.profile_run()
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 6424, in profile_run
(EngineCore pid=240)     hidden_states, last_hidden_states = self._dummy_run(
(EngineCore pid=240)                                         ^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=240)     return func(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 6084, in _dummy_run
(EngineCore pid=240)     outputs = self.model(
(EngineCore pid=240)               ^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240)     return self._call_impl(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240)     return forward_call(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_5.py", line 506, in forward
(EngineCore pid=240)     hidden_states = self.language_model.model(
(EngineCore pid=240)                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/decorators.py", line 507, in __call__
(EngineCore pid=240)     return self.forward(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 682, in forward
(EngineCore pid=240)     hidden_states, residual = layer(
(EngineCore pid=240)                               ^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240)     return self._call_impl(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240)     return forward_call(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 554, in forward
(EngineCore pid=240)     hidden_states = self.mlp(hidden_states)
(EngineCore pid=240)                     ^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240)     return self._call_impl(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240)     return forward_call(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 212, in forward
(EngineCore pid=240)     final_hidden_states = self.experts(
(EngineCore pid=240)                           ^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=240)     return self._call_impl(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=240)     return forward_call(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 685, in forward
(EngineCore pid=240)     result = self._forward_entry(
(EngineCore pid=240)              ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/_ops.py", line 1279, in __call__
(EngineCore pid=240)     return self._op(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 161, in _moe_forward_shared
(EngineCore pid=240)     return layer._forward_impl(
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 830, in _forward_impl
(EngineCore pid=240)     shared_output, hidden_states = self._apply_quant_method(
(EngineCore pid=240)                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/runner/moe_runner.py", line 573, in _apply_quant_method
(EngineCore pid=240)     topk_weights, topk_ids = self.router.select_experts(
(EngineCore pid=240)                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_moe_router.py", line 67, in select_experts
(EngineCore pid=240)     topk_weights, topk_ids = self._select_experts(
(EngineCore pid=240)                              ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/base_router.py", line 291, in _select_experts
(EngineCore pid=240)     topk_weights, topk_ids = self._compute_routing(
(EngineCore pid=240)                              ^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_topk_router.py", line 165, in _compute_routing
(EngineCore pid=240)     topk_weights, topk_ids, token_expert_indices = fused_topk(
(EngineCore pid=240)                                                    ^^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_topk_router.py", line 109, in fused_topk
(EngineCore pid=240)     topk_weights, topk_ids = topk_func(
(EngineCore pid=240)                              ^^^^^^^^^^
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/fused_moe/router/fused_topk_router.py", line 33, in vllm_topk_softmax
(EngineCore pid=240)     ops.topk_softmax(
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/vllm/_custom_ops.py", line 2394, in topk_softmax
(EngineCore pid=240)     torch.ops._moe_C.topk_softmax(
(EngineCore pid=240)   File "/opt/venv/lib/python3.12/site-packages/torch/_ops.py", line 1279, in __call__
(EngineCore pid=240)     return self._op(*args, **kwargs)
(EngineCore pid=240)            ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=240) RuntimeError: _moe_C::topk_softmax() expected at most 6 argument(s) but received 7 argument(s). Declaration: _moe_C::topk_softmax(Tensor($0! -> ) topk_weights, Tensor($1! -> ) topk_indices, Tensor($2! -> ) token_expert_indices, Tensor gating_output, bool renormalize, Tensor? bias) -> ()
double free or corruption (fasttop)
(APIServer pid=1) Traceback (most recent call last):
(APIServer pid=1)   File "/opt/venv/bin/vllm", line 10, in <module>
(APIServer pid=1)     sys.exit(main())
(APIServer pid=1)              ^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/cli/main.py", line 95, in main
(APIServer pid=1)     args.dispatch_function(args)
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/cli/serve.py", line 148, in cmd
(APIServer pid=1)     uvloop.run(run_server(args))
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/uvloop/__init__.py", line 96, in run
(APIServer pid=1)     return __asyncio.run(
(APIServer pid=1)            ^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
(APIServer pid=1)     return runner.run(main)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
(APIServer pid=1)     return self._loop.run_until_complete(task)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/uvloop/__init__.py", line 48, in wrapper
(APIServer pid=1)     return await main
(APIServer pid=1)            ^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 759, in run_server
(APIServer pid=1)     await run_server_worker(listen_address, sock, args, **uvicorn_kwargs)
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 773, in run_server_worker
(APIServer pid=1)     async with build_async_engine_client(
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__
(APIServer pid=1)     return await anext(self.gen)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 139, in build_async_engine_client
(APIServer pid=1)     async with build_async_engine_client_from_engine_args(
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__
(APIServer pid=1)     return await anext(self.gen)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 175, in build_async_engine_client_from_engine_args
(APIServer pid=1)     async_llm = AsyncLLM.from_vllm_config(
(APIServer pid=1)                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/async_llm.py", line 217, in from_vllm_config
(APIServer pid=1)     return cls(
(APIServer pid=1)            ^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/async_llm.py", line 146, in __init__
(APIServer pid=1)     self.engine_core = EngineCoreClient.make_async_mp_client(
(APIServer pid=1)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=1)     return func(*args, **kwargs)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 132, in make_async_mp_client
(APIServer pid=1)     return AsyncMPClient(*client_args)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=1)     return func(*args, **kwargs)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 963, in __init__
(APIServer pid=1)     super().__init__(
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 573, in __init__
(APIServer pid=1)     with launch_core_engines(
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
(APIServer pid=1)     next(self.gen)
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/utils.py", line 1213, in launch_core_engines
(APIServer pid=1)     wait_for_engine_startup(
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/utils.py", line 1272, in wait_for_engine_startup
(APIServer pid=1)     raise RuntimeError(
(APIServer pid=1) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}

@jikunshang

Copy link
Copy Markdown
Member

@urakozz we provide a fix in #49395 and it just got merged. please try latest main.

@urakozz

urakozz commented Jul 22, 2026

Copy link
Copy Markdown

@jikunshang yeah just saw it, that was quick, thx!

Tejas-Raj01 pushed a commit to Tejas-Raj01/vllm that referenced this pull request Jul 22, 2026
Signed-off-by: gnovack <novackgm@gmail.com>
Signed-off-by: Tejas-Raj01 <rajtejas.xyz@gmail.com>
vx120 pushed a commit to vx120/vllm that referenced this pull request Jul 23, 2026
Signed-off-by: gnovack <novackgm@gmail.com>
vrdn-23 added a commit to vrdn-23/vllm that referenced this pull request Jul 23, 2026
Resolves the merge of origin/main (46f01a5) into
vrdn-23/refactor-envs-to-use-pydantic-settings (base 34e6dfc).

vllm/envs.py and docs/configuration/env_vars.md conflicted structurally:
main edits the legacy TYPE_CHECKING block + environment_variables dict,
which this branch already replaced with a tree of pydantic BaseSettings
subclasses. Took ours for both (branch structure wins), then ported the
semantic delta from the 11 main-side commits field-by-field:

Additions (12 vars):
- vllm-project#47845 VLLM_MAX_COMPLETION_PROMPTS (ServerSettings)
- vllm-project#47388 VLLM_ENABLE_STARTUP_PLAN (PathSettings)
- vllm-project#45313 VLLM_BUILD_COMMIT/PIPELINE/URL, VLLM_IMAGE_TAG (BuildSettings)
- vllm-project#48268 VLLM_FLASHINFER_AUTOTUNE_SKIP_OPS (FlashInferSettings; comma-list
  field_validator)
- vllm-project#42433 VLLM_EC_SIDE_CHANNEL_HOST/PORT (ConnectorSettings)
- vllm-project#47636 VLLM_P2P_SIDE_CHANNEL_HOST/PORT (ConnectorSettings)
- vllm-project#45964 VLLM_DCP_Q_REPLICATE (QuantSettings)

Modification:
- vllm-project#48979 VLLM_MOE_SKIP_PADDING default False -> True

Rename (required; merged callers read the new name):
- vllm-project#45781 VLLM_TRITON_ATTN_USE_TD -> VLLM_TRITON_USE_TD (rename only, no
  deprecation shim)

Deletions (vllm-project#44749): VLLM_ROCM_USE_AITER_PAGED_ATTN,
VLLM_TPU_BUCKET_PADDING_GAP, VLLM_TPU_MOST_MODEL_LEN, VLLM_CI_USE_S3
(also dropped from the compile_factors ignore-set),
VLLM_FLASHINFER_ALLREDUCE_FUSION_THRESHOLDS_MB (+ its validator).

compile_factors() ignore-set: added VLLM_ENABLE_STARTUP_PLAN,
VLLM_FLASHINFER_AUTOTUNE_SKIP_OPS, VLLM_XLA_CACHE_PATH, VLLM_CONFIG_ROOT
(vllm-project#47573); removed VLLM_CI_USE_S3.

docs/configuration/env_vars.md: kept ours — the VLLM_PORT/Kubernetes
warning lives in the docs generator on this branch, and new fields flow
through gen_env_vars.py automatically.

Not ported: nothing dropped silently; all 11 commits' envs.py deltas are
covered above.

Verified: no conflict markers; all 12 ported vars import with correct
defaults; all 5 deleted vars gone; pre-commit clean on both files;
tests/test_envs.py 11/11 pass (incl. test_p2p_side_channel_defaults_and_override).

AI assistance was used to resolve this merge, following the reusable
playbook at docs/superpowers/specs/2026-05-14-envs-merge-conflict-resolution-design.md
(execution recorded in Appendix D).

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Vinay Damodaran <vrdn@hey.com>
vrdn-23 added a commit to vrdn-23/vllm that referenced this pull request Jul 23, 2026
Resolves the merge of origin/main (46f01a5) into
vrdn-23/refactor-envs-to-use-pydantic-settings (base 34e6dfc).

vllm/envs.py and docs/configuration/env_vars.md conflicted structurally:
main edits the legacy TYPE_CHECKING block + environment_variables dict,
which this branch already replaced with a tree of pydantic BaseSettings
subclasses. Took ours for both (branch structure wins), then ported the
semantic delta from the 11 main-side commits field-by-field:

Additions (12 vars):
- vllm-project#47845 VLLM_MAX_COMPLETION_PROMPTS (ServerSettings)
- vllm-project#47388 VLLM_ENABLE_STARTUP_PLAN (PathSettings)
- vllm-project#45313 VLLM_BUILD_COMMIT/PIPELINE/URL, VLLM_IMAGE_TAG (BuildSettings)
- vllm-project#48268 VLLM_FLASHINFER_AUTOTUNE_SKIP_OPS (FlashInferSettings; comma-list
  field_validator)
- vllm-project#42433 VLLM_EC_SIDE_CHANNEL_HOST/PORT (ConnectorSettings)
- vllm-project#47636 VLLM_P2P_SIDE_CHANNEL_HOST/PORT (ConnectorSettings)
- vllm-project#45964 VLLM_DCP_Q_REPLICATE (QuantSettings)

Modification:
- vllm-project#48979 VLLM_MOE_SKIP_PADDING default False -> True

Rename (required; merged callers read the new name):
- vllm-project#45781 VLLM_TRITON_ATTN_USE_TD -> VLLM_TRITON_USE_TD (rename only, no
  deprecation shim)

Deletions (vllm-project#44749): VLLM_ROCM_USE_AITER_PAGED_ATTN,
VLLM_TPU_BUCKET_PADDING_GAP, VLLM_TPU_MOST_MODEL_LEN, VLLM_CI_USE_S3
(also dropped from the compile_factors ignore-set),
VLLM_FLASHINFER_ALLREDUCE_FUSION_THRESHOLDS_MB (+ its validator).

compile_factors() ignore-set: added VLLM_ENABLE_STARTUP_PLAN,
VLLM_FLASHINFER_AUTOTUNE_SKIP_OPS, VLLM_XLA_CACHE_PATH, VLLM_CONFIG_ROOT
(vllm-project#47573); removed VLLM_CI_USE_S3.

docs/configuration/env_vars.md: kept ours — the VLLM_PORT/Kubernetes
warning lives in the docs generator on this branch, and new fields flow
through gen_env_vars.py automatically.

Not ported: nothing dropped silently; all 11 commits' envs.py deltas are
covered above.

Verified: no conflict markers; all 12 ported vars import with correct
defaults; all 5 deleted vars gone; pre-commit clean on both files;
tests/test_envs.py 11/11 pass (incl. test_p2p_side_channel_defaults_and_override).

AI assistance was used to resolve this merge.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Vinay Damodaran <vrdn@hey.com>
vrdn-23 added a commit to vrdn-23/vllm that referenced this pull request Jul 23, 2026
Resolves the merge of origin/main (46f01a5) into
vrdn-23/refactor-envs-to-use-pydantic-settings (base 34e6dfc).

vllm/envs.py and docs/configuration/env_vars.md conflicted structurally:
main edits the legacy TYPE_CHECKING block + environment_variables dict,
which this branch already replaced with a tree of pydantic BaseSettings
subclasses. Took ours for both (branch structure wins), then ported the
semantic delta from the 11 main-side commits field-by-field:

Additions (12 vars):
- vllm-project#47845 VLLM_MAX_COMPLETION_PROMPTS (ServerSettings)
- vllm-project#47388 VLLM_ENABLE_STARTUP_PLAN (PathSettings)
- vllm-project#45313 VLLM_BUILD_COMMIT/PIPELINE/URL, VLLM_IMAGE_TAG (BuildSettings)
- vllm-project#48268 VLLM_FLASHINFER_AUTOTUNE_SKIP_OPS (FlashInferSettings; comma-list
  field_validator)
- vllm-project#42433 VLLM_EC_SIDE_CHANNEL_HOST/PORT (ConnectorSettings)
- vllm-project#47636 VLLM_P2P_SIDE_CHANNEL_HOST/PORT (ConnectorSettings)
- vllm-project#45964 VLLM_DCP_Q_REPLICATE (QuantSettings)

Modification:
- vllm-project#48979 VLLM_MOE_SKIP_PADDING default False -> True

Rename (required; merged callers read the new name):
- vllm-project#45781 VLLM_TRITON_ATTN_USE_TD -> VLLM_TRITON_USE_TD (rename only, no
  deprecation shim)

Deletions (vllm-project#44749): VLLM_ROCM_USE_AITER_PAGED_ATTN,
VLLM_TPU_BUCKET_PADDING_GAP, VLLM_TPU_MOST_MODEL_LEN, VLLM_CI_USE_S3
(also dropped from the compile_factors ignore-set),
VLLM_FLASHINFER_ALLREDUCE_FUSION_THRESHOLDS_MB (+ its validator).

compile_factors() ignore-set: added VLLM_ENABLE_STARTUP_PLAN,
VLLM_FLASHINFER_AUTOTUNE_SKIP_OPS, VLLM_XLA_CACHE_PATH, VLLM_CONFIG_ROOT
(vllm-project#47573); removed VLLM_CI_USE_S3.

docs/configuration/env_vars.md: kept ours — the VLLM_PORT/Kubernetes
warning lives in the docs generator on this branch, and new fields flow
through gen_env_vars.py automatically.

Not ported: nothing dropped silently; all 11 commits' envs.py deltas are
covered above.

Verified: no conflict markers; all 12 ported vars import with correct
defaults; all 5 deleted vars gone; pre-commit clean on both files;
tests/test_envs.py 11/11 pass (incl. test_p2p_side_channel_defaults_and_override).

AI assistance was used to resolve this merge.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Vinay Damodaran <vrdn@hey.com>
edwinlim0919 pushed a commit to chaeminlim-mb/vllm that referenced this pull request Jul 29, 2026
Signed-off-by: gnovack <novackgm@gmail.com>
itej89 pushed a commit to itej89/vllm that referenced this pull request Aug 4, 2026
Signed-off-by: gnovack <novackgm@gmail.com>
Signed-off-by: Tej Kiran <kiran.tej@amd.com>
aditi-amd pushed a commit to aditi-amd/vllm that referenced this pull request Aug 4, 2026
Signed-off-by: gnovack <novackgm@gmail.com>
Signed-off-by: root <root@smci355-ccs-aus-m02-09.cs-aus.dcgpu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nvidia ready ONLY add when PR is ready to merge/full CI is needed

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants