fk-add-model
/fk-add-model
Onboard a new model into fast-kernel (any torch module, a Transformers model, ultralytics, custom repo) - write spec.py (loader, workloads, oracle comparison, hints), GOAL.md, candidate stub, then baseline. Use for "add model X", "optimize my own model", "support <architecture>".
- Author
- kadirnar ↗
- Repository
- fast-kernel ↗
- Licence
- MIT
- Last repository change
- 29.08.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 29.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Onboard a new model into fast-kernel (any torch module, a Transformers model, ultralytics, custom repo) - write spec.py (loader, workloads, oracle comparison, hints), GOAL.md, candidate stub, then baseline. Use for "add model X", "optimize my own model", "support <architecture>".
Triggers from the description
Arguments
/fk-add-model <name-or-hub-id>
Original author description
Onboard a new model into fast-kernel (any torch module, a Transformers model, ultralytics, custom repo) - write spec.py (loader, workloads, oracle comparison, hints), GOAL.md, candidate stub, then baseline. Use for "add model X", "optimize my own model", "support <architecture>".
How it works
SKILL.md has no level-two headings · 16 lines, 157 words
SKILL.md preview
---
name: fk-add-model
description: Onboard a new model into fast-kernel (any torch module, a Transformers model, ultralytics, custom repo) - write spec.py (loader, workloads, oracle comparison, hints), GOAL.md, candidate stub, then baseline. Use for "add model X", "optimize my own model", "support <architecture>".
argument-hint: <name-or-hub-id>
allowed-tools: Bash(fast-kernel *), Bash(uv run *), Bash(python *), Read, Edit, Write, Glob, Grep, WebFetch
---
1. `fast-kernel init custom --name <name>` (or start from the closest built-in: `mimi`, `lfm25`, `yolo`).
2. Edit `spec.py`: subclass `fastkernel.models.ModelSpec` (or `HFCausalLMSpec` / `TorchModuleSpec`):
- `load_reference()` → deterministic eval model on CUDA (the oracle; fp32 or the deployment dtype);
- `workloads()` → `Workload(name, make_inputs(device, seed) -> dict, run(model, inputs) -> outputs,
primary=..., units={"audio_seconds"|"tokens"|"images": ...})`, plus sweeps (`tags=("sweep",)`) and
`edge_workloads()` (short/odd/batched inputs);
- `compare(workload, ref, cand) -> [GateCheck]` for model-specific semantics (exact discrete codes,
top-1 agreement, IoU), otherwise the default allclose applies; `compare_determinism` if atomics are expected;
- `notes` (architecture + known hot paths) and `hotspot_hints()` (symbol → category) for PLAN.md.
3. Edit `GOAL.md` frontmatter: `model: custom`, `target_metric`, `gates.precision`, `bench`, `model_args`.
4. `fast-kernel probe && fast-kernel baseline` — the baseline must pass its own gates (it always should; if
not, the reference is non-deterministic: fix seeds/TF32/cuDNN settings in `load_reference`).
5. Optionally register it in `fastkernel/models/registry.py` and add a template under
`fastkernel/templates/models/<name>/` so `fast-kernel init <name>` works for everyone.
Versions
The database has no other skills named fk-add-model.
Database snapshot: 13.11.2026 · package version d064c5c60930 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100fk-optimize
Start or continue the fast-kernel optimization loop for a model, from plain text. Use whenever the user asks to optimize, accelerate, speed up or make faster a model - "Optimize the Mimi codec model.", "make LFM2.5 faster", "optimize the LFM2 audio model", "optimize the YOLO… - 100fk-experiment
Run exactly ONE fast-kernel experiment (state -> one hypothesis -> edit candidate/ -> fast-kernel eval -> note) in the current campaign and stop. The unit of work for /fk-optimize, `/loop /fk-experiment` and the Stop-hook loop. Use for "run one experiment", "next iteration", "try one more idea". - 100add-new-model
Guided workflow for adding a new model architecture to llama.cpp. Use when the user wants to add/port a new model architecture. - 100add-model
Add a new language model to the Giselle codebase. Use when the user wants to add, register, or integrate a new LLM model (OpenAI, Anthropic, Google) into the system. - 100dataset-loader-creator
Create dataset loader creator operations. Auto-activating skill for ML Training. Triggers on: dataset loader creator, dataset loader creator Part of the ML Training skill category. Use when working with dataset loader creator functionality. Trigger with phrases like "dataset… - 100onboard-generator-model
Take a new model from nothing to mod-testable in the live generator, then hand off for launch. Orchestrates the child skills in order — add-ecosystem, write-model-description, official-model-admin, generation-coverage, generation-gate-rules, add-generation-support,…