Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/sglang/srt/mem_cache/memory_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2627,7 +2627,9 @@ def _zeros(shape):
shape, dtype=self.store_dtype, device=self.device
)

if k_shape == v_shape:
# ROCm keeps separate K/V allocations: Mooncake PD transfers
# from a V half inside a fused allocation corrupt decode KV.
if k_shape == v_shape and not _is_hip:
# Store K and V as block-aligned halves of one allocation
# so paged kernels with a single pool base can reach V
# via block offsets. Each half keeps its standalone
Expand Down
Loading