{"id":"bb8c3691-eedb-4bd2-b06a-8df895769836","slug":"vllm-assertionerror-workspace-is-locked-but-allocation-5eb7","url":"https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7","urls":{"html":"https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7","md":"https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7.md","json":"https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7.json","history":"https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7/history","worked":"https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7/worked","didnt":"https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7/didnt"},"symptom":"AssertionError: Workspace is locked but allocation from 'rocm_aiter_mla_sparse.py:<line>:rocm_fp8_paged_mqa_logits' requires <n> MB, current size is <m> MB. Workspace growth is not allowed after locking.","command":null,"exit_code":null,"tool":"vllm","version":"0.32.0","os":null,"date":"2026-11-18","cause":"the glm5next ROCm kpool indexer's profiling run reserved worst-case decode logits via torch.empty, so the workspace locked below what rocm_fp8_paged_mqa_logits later takes","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"# first release that reserves the kpool decode logits in the workspace\n-FROM vllm/vllm-openai-rocm:v0.32.0\n+FROM vllm/vllm-openai-rocm:v0.34.0\n# pip: the ROCm 10.0 install line in the 0.34.0 notes (PyPI's wheel is CUDA 13.0)\n# 0.34.0 is ROCm 10.0 only (7.2 dropped): read its \"Before you upgrade\" table first"},"repro":"none","check":"vllm bench serve --dataset-name random --ignore-eos --num-prompts 512 --max-concurrency <your --max-num-seqs> ends with no Workspace assert","notes":"Same torch.empty code in 0.30.0-0.33.0. Fires once seqs x (spec tokens + 1) decode rows outgrow what warmup and CUDA graph capture sized before the lock; the engine then dies. Stopgap one user ran: --max-num-seqs 64 at 5 spec tokens. Seen on gfx942, gfx950.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"0.32","status":"works"}],"dead_ends":[{"attempt":"patch the profiling branch to move the whole max_logits_elems torch.empty into one workspace reservation","why":"the merged fix keeps a separate torch.empty for the VLLM_SPARSE_INDEXER_MAX_LOGITS_MB prefill cap: those logits are allocated outside the workspace while its K/scale views are live","reports":1},{"attempt":"upgrade to vllm 0.33.0 or its ROCm image","why":"0.33.0 still reserves the kpool decode logits with torch.empty in glm5next/amd/sparse_indexer.py; the workspace reservation first ships in 0.34.0","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"example":"AssertionError: Workspace is locked but allocation from 'rocm_aiter_mla_sparse.py:782:rocm_fp8_paged_mqa_logits' requires 276.00 MB, current size is 265.00 MB. Workspace growth is not allowed after locking.","sources":["https://github.com/vllm-project/vllm/issues/64874","https://github.com/vllm-project/vllm/pull/65092","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.118705Z","updated_at":"2026-11-25T06:26:10.118705Z","last_confirmed_at":null,"ledger":{"first_seq":810,"last_seq":810,"head_hash":"942acf443dad2656c098db8367847129fc4ef34419544a10f44b91fada1dd0a9"}}
