discover-models
БесплатноБез исполняемых скриптовНе проверенDiscover candidate LLMs and produce a kernel inventory — required definitions, classified as existing/new and fi_supported/fi_missing — for onboarding. Use as…
от flashinfer-ai★ 314 звёзд на GitHubОб этом скилле
Discover Models
Identify target models and produce a per-kernel inventory:
- which definitions are needed,
- which already live in the HuggingFace dataset (
tmp/flashinfer-trace/definitions/), - which are new and supported by FlashInfer,
- which are new and missing from FlashInfer (so a kernel-request issue is needed).
Produces the kernels block of the onboard-model run manifest.
Usage
# Auto-discover candidate models added to SGLang in the last 30 days
/discover-models --discover
# Plan a specific model
/discover-models --model-name qwen3-235b-a22b --hf-repo-id Qwen/Qwen3-235B-A22B
# Write the inventory to a manifest file (consumed by /onboard-model)
/discover-models --model-name kimi-k2 --manifest tmp/onboard_kimi-k2_20260427.json
Parameters
--discover(optional): Auto-discover candidates from SGLang day-0 additions and sgl-cookbook YAMLs.--model-name(optional): Specific model slug to plan (e.g.qwen3-235b-a22b).--hf-repo-id(optional): HuggingFace repo override (e.g.Qwen/Qwen3-235B-A22B). Inferred from--model-nameif omitted.--manifest(optional): Path to an onboard-model run manifest. The skill writes themodel_slug,hf_repo_id,repo_shas, andkernelsarray. If the file already exists, fields are merged; existing per-kernel statuses are preserved unless--refreshis set.--refresh(optional): Re-classify all kernels even if entries already exist in the manifest.
Prerequisites
/clone-reposhas been run, sotmp/sglang/,tmp/flashinfer/,tmp/sgl-cookbook/, andtmp/flashinfer-trace/are present and current.huggingface_hubis installed and (for gated models) authenticated.
Phase 1a: Discover candidate models
Run only when --discover is set.
Day-0 SGLang additions (highest priority — production-ready):
git -C tmp/sglang log --since="30 days ago" --name-status --diff-filter=A \
-- "python/sglang/srt/models/*.py" | grep "^A" | awk '{print $2}'
Models with a brand-new .py under python/sglang/srt/models/ in the last 30 days are
day-0 candidates. Parse the model class to derive a slug.
sgl-cookbook new entries:
git -C tmp/sgl-cookbook log --since="30 days ago" --name-status --diff-filter=A \
-- "data/models/generated/v0.5.6/*.yaml" | grep "^A" | awk '{print $2}'
A new YAML signals a model with a recommended serving config.
Filter already-tracked models: read docs/model_coverage.mdx Summary table and skip any
candidate already listed.
Phase 1b: Fetch model config from HuggingFace
For each candidate (or the specified --model-name):
from huggingface_hub import hf_hub_download
import json
config_path = hf_hub_download(repo_id=hf_repo_id, filename="config.json")
with open(config_path) as f:
config = json.load(f)
Key fields to extract: see track-models SKILL.md for the full config.json → kernel param
mapping table.
Phase 1c: Determine required kernel definitions
Use the per-op-type formulas in track-models Phase 3a to compute the expected definition
names from the model config and the sgl-cookbook TP/EP values. Each formula yields a fully
qualified definition name like gqa_paged_decode_h40_kv8_d128_ps1.
Phase 1d: Classify existing vs new
For each expected definition name, search the HuggingFace dataset clone (definitions live only there after the trace-dataset refactor):
find tmp/flashinfer-trace/definitions/ -name "{definition_name}.json"
| Result | Classification |
|---|---|
| File found | existing — no new definition needed |
| Not found | new — proceed to FlashInfer-availability classification |
Phase 1e: Check FlashInfer kernel availability for new definitions
For each new definition, determine whether FlashInfer already implements the underlying kernel.
| op_type | Check path in tmp/flashinfer/ |
|---|---|
rmsnorm |
flashinfer/norm.py — grep for rmsnorm |
gqa_paged |
flashinfer/decode.py, flashinfer/prefill.py |
gqa_ragged |
flashinfer/prefill.py |
mla_paged |
flashinfer/mla.py |
dsa_paged |
flashinfer/sparse.py |
gdn |
flashinfer/gdn.py or flashinfer/gdn/ |
moe |
flashinfer/fused_moe/ — check the specific variant |
gemm |
always available via PyTorch |
sampling |
flashinfer/sampling.py |
mamba_ssu |
flashinfer/mamba.py — grep for selective_state_update |
rope |
flashinfer/rope.py — grep for apply_rope_with_cos_sin_cache |
Also check tmp/flashinfer/tests/ for a corresponding test file — its presence is a strong
signal the kernel is implemented and tested.
A stronger signal that the kernel is fully ready for the trace-dump path (Path A in
extract-kernel-definitions) is whether the
FlashInfer API carries an @flashinfer_api(trace=...) decorator (added by
[flashinfer-ai/flashinfer#2931](https://github.co
Установить discover-models в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл discover-models?
Discover candidate LLMs and produce a kernel inventory — required definitions, classified as existing/new and fi_supported/fi_missing — for onboarding. Use as Phase 1 of /onboard-model, or standalone to plan onboarding work.
Как установить скилл discover-models?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл discover-models запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic