/tt-serve-model:launchfrom Tenstorrent Deploy
Diagnoses in-progress or completed model launches on Tenstorrent hardware. Classifies failure signatures, validates docker flags and overrides, and provides ranked fixes based on captured logs and state.
Ships in Tenstorrent Deploy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Diagnose a model launch that is running, hanging, or has failed, and produce the Launch table (L1–L9) plus a ranked fix when something is wrong. Every answer comes from a captured log/state snapshot or a listed static rule.
Invoke tt-serve-model:launch (Skill tool) when:
docker run / run.py has already been issued for a model launch.Boundary: tt-serve-model:discover answers what the machine is, before a launch starts.
tt-serve-model:retrieve answers what the model/image should be — its spec entry,
docker image tag, mandatory flags, gating. tt-serve-model:launch answers what a launch
is doing, once one is running, against what tt-serve-model:retrieve said it should
be. tt-serve-model:verify takes over the moment the server actually answers /health.
Shell state does not survive between Bash calls. Start every call with:
SCRATCH=<session scratchpad>
CID=${CONTAINER:-$(docker ps -a --format '{{.CreatedAt}}\t{{.ID}}\t{{.Image}}' | grep -E 'vllm-tt-metal|tt-inference-server' | sort -r | head -1 | cut -f2)}
OVERRIDE=<--override, if any>
echo "container=${CID:-NONE}"
If tt-serve-model:retrieve was run first for this model, its captured entry
(the path in $SCRATCH/selection.json) is the source of truth for what flags/image should
be running — read it before assuming a launch command was correct, rather
than re-deriving from documentation.
| Arg | Effect |
|---|---|
--container <id> | The launching container. Required for L1, L4, L6, L7, L9. Omit → read the most recently created container matching a vllm-tt-metal / tt-inference-server image. |
--override <path> | Path to a spec override file, if one is in use. Enables L6, L7. |
capture → classify → table
diagnose.md § Capture): one docker inspect + docker logs
snapshot, cached to $SCRATCH/launch-log.txt. NEVER re-tail logs per
question.diagnose.md § Interpretation): answer L1, L2, L4, L8, L9,
L10 from the captured log/state.override.md): answer L3, L5, L6, L7 — only
loaded when the question actually concerns the launch command itself, not
for every diagnosis.Fixed table, row order L1–L10, then a one-line Sources footer. L10 (silent
fallbacks and env overrides) is proposed, not yet adopted in the dataset —
emit it, and mark it PROPOSED in the ID cell until the Sheet carries it.
| ID | Question | Answer | Evidence |
|---|---|---|---|
...
Sources: docker logs <container> captured <ISO time>; static launch knowledge
docker kill,
docker rm, docker restart, or tt-smi -r here — a fix decision routes
to device recovery, which is outside this plugin. This skill only diagnoses.unknown failure: <last 20 log lines>, never a
guess — that is itself a new signature to add here, not a dead end.HF_TOKEN or JWT_SECRET, even when they appear
in a captured log or .env file. Report set/unset only.| Thought | Reality |
|---|---|
| "It's been quiet for a minute, must be hanging" | Kernel JIT/tilize is silently long-running. Compare elapsed time against the step list in diagnose.md § L2, not silence alone. |
| "The published '10–20 min' first-run estimate says this is late" | NEVER cite a single range as ground truth — not the doc's, and not the "8–22 min cold / 6–8 warm" figure this file used to give, which our own run refuted: 29 min with a warm 29 GB tensor cache, mesh assembly alone 10 m 48 s. "Warm" is not one variable — the weights cache and the tensor cache warm independently. Cite diagnose.md § Stage markers, phase by phase. |
| "I'll bind-mount the whole repo spec, it's simpler" | Overrides are ranked for a reason. Try the surgical merge first; state why before reaching for --dev-mode. |
| "The override file looks right, ship it" | NEVER skip the structural diff against upstream (L6) — a hand-edited override can silently pin the wrong image while looking correct. |
| Sub-task | Load |
|---|---|
| Is it hanging, what step, what failure, timing, what got displaced, silent fallbacks (L1, L2, L4, L8, L9, L10) | diagnose.md |
| Mandatory flags, override selection and safety (L3, L5, L6, L7) | override.md |
| What the image/spec should look like (docker image tag, mandatory flags, gating) | invoke tt-serve-model:retrieve |
| Acting on a failure (reset, restart) | outside this plugin; the user resets by hand (tt-smi -r, then relaunch) |
Server finally answers /health | hand off to tt-serve-model:verify |
knowledge/recipes/tt-inference-server/container.md now exists and carries
the mandatory docker flags, the baked-spec extraction, the run.py-vs-docker
rule and the has_builtin_warmup branch — all verified 2026-09-22 against
the live container. Where it and the inline copies in diagnose.md /
override.md disagree, the shared file is the current one.
The duplication is deliberate for now, not resolved: launch is still
usable standalone, but L2/L3/L8's static facts exist in two places and only
one of them is maintained. Collapsing them is a follow-up, not a decision
this file makes.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/discoverAnswer the 16 Discovery-stage host questions deterministically — host facts, driver, boards, hugepages, docker, HF cache, port 8000, device holders, --tt-device string, firmware minimums, idle telemetry, reset verdict, deployable models, gating, disk, clean-box. Fixed commands, fixed docs, fixed output shape. Read-only. Use before any inference deploy on a TT host./retrieveAnswer the Model Retrieval-stage questions deterministically for one model on this host — HF existence, gating, config; tt-inference-server spec entry (image, commits, status, ceilings, known_issues); image-vs-repo spec drift; GHCR tag, size, ancestry; run.py vs docker; and the tt-model-manager bundle path (search, catalog, arch, manifest, weights pointer, install state, exact serve command). Fixed commands, fixed docs, fixed output shape. Read-only unless --pull. Use before pulling or launching any model on a TT host./verifyVerify a running vLLM/TT-inference-server model is actually healthy, correct, and performant — health, served model/context, generation correctness (arithmetic, sequential state, code), mesh/hardware utilization, throughput and batching, reasoning-model quirks, and root-cause elimination when something is wrong. Deterministic test recipes against a live endpoint. Use once /health returns 200.npx claudepluginhub tenstorrent/skills --plugin tt-serve-modelOther plugins' skills for the same job