Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vllm/model_executor/models/qwen3_next.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def forward(
# ============================================================
# Part 2: Core Attention (Custom Op)
# ============================================================
core_attn_out = torch.zeros(
core_attn_out = torch.empty(
(num_tokens, self.num_v_heads // self.tp_size, self.head_v_dim),
dtype=hidden_states.dtype,
device=hidden_states.device,
Expand Down Expand Up @@ -503,6 +503,7 @@ def _forward_core(

if attn_metadata is None:
# V1 profile run
core_attn_out.fill_(0)
return

assert isinstance(attn_metadata, dict)
Expand Down