/tt-model-bringup:tt-device-usagefrom Tenstorrent Model Bring-up
Provides safe practices for using Tenstorrent (TT) hardware during model bringup, tests, profiling, and serving. Covers command serialization, device reset/recovery, hang triage, and determining if a hardware failure is recoverable.
Ships in Tenstorrent Model Bring-up. 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.
Before using this workflow, follow the dependency and environment setup in the model-bringup entrypoint. Resolve its package root from this installed skill's location; do not assume this plugin is copied into the target tt-metal checkout.
Use this skill for the hardware-facing parts of model bringup. It covers only non-obvious TT device practices: command serialization, reset/list quirks, recoverable ARC/ERISC failures, hang triage, and when a stage may call itself blocked.
tt-smi, resets, TTNN import/open-device probes, watcher runs, Tracy/device-profiler runs, tests, benchmarks, and serving jobs. On a multi-chip host, one process per chip with TT_VISIBLE_DEVICES=<n> is allowed when the operator assigns chips; set it on host-only test sweeps too, because a parametrized device fixture in an unrelated module opens every chip. Resets and tt-smi stay one at a time for the whole host.fuser /dev/tenstorrent/<n> before using a chip; a chip held by a process this run did not start is unavailable, and that process is never killed.timeout. Do not SIGTERM a process with outstanding device work: it leaves the dispatch path wedged, a later open hangs on a trivial op, and only an operator reset recovers the chip. Let the timeout end the job, record it, and stop device work on that chip when a mesh smoke no longer completes.serial or concurrent and the chips in use) in its sidecar, and re-measure the selected configuration serially before ranking it against measurements from the other regime.TT_METAL_WATCHER with device-profiler or Tracy collection.CODEX_HOME on storage that survives reboot and, when applicable, container recreation. The runner defaults to <repo>/bringup/artifacts/multigoal-runs/<timestamp>; any --log-dir or RUN_MULTIGOAL_LOG_DIR override must also use persistent storage. Do not put resume state in /tmp: recovery needs both the manifest's stage/thread mapping and the Codex session state.CODEX_HOME, auth/config, completed stage artifacts, or the repo state.Use bounded commands so a bad device state cannot consume the whole stage:
timeout 60 tt-smi -ls --local
timeout 180 tt-smi -r
timeout 60 tt-smi -ls --local
A reset is an operator action. A bringup agent runs it only when the operator's brief authorizes resets; otherwise it records the wedged chips, keeps evidence, and reports the reset as the operator's next step.
After reset, check that the expected devices are visible. On a T3K this usually means all eight chips. If reset returns but not all expected devices or Ethernet links come back, run the bounded reset sequence one more time before escalating. A first reset can leave part of the mesh or Ethernet fabric missing.
When device listing looks healthy, prove the mesh can actually open and close before resuming the stage:
python - <<'PY'
import ttnn
mesh = ttnn.open_mesh_device(ttnn.MeshShape(2, 4), trace_region_size=0)
ttnn.close_mesh_device(mesh)
print("MESH_SMOKE_OK")
PY
Adjust MeshShape for non-T3K targets. Record the final device list and mesh-smoke result.
Treat these as recoverable infrastructure faults until recovery fails:
Timeout waiting for Ethernet core service remote IO requestETH core heartbeat check failedUnexpected ERISC Response FlagsRead 0xffffffff from ARC scratchtt-smi -ls --local hanging or failingtt-smi -r hanging or failingRecovery sequence:
EngineCore, vllm.entrypoints, run_vllm_server, model benchmark processes, stale pytest, stale Tracy, and stale profiler jobs.ttnn.ReadDeviceProfiler(mesh) work while hardware is unhealthy.--resume-stage <stage_number> --log-dir <preserved_run_directory> with the same Codex home recorded in the manifest instead of restarting completed earlier stages.Do not mark a model stage blocked because a board briefly became undiscoverable. A model stage may block on hardware only after this recovery path fails or requires operator intervention the agent cannot perform.
Every device job runs under a timeout (Basic Rules), so a hung job is left to that timeout; never SIGTERM it yourself. When the hang is reproducible or its evidence is wanted, attach tt-triage before the timeout fires: triage reads the device without ending the job. After the timeout ends the job, run a trivial op on that chip before the next job; if it does not complete, stop device work on the chip and report it for the operator reset. An engine subprocess of the agent's own server that is orphaned by a crash inside trace capture has no timeout and may spin forever in mesh shutdown; after a bounded wait (20 minutes with no log progress) the agent may kill that process, then verifies the chip with a trivial op.
Prefer the LLM-readable report:
mkdir -p models/autoports/<model>/doc/<stage>/triage
timeout 180 tools/tt-triage.py \
--llm-output \
--llm-output-path models/autoports/<model>/doc/<stage>/triage/tt-triage.txt \
--triage-summary-path models/autoports/<model>/doc/<stage>/triage/triage-summary.txt
Useful focused variants:
timeout 120 tools/tt-triage.py --llm-output --run=dump_callstacks --run=dump_running_operations --run=check_eth_status
timeout 120 tools/tt-triage.py --llm-output --run=dump_watcher_ringbuffer --run=check_arc
If dependencies are missing, install the repo-local triage requirements in the active environment:
python -m pip install -r tools/triage/requirements.txt
Read tools/triage/tt-triage.md for command details and available scripts. Keep the triage output with the stage evidence. Under TT_VISIBLE_DEVICES, pass --dev=<visible index>; without it the tool addresses the wrong chip or returns only health checks.
After capturing triage, use $autofix for the failure if ordinary log reading does not explain it. $autofix will run $autodebug when needed. Give it the failing command, console log, tt-triage.txt, current stage work log, and relevant source paths. Do not declare a stage blocked for a hang until $autofix has tried and failed, unless the remaining blocker is unavailable hardware or operator-only recovery.
For any hardware recovery or hang, record:
tt-smi list/reset/list commands and exit status;$autofix was used, and its conclusion;What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tenstorrent, tt-metal, hardware-safety, device-recovery, model-bringup
npx claudepluginhub tenstorrent/skills --plugin tt-model-bringup14 skills in this plugin
/benchmark-modelReport a text model's accuracy on fixed lm-eval subsets and 4K-input vLLM serving performance at concurrency 1 and 32. Use after optimized-vLLM for the final model-bringup report or to benchmark a supported model./datatype-sweepSweep and select TTNN model weight, activation, KV-cache, CCL datatype, and compute-fidelity policies for the fastest configuration that satisfies minimum full-model top-1 and top-5 accuracy. Use after optimized-full-model and before vLLM, or whenever a runnable TTNN full model needs evidence-backed precision selection./full-modelBuild a complete TTNN autoregressive model and generator from a HuggingFace model plus one or more working TTNN block or decoder implementations. Use when assembling embeddings, block stack, final norm, logits, KV-cache handling, and generation into a full model, validating end-to-end behavior, and reporting full-model accuracy plus generator-level performance. Repo-specific file contracts belong in a project orchestration skill such as model-bringup./functional-decoderBring up a functionally correct TTNN implementation of HuggingFace transformer decoder layers under the model-specific autoport directory. Use when producing a functional_decoder.py implementation, reading the HF decoder architecture, validating paged prefill/decode against the HF reference, and leaving compact correctness and performance evidence./graph-fusingFuse a TTNN op graph into a faster numerically-equivalent one by (1) replacing a primitive op sequence with a dedicated tt-metal op, (2) simplifying/merging structural ops, and (3) folding adjacent ops into an existing op./model-bringupImplement Hugging Face text models in TTNN through staged decoder, multi-chip, full-model, datatype, vLLM and benchmark work. Use for model bring-up or resuming its staged goals; requires separately installed tt-autodebug.Other plugins' skills for the same job