From 1d2610bbc2a3f5d3f31c1b9419de1806aeda7d98 Mon Sep 17 00:00:00 2001 From: "minke.yu" Date: Sun, 18 Oct 2026 23:05:47 +0800 Subject: [PATCH] fix(mm): _collect_image_span_requests produce 3-tuple overlapping (idx,item,span_len) Merged tree convention (PerImageRequestInfo.overlapping annotation and upstream _assemble_per_image_chunk) is (idx, item, span_len); our span collector still emitted 4-tuples (idx,item,start,end) from the pre-merge version, crashing V4.1 warmup assembly: ValueError too many values to unpack. --- python/sglang/srt/managers/mm_schedule.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/managers/mm_schedule.py b/python/sglang/srt/managers/mm_schedule.py index 6063f898d2..5ff3010597 100644 --- a/python/sglang/srt/managers/mm_schedule.py +++ b/python/sglang/srt/managers/mm_schedule.py @@ -438,7 +438,6 @@ def _collect_image_span_requests( ): if end >= chunk_start and start < chunk_end: overlapping.append((idx, item, start, end)) - req_info.overlapping = overlapping for _idx, item, start, end in overlapping: cache_key = (item.hash, end - start + 1) @@ -446,6 +445,9 @@ def _collect_image_span_requests( spans[cache_key][2].append(item) continue spans[cache_key] = (item, start >= chunk_start and end < chunk_end, []) + req_info.overlapping = [ + (idx, item, end - start + 1) for idx, item, start, end in overlapping + ] return [ ImageSpanRequest( hash=item_hash,