onboard-model
БесплатноБез исполняемых скриптовНе проверенEnd-to-end pipeline for discovering new LLMs with novel kernels and onboarding them into FlashInfer-Bench. Orchestrates repo updates, model discovery, kernel…
от flashinfer-ai★ 314 звёзд на GitHubОб этом скилле
Onboard Model
Thin orchestrator that runs the five-phase pipeline for adding a new LLM to FlashInfer-Bench. Each phase delegates to a focused skill — this file is the contract that chains them together via a shared run manifest.
Overview of phases
| Phase | Skill | Output |
|---|---|---|
| 0 | /clone-repos |
tmp/sglang/, tmp/flashinfer/, tmp/sgl-cookbook/, tmp/flashinfer-trace/ cloned and current |
| 1 | /discover-models |
manifest kernels[] populated with phase1_status, fi_status, fi_trace_template, sgl_status |
| 2 | /extract-kernel-definitions (+ inline gh issue create for fi_missing) |
definition JSONs in tmp/flashinfer-trace/definitions/ — auto-dumped via FLASHINFER_TRACE_DUMP=1 for kernels with fi_trace_template=true, otherwise hand-written; manifest phase2_status=done (and fi_issue_url for fi_missing) |
| 3 | /collect-workloads (+ inline SGLang PR for sgl_missing) |
workloads + blobs in tmp/flashinfer-trace/; manifest phase3_status=done |
| 4 | /submit-onboarding-prs |
one HF PR + one bench PR per definition; manifest phase4 populated |
The state contract between skills is the run manifest at
tmp/onboard_{model_slug}_{date}.json — see "Run manifest" below.
Usage
# Discover new models and fully onboard any that are ready
/onboard-model --discover
# Onboard a specific known model end-to-end
/onboard-model --model-name qwen3-235b-a22b --hf-repo-id Qwen/Qwen3-235B-A22B
# Run only specific phases (e.g. skip workload collection for now)
/onboard-model --model-name kimi-k2 --phases 0,1,2
# Dry-run: discover and report what would be done without making changes
/onboard-model --discover --dry-run
Parameters
--discover(optional): Auto-discover new models from SGLang day-0 additions and sgl-cookbook. Compatible with--model-name.--model-name(optional): Specific model slug to onboard (e.g.qwen3-235b-a22b).--hf-repo-id(optional): HuggingFace repo override. Inferred from--model-nameif omitted.--phases(optional): Comma-separated list of phases to run (default:0,1,2,3,4).--dry-run(optional): Print what would be done without writing files or submitting PRs.--skip-workload(optional): Skip Phase 3 (e.g. when no GPU is available).--submit-prs(optional): Submit Phase 4 PRs (default: true).
Phase 0: Update local repos
Delegate to the clone-repos skill.
/clone-repos
After the pull, capture the current SHAs and write them to the manifest's repo_shas:
git -C tmp/sglang rev-parse --short HEAD
git -C tmp/flashinfer rev-parse --short HEAD
git -C tmp/sgl-cookbook rev-parse --short HEAD
git -C tmp/flashinfer-trace rev-parse --short HEAD
Report the SHAs in the Phase 0 summary so the user can reproduce the run.
Phase 1: Discover model + classify kernels
Delegate to the discover-models skill, which produces the
manifest's kernels[] array — each entry tagged with phase1_status (existing/new),
fi_status (fi_supported/fi_missing/n-a), and sgl_status (sgl_integrated/sgl_missing/n-a).
# In auto-discover mode
/discover-models --discover --manifest tmp/onboard_{model_slug}_{date}.json
# In single-model mode
/discover-models --model-name {model_slug} --hf-repo-id {hf_repo_id} \
--manifest tmp/onboard_{model_slug}_{date}.json
Subsequent phases iterate over kernels and act based on the per-entry classification.
Phase 2: Generate kernel definitions
For each kernel with phase1_status=new, generate a Definition JSON and write it into
tmp/flashinfer-trace/definitions/{op_type}/.
2b: fi_supported → trace-dump from a short SGLang pass (or manual fallback)
Delegate to extract-kernel-definitions. When
the kernel's FlashInfer API carries an @flashinfer_api(trace=...) decorator (i.e.
fi_trace_template=true in the manifest), one short SGLang inference pass with
FLASHINFER_TRACE_DUMP=1 and attention_backend="flashinfer" produces complete Definition
JSONs for every shape it touches — axes, inputs, outputs, tags (fi_api:*,
status:verified), and reference are filled in by the dumper. For decorated kernels
that the model didn't exercise (e.g. an unused page-size variant) or for FlashInfer APIs
not yet decorated, the same skill falls back to manual extraction from sgl-cookbook +
HF config.
/extract-kernel-definitions --model-name {sglang_model_name}
Verify each new definition now exists:
find tmp/flashinfer-trace/definitions/ -name "{definition_name}.json"
Update each kernel's phase2_status=done in the manifest.
2a: fi_missing → manual SGLang-sourced reference + file kern
Установить onboard-model в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл onboard-model?
End-to-end pipeline for discovering new LLMs with novel kernels and onboarding them into FlashInfer-Bench. Orchestrates repo updates, model discovery, kernel definition generation, workload collection, and PR submission.
Как установить скилл onboard-model?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл onboard-model запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub