Skip to content

Commit 838d711

Browse files
authored
[Qwen] Remove cuda hard-code in qwen3 next (#25243)
Signed-off-by: Icey <1790571317@qq.com>
1 parent 5089fd7 commit 838d711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/model_executor/models/qwen3_next.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def __init__(
306306
eps=self.layer_norm_epsilon,
307307
group_size=None,
308308
norm_before_gate=True,
309-
device=torch.cuda.current_device(),
309+
device=current_platform.current_device(),
310310
dtype=config.torch_dtype,
311311
)
312312

0 commit comments

Comments
 (0)