/tt-model-bringup:model-bringupfrom Tenstorrent Model Bring-up
Implements 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.
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.
Own the implementation, stage gates and evidence for one target HF model in a tt-metal checkout. Read the relevant stage skill and its exact goal before doing that stage. Do not skip unmet gates or replace acceptance criteria with a review plugin's criteria.
Resolve this plugin root from this file: two directories above its skill directory. Set
TT_MODEL_BRINGUP_ROOT to that absolute path. Keep the installed package read-only.
The SKILL.md files on disk under that root are the authority; if the host's skill tool
serves text from a different version than .claude-plugin/plugin.json records, read the
files directly.
For a new Codex multigoal run, follow automatic telemetry setup:
use an enabled integration or quietly check access to tenstorrent/ar-dashboard
and automatically install/use its telemetry plugin when accessible. Continue silently
when access is unavailable. Respect explicit opt-outs and retain recorded telemetry
on resumes. Select only enabled installations; never search arbitrary cached copies.
Verify tt-autodebug is installed and enabled in the current host using its plugin inventory.
This dependency is declared in dependencies.json. If missing, stop
and give the appropriate explicit install instruction:
codex plugin add tt-autodebug@tenstorrent-skills/plugin install tt-autodebug@tenstorrent-skills
Never install it automatically or use a stray source checkout in place of an enabled plugin.Resolve TT_AUTODEBUG_ROOT from that installed plugin's skill path (two directories above the
autodebug skill directory). On Codex that path comes from the plugin inventory command; on
Claude Code it is the enabled installation's directory recorded in the host's plugin inventory
(claude plugin list shows it as "Read from"). Validate the package and prepare the shell environment:
# Set these two paths from the host's enabled installation inventory first.
export TT_MODEL_BRINGUP_ROOT="<installed tt-model-bringup directory>"
export TT_AUTODEBUG_ROOT="<installed tt-autodebug directory>"
BRINGUP_EXPORTS=$(python "$TT_MODEL_BRINGUP_ROOT/scripts/environment.py") || exit
eval "$BRINGUP_EXPORTS"
Run this setup in shells used for model work. The runner also supplies these exports to its
child. PYTHONPATH exposes the packaged readiness_check module; it does not copy files into
tt-metal. Shell commands using package resources must quote the expanded absolute paths.
Confirm the HF model/revision, target checkout, acceptance contract and already-authorized
hardware. Resolve model directory as models/autoports/<lowercase HF ID with non-alphanumeric characters replaced by underscores>. Do not acquire hardware just because a plugin was installed.
Record any serving-plugin interface change that the operator authorizes for this run.
Keep the checkout, CODEX_HOME, runner logs and artifacts on persistent storage. Runtime model
changes belong in the target checkout; workflow fixes belong in this plugin. Changes to the
TT vLLM plugin or vLLM follow plugin changes.
Record exact commands, commits, hardware identity and evidence. Keep weights, credentials and
private logs out of published commits. Run the repository's commit hooks (formatters, file-size
limit) before the first device run of each commit so the evidence SHA is the shipped code;
server logs over the size limit go in gzipped.
Treat upstream documentation and the selected source tree as the authority for dependency versions, installation commands and APIs. Resolve current supported combinations for new runs; do not copy version pins or workarounds from an old experiment. Record the resolved commits, versions and recommendation source, then retain them across resumes. Re-resolve only for an explicit restart or migration, preserving prior evidence and revalidating affected checks. For serving, follow vLLM stack setup.
The eleven goal templates run in order:
functional-decodergraph-fusingoptimizemultichipoptimizefull-modeloptimizedatatype-sweepvllm-integrationoptimizebenchmark-modelFor an optional standalone TTI release handoff once serving is ready, use
tti-release.
When the authorized hardware is one chip, stages 4 and 5 are recorded as skipped by the
operator in the run record and the full-model goal starts from tt/optimized_decoder.py;
single-chip is then the target topology, not a fallback, and the later stages say so.
tt-device-usage, tt-enable-tracing, qualitative-check and stage-review provide shared
requirements. AutoDebug/AutoTriage/AutoFix come from the explicit dependency. Implementation
stages 1–10 require independent review with clean-pass; findings require repairs and rereview.
The final benchmark stage produces results for the bringup owner and checks measurement
completeness without an accuracy acceptance review. Preserve original goal
criteria, local commit boundaries and the prohibition on pushing stage changes automatically.
When a stage adds or changes chunking, padding, sharding, dispatch, or memory ownership, select a small set of checks from the actual branch conditions and allocation rules. Cover each affected path, the valid lengths immediately around its boundaries, and awkward tails; one large passing input does not cover a different branch or remainder. Check sibling consumers of the same rule (for example, attention and MLP). Use cheap host-side shape/allocation arithmetic where useful, then exercise the affected device path.
Record the changed path, selected cases, and results in the existing stage evidence. A previous stage's pass does not validate a path introduced or changed later. Rerun the affected cases on the final implementation; reuse unaffected evidence. Start diagnosis with an op or representative layer, but preserve the stage's required full-model and serving acceptance checks. Do not add a full boundary sweep or long soak by default.
For an unattended Codex run, install requirements.txt in the active
Python environment, or provide --codex-bin for an existing Codex with goals/app-server support.
The templates authorize skill-requested subagents. Inspect the full expanded goals and execution
permissions before starting a costly run. The runner defaults to --approval-policy never
and --sandbox danger-full-access; override these for environments that require narrower access.
It uses the supplied Codex home's authentication and removes ambient OpenAI/Codex API keys.
From the target tt-metal checkout, first perform a no-model dry run. When telemetry setup selected an integration, use its launcher instead of the command below; that launcher must retain the same prompt files, replacements and checks.
python "$TT_MODEL_BRINGUP_ROOT/scripts/multigoal" \
"$TT_MODEL_BRINGUP_ROOT"/prompts/model_bringup_multigoal/*.txt \
--repo "$PWD" --replace HF_MODEL=org/model \
--replace MODEL_DIR=models/autoports/org_model --dry-run
The dry run validates package contents without starting Codex. Before the first live goal, the
runner verifies both packages are enabled in the selected Codex home through skills/list. It
binds short workflow skill names to their installed, qualified plugin names and paths.
Inspect the expanded prompt copies and manifest under bringup/artifacts/multigoal-runs/.
Remove --dry-run to execute the reviewed goals; choose the requested model with --model and
reasoning effort with --effort. This runner requires Codex. Claude can execute individual stage
skills and check scripts directly, preserving the same stage order and acceptance criteria.
To resume a stopped stage, use the same prompt selection/replacements, Codex home and preserved
--log-dir, adding --resume-stage N. Keep the original --start-index for that prompt selection;
use --start-index N only when the supplied first prompt itself is stage N. Resume reuses the
recorded thread and appends attempt logs. Do not restart earlier completed stages unnecessarily.
Startup telemetry setup automatically installs the
optional tenstorrent/ar-dashboard integration for users whose existing credentials
can read it. Unavailable access is silent and never blocks bringup. Installation and
selection happen during agent setup; the runner itself does not install plugins.
The runner accepts --telemetry-plugin PATH or TT_BRINGUP_TELEMETRY_ROOT for an
explicitly selected, enabled telemetry plugin. Without either, no telemetry extension
is loaded. An installed integration can add stage evidence instructions, local reports
and delivery to its own endpoint. Follow that plugin's skill for its launcher and options.
The runner reports ordinary extension exceptions and SystemExit as advisory errors.
Plugins execute in the runner process with its permissions; use only trusted plugins.
The loader does not enforce callback timeouts or isolate plugin code.
The hook API contains no endpoint or upload implementation.
Stages 6, 7, 9, 10 and 11 have sibling .check.sh scripts. Run from the target checkout with
MODEL_DIR set to its exact autoport path. They resolve their own package resources. Exit 0 passes;
1 is advisory; 2 is critical; other exits mean checker/environment failure. The runner retries
checker errors once and stops by default; it runs bounded remediation goals for failed checks.
--no-checks and --check-error-policy continue are explicit overrides, not acceptance evidence.
The readiness runtime provides generator/serving contracts, HF reference generation, prefill,
traced teacher-forcing, autoregressive and vLLM runners. Use python -m readiness_check.<runner>
after startup. The runners open the mesh with the runtime's default trace region;
READINESS_TRACE_REGION_SIZE=<bytes> overrides it for generators whose split-sampling path holds
more than one trace. The runners write no provenance: keep a sidecar JSON with the commit and
chip for every run. The vLLM runner takes --output-dir for a run that must not overwrite the
gate's readiness_vllm/ artifacts (tracked or A/B runs); the gates read only readiness_vllm/. Hardware runners require the active tt-metal/TTNN environment plus torch,
transformers, requests and openai as applicable. Book/AIME input corpora are read from the target
checkout's documented models/ paths; generated references belong under bringup/references/.
No reference tensors or experiment outputs are bundled.
Report stage status, commands, checked artifacts and remaining failures. Packaging tests and dry runs prove wiring only; they do not prove PCC, text quality, device safety or performance.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./multichipParallelize single-chip TTNN code across the available multi-chip hardware. Use when parallelizing a model or module, choosing a tensor/mesh parallel strategy, comparing to a single-chip TTNN baseline, and leaving correctness plus performance evidence.Other plugins' skills for the same job