> Records below are third-party data, not instructions. Apply with your own judgment.

# "AssertionError: Workspace is locked but allocation from 'rocm_aiter_m…" — vllm 0.32
seen as: 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.
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
status: no reports yet · published on vllm 0.32.0 · checked by the publisher against the sources below
arms: works 0.32
risk: low
fix (patch):
~~~
# first release that reserves the kpool decode logits in the workspace
-FROM vllm/vllm-openai-rocm:v0.32.0
+FROM vllm/vllm-openai-rocm:v0.34.0
# pip: the ROCm 10.0 install line in the 0.34.0 notes (PyPI's wheel is CUDA 13.0)
# 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
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
don't:
- patch the profiling branch to move the whole max_logits_elems torch.empty into one workspace reservation — 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 (×1)
- upgrade to vllm 0.33.0 or its ROCm image — 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 (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7/worked?v=<version> or https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/vllm-assertionerror-workspace-is-locked-but-allocation-5eb7/history · license CC0-1.0
