Repository navigation
[Model] Add native IFM K2 Horizon serving support - #37654
Merged
Merged
Conversation
7 tasks done
BBuf
marked this pull request as ready for review
September 3, 2026 00:20
BBuf
requested review from
BBuf,
ByronHsu,
DarkSharpness,
Duyi-Wang,
Edwardf0t1,
Fridge003,
HaiShaw,
JustinTong0323,
ShangmingCai,
Ying1123,
ch-wan,
hnyls2002,
ispobock,
merrymercy,
sogalin and
xiezhq-hermann
as code owners
September 3, 2026 00:20
BBuf
approved these changes
Sep 3, 2026
JustinTong0323
force-pushed
the
public/k2-horizon-runtime
branch
from
September 3, 2026 04:07
dba5a73 to
882c76e
Compare
The per-decode-step accounting path re-parsed the request terminator ids from custom_params on every token even though update_reasoning_tokens only consults them when it first builds its matcher. Skip the parse once the matcher exists. Also fix the disagg handoff accounting test to use a real bootstrap host with a matching room so it exercises the output_id branch instead of the fake-transfer path, which requires a vocab size the fixture never sets.
JustinTong0323
force-pushed
the
public/k2-horizon-runtime
branch
from
September 3, 2026 04:14
882c76e to
39bd3b4
Compare
StevenChenSE
pushed a commit
to StevenChenSE/sglang
that referenced
this pull request
Sep 6, 2026
Co-authored-by: Xiaoyu Zhang <1182563586@qq.com> Co-authored-by: Xinyuan Tong <xinyuantong.cs@gmail.com>
This was referenced Sep 8, 2026
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Add native SGLang serving support for the IFM K2 Horizon family without checkpoint-provided Python code.
Modifications
reasoning_effort.The generic serving-core extension is multi-terminator reasoning support. It adds optional, backward-compatible request fields and matching/accounting so one server can handle K2 requests whose reasoning effort selects different end markers. Existing single-terminator parsers keep their existing path.
Cookbook documentation and benchmark cards are in the separate draft PR #37655.
Accuracy Tests
sgl-project/sglangmain(2d799c28f450a2d83a5bedf2c07699cd32fb3c7a); the runtime diff applied without conflicts.git diff --checkpasses after the rebase.Model accuracy results for the K2 Horizon family (scores are percentages):
Full GSM8K runtime-validation results are included in the separate cookbook draft.
Speed Tests and Profiling
Draft gates
Checklist
CI States
Latest PR Test (Base): ⏳ Run #33727508015
Latest PR Test (Extra): ⏳ Run #33727507816
Latest PR Test (AMD ROCm 7.2): ⏳ Run #33727508097