Skip to content
Merged
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions python/sglang/srt/speculative/eagle_info_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ def prepare_for_v2_verify(
batch.mamba_track_mask = None
batch.mamba_track_seqlens = None

# Populate seq_lens_cpu/seq_lens_sum on the verify input so that
# TBO's split_spec_info can slice the custom_mask correctly.
if not batch.forward_mode.is_idle():
self.seq_lens_cpu = batch.seq_lens_cpu
self.seq_lens_sum = batch.seq_lens_sum
Comment thread
billishyahao marked this conversation as resolved.
Outdated

# Get a forward batch
batch.forward_mode = (
ForwardMode.IDLE
Expand Down
Loading