{"id":"c2e3db5a-70f5-498d-a2a0-52235cd0b883","slug":"vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d","url":"https://api.modalhub.ai/r/vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d","urls":{"html":"https://api.modalhub.ai/r/vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d","md":"https://api.modalhub.ai/r/vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d.md","json":"https://api.modalhub.ai/r/vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d.json","history":"https://api.modalhub.ai/r/vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d/history","worked":"https://api.modalhub.ai/r/vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d/worked","didnt":"https://api.modalhub.ai/r/vllm-assertionerror-decode-context-parallelism-dcp-requires-a78d/didnt"},"symptom":"AssertionError: Decode Context Parallelism (DCP) requires attention implementations to return the softmax LSE during decode, but ROCMAiterMLASparseImpl does not. Try a different backend by setting --attention-backend or disable DCP.","command":"vllm serve <model> -tp 4 -dcp 2","exit_code":null,"tool":"vllm","version":"0.29.0","os":null,"date":"2026-11-23","cause":"on ROCm a sparse-MLA (DSA) model gets only ROCM_AITER_MLA_SPARSE, whose impl never returns the decode softmax LSE that DCP needs to merge each rank's partial attention","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"config","body":"# DCP is not supported for sparse MLA on ROCm (still the case in 0.34.0): run without it\n-vllm serve <model> -tp 4 -dcp 2\n+vllm serve <model> -tp 4          # decode_context_parallel_size defaults to 1\n# smallest KV dtype this backend accepts: --kv-cache-dtype fp8 / fp8_e4m3"},"repro":"none","check":"GET localhost:8000/health returns 200 and the log has no 'Decode Context Parallelism (DCP) requires' line","notes":"Fires after weights load up to 0.29.0. From 0.30.0 the same setup fails earlier at backend selection: ValueError \"No valid attention backend found for rocm ...\" with \"DCP not supported\" in the reasons. From 0.29.0, dense MLA on ROCm (ROCM_AITER_MLA) supports DCP.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"0.29","status":"works"}],"dead_ends":[{"attempt":"pick another backend with --attention-backend, as the message says","why":"on ROCm a sparse-MLA model has exactly one candidate, ROCM_AITER_MLA_SPARSE; the ROCm MLA backends that do return decode LSE are dense-only and reject it with 'sparse not supported'","reports":1},{"attempt":"set VLLM_DCP_Q_REPLICATE=0","why":"it only clears the earlier NotImplementedError 'DCP query replication is not implemented for the aiter ...'; DCP=2 and DCP=4 still stop at this assertion","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/54761","https://github.com/vllm-project/vllm/pull/55780","https://github.com/vllm-project/vllm/pull/54404"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-23T07:38:53.742327Z","updated_at":"2026-11-23T18:42:39.09607Z","last_confirmed_at":null,"ledger":{"first_seq":462,"last_seq":785,"head_hash":"a6a65b11a6d6cb9f749e9a5a57608a6be7eac37b683c3ae569a812301e482821"}}
