Skip to content

Optimize retract - #440

Merged
hnyls2002 merged 10 commits into
mainfrom
optimize-retract
May 25, 2024
Merged

hnyls2002 merged 10 commits into
mainfrom
optimize-retract

Conversation

@hnyls2002

@hnyls2002 hnyls2002 commented May 14, 2024 •

Copy link
Copy Markdown
Collaborator
  • Deprecated the old style of appending fast-forwarded str directly to input_ids, introducing prev_output_str and prev_output_ids instead.
  • When prefilling, input_ids = origin_input_ids + prev_output_ids and we can still hit cache here.
  • Add the retracted tokens into prev_output_ids instead of discarding them.
  • Make it compatible with logprobs.

@merrymercy

Copy link
Copy Markdown
Collaborator

@hnyls2002 please fix the conflicts. Is this ready for merge?

@hnyls2002
hnyls2002 merged commit f06e90c into main May 25, 2024
@hnyls2002
hnyls2002 deleted the optimize-retract branch May 25, 2024 16:07
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
HanHan009527 pushed a commit to HanHan009527/sglang that referenced this pull request Apr 7, 2026
efschu added a commit to efschu/htsglang that referenced this pull request Aug 3, 2026
…rch guard stricter than upstream _varlen_arch_ok; rebase-gate list persisted; sgl-project#33348 root not shared by our replicated draft-KV path (loose end -> sgl-project#487); EAGLE 2x reserve carried unmodified -> sgl-project#486
DouLC123 pushed a commit to DouLC123/sglang-for-sail that referenced this pull request Nov 30, 2026
…cache (release/v0.5.23) (sgl-project#440)

Pin PPU_CI_K8S_CONFIG_SHA256 to 08609857c83319190c9f01861e0714231bd787adf001bbe288760f22e25f0f14 so Recipe CI loads offline Hugging Face model snapshots from the high-throughput shared cache storage while preserving the prior pinned configuration for in-flight runs.

Refs flytiger-eco#277

Signed-off-by: Yunzshi310 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants