Skip to content

[Feature] Beam Search - #3066

Closed
laixinn wants to merge 6 commits into
sgl-project:mainfrom
sleepcoo:feature-beam-search
Closed

laixinn wants to merge 6 commits into
sgl-project:mainfrom
sleepcoo:feature-beam-search

Conversation

@laixinn

@laixinn laixinn commented Jan 23, 2025 •

Copy link
Copy Markdown
Contributor

Motivation & Modifications

Support beam search, RFC in #3032 .

We also plan to support following features after this PR is merged:

  • support the overlap mode
  • support jump forward
  • use trition kernel to accelerate indices overwritten for kv cache

Result & Reproduce

  1. Accuracy: test/srt/test_beam_search.py: line 259, test_beam_search_accuracy_by_offline_mmlu
  2. MMLU Score: test/srt/test_beam_search.py: line 336, test_beam_search_memory_leak_via_mmlu
  3. Efficiency (will not run in unit test by default): line 301, bench_beam_search_overhead_by_offline_mmlu

Checklist

laixinn and others added 2 commits January 21, 2025 00:14
Duplicate beam search sequence into requests during scheduling, while the prefix caching depends on the request tokens.

NOTE: A request is finished when the number of finished beam search sequences are enough, which might influence normal request output.
@laixinn
laixinn marked this pull request as draft January 28, 2025 01:41
@laixinn
laixinn force-pushed the feature-beam-search branch from 611104d to 0f60c2a Compare January 28, 2025 01:55
@laixinn
laixinn marked this pull request as ready for review January 28, 2025 03:17
@merrymercy
merrymercy requested a review from HaiShaw as a code owner March 3, 2025 08:12
@fanlu

fanlu commented Mar 22, 2025

Copy link
Copy Markdown

Is there any progress on this feature? I am looking forward to it,thx

@laixinn

laixinn commented Mar 24, 2025 •

Copy link
Copy Markdown
Contributor Author

@fanlu advancing the project requires support from community, I will move on once there is a reviewer.
And you can use this feature by my outdated branch if you do not need the latest features.

@fanlu

fanlu commented Mar 25, 2025

Copy link
Copy Markdown

image
Can we make this feature support joint beam search for speech recognition tasks? @laixinn

@mvspotify

Copy link
Copy Markdown

I'm very interested in this feature since vLLM's beam search has degraded.

@merrymercy @Ying1123 @zhyncs @ispobock @ByronHsu @HaiShaw @hnyls2002 are y'all still the right codeowners for this? Do you need anything else before reviewing?

@skpig

skpig commented Jun 7, 2025

Copy link
Copy Markdown

Any progress? Also looking forward to this feature!

@TTDmon

TTDmon commented Jun 30, 2025

Copy link
Copy Markdown

looking forward to any progress! thanks!

@user-ZJ

user-ZJ commented Aug 25, 2025

Copy link
Copy Markdown

looking forward

@FateForever0222

Copy link
Copy Markdown

looking forward!!

@danielaskdd

Copy link
Copy Markdown

looking forward

@equivalence1

Copy link
Copy Markdown

looking forward!

@denadai2

denadai2 commented Oct 6, 2025

Copy link
Copy Markdown

looove it

@ZiyiTsang

Copy link
Copy Markdown

Looking forward +1

@cswuyg cswuyg mentioned this pull request Dec 22, 2025
4 of 6 tasks
@hnyls2002 hnyls2002 closed this Apr 21, 2026
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.