Repository navigation
[Model] Support LongCat 2.0 FP8 - #30275
Merged
Merged
Conversation
BBuf
requested review from
1am9trash,
DarkSharpness,
Edwardf0t1,
Fridge003,
HaiShaw,
HydraQYH,
Qiaolin-Yu,
YAMY1234,
Ying1123,
celve,
ch-wan,
fzyzcjy,
hnyls2002,
hubertlu-tw,
ispobock,
kkHuang-amd,
kpham-sgl,
merrymercy,
rainj-me,
xiezhq-hermann and
yuan-luo
as code owners
July 6, 2026 15:50
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
BBuf
force-pushed
the
longcat2-pr30202-serving-fix
branch
from
July 7, 2026 01:13
9dc9f59 to
5a2e5be
Compare
Co-authored-by: sunjiaqi11 <sunjiaqi11@meituan.com>
BBuf
force-pushed
the
longcat2-pr30202-serving-fix
branch
from
July 7, 2026 01:34
5a2e5be to
375da86
Compare
ispobock
approved these changes
Jul 7, 2026
BBuf
force-pushed
the
longcat2-pr30202-serving-fix
branch
from
July 7, 2026 08:39
2ceca45 to
bd7d803
Compare
DarkSharpness
pushed a commit
that referenced
this pull request
Jul 7, 2026
The fused v2 PAGED dispatch (from #30274) asserts that DSAMetadata carries a preprocessed topk_v2_plan instead of silently recomputing it per layer. The equivalence test builds DSAMetadata by hand without the plan, so test_topk_fused_backends_equivalence started failing on trunk for every PR (e.g. #30275's base-b-test-1-gpu-large job). Build the plan the same way init_forward_metadata / _build_forward_metadata_cuda_graph do; the sgl-kernel-vs-flashinfer equivalence check now actually covers the v2 fused path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 12, 2026
dougyster
added a commit
to dougyster/sglang
that referenced
this pull request
Jul 17, 2026
…ped in v0.5.15 Ancestry-checked each rolling-:dev model against v0.5.15.post1. Support that landed in the release moves to the stable tag: - Baidu Unlimited-OCR (sgl-project#29186), LFM2.5 (sgl-project#29659) -> :latest - MiniCPM-V-4.6 (sgl-project#24855): :dev -> :latest, :dev-cu12 -> :latest-cu129 Kept on :dev (support NOT in the release cut): - LongCat-2.0 (FP8 support sgl-project#30275 not in v0.5.15.post1) - Hy3 (HunyuanV3 NextN/MTP fix sgl-project#30331 not in release; MTP is a headline feature) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Chronostasys
pushed a commit
to MindLab-Research/sglang
that referenced
this pull request
Aug 24, 2026
Co-authored-by: sunjiaqi11 <sunjiaqi11@meituan.com> Co-authored-by: Ke Bao <ispobaoke@gmail.com>
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
Support
meituan-longcat/LongCat-2.0-FP8in SGLang.This PR includes the original LongCat 2.0 support from #30202 by @sjqgogogogo, plus the serving fixes found while validating the official FP8 checkpoint on an 8x B300 node.
Co-authored-by: sunjiaqi11 sunjiaqi11@meituan.com
Modifications
architectureswhenmodel_typeis null.oe_*ngram embedding config fields somodel.ngram_embeddings.*weights are loaded.Accuracy Tests
Hardware: 8x NVIDIA B300
Model:
meituan-longcat/LongCat-2.0-FP8Server command used for validation:
python3 -m sglang.launch_server \ --model-path /mnt/local_disk/data/bbuf/models/LongCat-2.0-FP8 \ --trust-remote-code \ --host 0.0.0.0 \ --port 13423 \ --tp-size 8 \ --ep 8 \ --max-running-requests 64 \ --mem-fraction-static 0.92 \ --chunked-prefill-size 2048 \ --nsa-prefill-backend fa3 \ --kv-cache-dtype bfloat16 \ --model-loader-extra-config '{"enable_multithread_load":true,"num_threads":12}'Results:
A shop has 17 apples and sells 8. Then it buys 6 more.->150.9800.958904109589041CUDA graph was enabled and decode CUDA graph capture completed successfully.
Speed Tests and Profiling
The full GSM8K validation reported output throughput of about
1084 token/s. This was used as a serving validation, not as a formal throughput benchmark.Checklist
git diff --checkPYTHONPATH=python python3 test/registered/unit/model_executor/test_ngram_token_table.pyCI States
Latest PR Test (Base): ⏳ Run #28853132542
Latest PR Test (Extra): ⏳ Run #28853132297