Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ python -m pytest test/unit -v -rfE
CI now. A setup that needs eight GPUs on one host or another GPU type is
skipped with a notice; run its tests by hand (see the last item). Once an
eight-GPU runner is added, CI will run those setups as well.
- Kimi K3's `test_kimi_k3_b300.py` adds a sequential stock/plugin accuracy and
performance comparison on eight B300 GPUs: TP8, five-proposal/q6 DSpark,
stock draft execution, DCP off, and the existing `sm148` opt-in. Its normal
CI route requires SGLang's per-model runner mapping (#51429) and hybrid
verification views (#51977) on `main`. Adding a model that fits a reviewed
mapping needs no workflow change; adding a runner mapping does. Explicitly
requesting an unavailable configuration must fail, not count as coverage.
- Each supported model and hardware setup needs:
- **an accuracy test** against native SGLang with the megakernel off, on the
same SGLang SHA and evaluation set, ending in a comparison verdict rather
Expand All @@ -365,10 +372,10 @@ python -m pytest test/unit -v -rfE
B300 or another GPU, and a pass at one layout does not qualify another.
[The comparison protocol](#the-comparison-protocol) below says how to run the
accuracy and performance tests.
- Today's tests do not meet that yet. DeepSeek-V4.1-Flash's serving test
- Not all existing tests meet that yet. DeepSeek-V4.1-Flash's serving test
(`test_deepseek_v41_server.py`) launches only the megakernel and checks
GSM8K against an absolute bound; no model has a paired accuracy and
performance comparison in CI. New tests follow the protocol above, and an
GSM8K against an absolute bound. Kimi K3's B300 test provides the paired
comparison; other new tests follow the protocol above, and an
agent extending an existing test moves it toward it.
- Reuse the DeepSeek-V4.1-Flash structure. A helper module
(`deepseek_v41_server.py`) holds the model path, launch arguments and
Expand Down
14 changes: 12 additions & 2 deletions sgl_nvidia_mega/kimi_k3/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@
"megakernel_agree",
),
"srt/runtime_context.py": ("get_model",),
"srt/utils/hf_transformers/common.py": ("get_context_length",),
"srt/hf_transformers/common.py|srt/utils/hf_transformers/common.py": (
"get_context_length",
),
"srt/configs/kimi_k3.py": ("text_config",),
"srt/arg_groups/fields/*.py": (
"context_length",
Expand Down Expand Up @@ -157,7 +159,15 @@ def _deadline_ns(seconds: Any) -> int:


def _config_disable_reasons(cfg: Any, hf_config: Any) -> list[str]:
from sglang.srt.utils.hf_transformers.common import get_context_length
try:
from sglang.srt.hf_transformers.common import get_context_length
except ModuleNotFoundError as error:
if error.name not in (
"sglang.srt.hf_transformers",
"sglang.srt.hf_transformers.common",
):
raise
from sglang.srt.utils.hf_transformers.common import get_context_length

reasons: list[str] = []
try:
Expand Down
13 changes: 9 additions & 4 deletions test/e2e/ci_models.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# The end-to-end tests SGLang's pr-test-megakernel.yml runs on a PR here, by model.
# gpu and gpus: the GPU and how many of them on one host the model's tests need.
# A runner with another GPU or fewer GPUs skips the model and logs why. A new
# model adds its entry here; SGLang's workflow needs no change.
# Only models supported by the available four-GPU GB300 runner belong here.
# Qwen3.5 requires eight GPUs and is not included in this CI configuration.
# SGLang selects a reviewed runner for each GPU/count requirement. Models without
# a suitable runner are not covered; explicitly requesting one must fail.
#
# Each model's key is its CI label: run-ci-sglang:<key> on a PR runs only that
# model, and run-ci-sglang runs them all. Keys use lowercase letters, digits and
Expand All @@ -15,3 +13,10 @@ deepseek_v41:
tests:
- test_deepseek_v41_server.py
- test_deepseek_v41_switch.py

# Requires SGLang's per-model runner selection; stock draft execution, q6, DCP off.
kimi_k3:
gpu: B300
gpus: 8
tests:
- test_kimi_k3_b300.py
Loading
Loading