Skip to content

Commit 6558509

Browse files
ShangmingCaixwu-intel
authored andcommitted
[Bugfix] Fix slice operation when chunk size mismatch (sgl-project#6697)
Signed-off-by: Shangming Cai <[email protected]>
1 parent da608b7 commit 6558509

File tree

1 file changed

+1
-1
lines changed
  • python/sglang/srt/disaggregation/mooncake

1 file changed

+1
-1
lines changed

python/sglang/srt/disaggregation/mooncake/conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def transfer_worker(
354354
kv_chunk.prefill_kv_indices
355355
):
356356
kv_chunk.prefill_kv_indices = kv_chunk.prefill_kv_indices[
357-
len(chunked_dst_kv_indice)
357+
: len(chunked_dst_kv_indice)
358358
]
359359
logger.warning(
360360
f"len(chunked_dst_kv_indice) = {len(chunked_dst_kv_indice)}, len(kv_chunk.prefill_kv_indices) = {len(kv_chunk.prefill_kv_indices)}"

0 commit comments

Comments
 (0)