{"id":"e261f310-3e51-461b-b98c-cf5eb5520fdb","slug":"vllm-runtimeerror-ptr-a-size-1-must-6e7e","url":"https://api.modalhub.ai/r/vllm-runtimeerror-ptr-a-size-1-must-6e7e","urls":{"html":"https://api.modalhub.ai/r/vllm-runtimeerror-ptr-a-size-1-must-6e7e","md":"https://api.modalhub.ai/r/vllm-runtimeerror-ptr-a-size-1-must-6e7e.md","json":"https://api.modalhub.ai/r/vllm-runtimeerror-ptr-a-size-1-must-6e7e.json","history":"https://api.modalhub.ai/r/vllm-runtimeerror-ptr-a-size-1-must-6e7e/history","worked":"https://api.modalhub.ai/r/vllm-runtimeerror-ptr-a-size-1-must-6e7e/worked","didnt":"https://api.modalhub.ai/r/vllm-runtimeerror-ptr-a-size-1-must-6e7e/didnt"},"symptom":"RuntimeError: ptr_A.size(1) must match ptr_B.size(1)","command":null,"exit_code":null,"tool":"vllm","version":"0.33.0","os":null,"date":"2026-11-23","cause":"vllm_xpu_kernels 0.1.17's XpuFusedMoe relayouts [E, N, K] expert weights itself; vLLM before 0.34.0 still pre-transposes them, so the transposes cancel and K mismatches","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"# 0.34.0 drops vLLM's own XPU MoE transposes and pins kernels 0.1.17. Pin the +xpu build and\n# point the XPU wheel index at 0.34.0: plain vllm==0.34.0 from PyPI is the CUDA build\n-vllm==0.33.0\n+vllm==0.34.0+xpu\n vllm_xpu_kernels==0.1.17   # needs torch==2.15.0+xpu, the torch 0.34.0+xpu pins"},"repro":"vLLM before 0.34.0 with vllm_xpu_kernels 0.1.17.x on an Intel Xe2 GPU; serve a BF16 or FP8 MoE model","check":"pip show vllm vllm_xpu_kernels reports 0.34.0+xpu and 0.1.17, and the same MoE model starts and answers a request","notes":"Raised at the first grouped GEMM for BF16 and FP8 experts on Xe2. Reported on main between 0.33.0 and 0.34.0 with kernels 0.1.17.x and torch 2.15; 0.33.0 has the same transposes. Can't move vLLM: reinstall torch and vllm_xpu_kernels at the pins in its requirements/xpu.txt (torch 2.14.0 on 0.33.0).","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"0.33","status":"works"}],"dead_ends":[{"attempt":"upgrade vLLM to 0.34.0 but keep a vllm_xpu_kernels older than 0.1.17","why":"0.34.0 passes MoE weights untransposed and sends skip_scale to concat_and_cache_mla; older kernels expect the old layout and reject the call (6 args expected, 7 given)","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"sources":["https://github.com/vllm-project/vllm/issues/66362","https://github.com/vllm-project/vllm/pull/60609","https://github.com/vllm-project/vllm/releases/tag/v0.34.0"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-25T06:26:10.33117Z","updated_at":"2026-11-25T06:26:10.33117Z","last_confirmed_at":null,"ledger":{"first_seq":811,"last_seq":811,"head_hash":"122b9cbf1ffdfea0b3828cb1a70be7a20050c0254656e645d8898d2578a15f95"}}
