Skip to content

[Feat] inkling2: Support Inkling-2-Small - #50186

Merged
ispobock merged 46 commits into
mainfrom
inkling-2-small-support
Nov 19, 2026
Merged

ispobock merged 46 commits into
mainfrom
inkling-2-small-support

Conversation

@ispobock

@ispobock ispobock commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Support Inkling-2-Small.

Links

Related PRs


CI States

Latest PR Test (Base): 🚫 Run #44504216075
Latest PR Test (Extra): 🚫 Run #44504215678
Latest PR Test (AMD ROCm 10): 🚫 Run #44504215942

Tip

Base CI only covers the core cases, and its workload may not exercise your change. Use /rerun-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

Co-authored-by: Cheng Wan <[email protected]>
Co-authored-by: Chunan Zeng <[email protected]>
Co-authored-by: Qiaolin Yu <[email protected]>
Co-authored-by: Shuwen Wang <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>
Co-authored-by: Yuhao Yang <[email protected]>
Co-authored-by: zijiexia <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@ispobock
ispobock requested a review from Ying1123 as a code owner November 12, 2026 20:59

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

zcnrex added a commit to zcnrex/sglang that referenced this pull request Nov 18, 2026
RadixAttention takes optional out_dtype, num_splits, pack_gqa, window_anchor_at_start and strided_lse, and the FlashAttention backend honours them. Also adds presheared relative bias to FA4, a split-KV relative-bias decode path (rel_bias_partials, with its SM90 kernel), and translates SWA page tables through first-token slots.

Split out of the Inkling-2-Small support PR (sgl-project#50186).

Co-authored-by: ispobock <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
zcnrex added a commit to zcnrex/sglang that referenced this pull request Nov 18, 2026
A model can set safetensors_index_file (None to skip the index). The RunAI streamer loader reuses DefaultModelLoader.Source instead of a copy. The CLIP and Grok _prepare_weights replacements take the new argument; Grok forwards it to the default loader.

Split out of the Inkling-2-Small support PR (sgl-project#50186).

Co-authored-by: ispobock <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
zcnrex added a commit to zcnrex/sglang that referenced this pull request Nov 18, 2026
Adds a folds_static_verify_commit draft hook, subclass hooks on the DSpark v2 worker, a step-logit softcap and vocab limit in Markov sampling, and a chain (no accept_index) mode for fused_commit_track_indices.

Split out of the Inkling-2-Small support PR (sgl-project#50186).

Co-authored-by: Qiaolin Yu <[email protected]>
Co-authored-by: ispobock <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
zcnrex added a commit to zcnrex/sglang that referenced this pull request Nov 18, 2026
Hopper kernels for Inkling-2-Small: Marlin NVFP4/MXFP8 expert GEMMs and GEMV, activation fake quantization, MTP draft ops, and FP8 group-32 configs for the Marlin MoE kernel.

Split out of the Inkling-2-Small support PR (sgl-project#50186).

Co-authored-by: ispobock <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
zcnrex added a commit to zcnrex/sglang that referenced this pull request Nov 18, 2026
MHASubPoolSpec/MHAView gain an is_mxfp8 layout that keeps token-major UE8M0 K/V scale rows next to the E4M3 payload in each layer entry, so --kv-cache-dtype mxfp8 works with unified memory (writes, prefix commit, page envelopes, host offload). quant_store_kv_mxfp8 accepts strided caches and token-major scales.

Split out of the Inkling-2-Small support PR (sgl-project#50186).

Co-authored-by: Cheng Wan <[email protected]>
Co-authored-by: ispobock <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
zcnrex and others added 2 commits November 18, 2026 23:20
…main

# Conflicts:
#	python/sglang/kernels/ops/attention/inkling2_decode_attention_sm90.py
#	python/sglang/kernels/ops/gemm/inkling2_marlin_sm90.py
#	python/sglang/kernels/ops/kvcache/mxfp8_quant_store_kv.py
#	python/sglang/kernels/ops/moe/inkling2_experts_sm90.py
#	python/sglang/srt/layers/attention/flashattention_backend.py
#	python/sglang/srt/mem_cache/hybrid_cache/linker_pool_assembler.py
#	python/sglang/srt/mem_cache/kv/layout/mha.py
#	python/sglang/srt/model_loader/loader.py
#	python/sglang/srt/speculative/dspark_components/dspark_verify.py
#	python/sglang/srt/speculative/dspark_components/dspark_worker_v2.py
#	test/registered/kernels/ops/kvcache/test_unified_mxfp8.py
#	test/registered/unit/mem_cache/test_linker_pool_assembler.py
#	test/registered/unit/model_loader/test_runai_model_streamer_loader.py
Prefill beyond the routed-kernel batch is fast only on MegaMoE since the CUTLASS
grouped GEMMs were dropped. The model override now picks MegaMoE for the
inkling2 quantized checkpoints when experts span two or more GPUs on SM100 /
SM103, and a forward larger than the MegaMoE buffer runs in buffer-sized
pieces instead of falling back to the routed prefill path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
sglang-doc 🟢 Ready View Preview Nov 19, 2026, 10:17 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 19, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@ispobock

Copy link
Copy Markdown
Collaborator Author

/rerun-failed-ci

This branch was successfully deployed

1 active deployment
staging - docs — e05b9a7c Deployed Nov 19, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blackwell SM100/SM120 bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation hicache Hierarchical Caching for SGLang highest-priority CI: all three control labels, plus never batch-cancelled or stale-closed jit-kernel memory-pool Multi-modal multi-modal language model quant LLM Quantization release-highlight Candidate PR for release note highlight run-ci CI: run the baseline test suite on this PR run-ci-nv-extra CI: NVIDIA/shared Extra suite (requires run-ci) rust-processor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants