/tt-model-bringup:tti-releasefrom Tenstorrent Model Bring-up
Runs the tt-inference-server model release workflow for autoport TTNN/vLLM models, producing a customer-facing readiness markdown report. Use after optimized-vLLM or at model handoff time.
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; scripts run unread.
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.
This standalone skill runs the Tenstorrent tt-inference-server release workflow for the generated models/autoports/<model> implementation whose vLLM serving path is complete. The goal is a copied-back markdown release report plus a short local handoff note with exact commands, versions, recovery actions, and release-readiness status.
Separate release workflow success from release readiness. run.py exiting 0, API requests completing, or a report being copied back proves the release harness ran. It does not prove the model is ready if the report contains failed accuracy, API conformance, or benchmark target rows.
The release stage is only valid when the release workflow evaluates the just-brought-up autoport model. Do not run a stock tt-transformers, models/demos, or other packaged implementation for the same Hugging Face model. That measures a different model and must be treated as a failed release-stage artifact, even if run.py exits 0.
The release stage must evaluate the autoport at the context length recorded in models/autoports/<model>/doc/context_contract.json. Do not cap context, LongBench, benchmark prompt/completion lengths, or API limits to hide a model context bug. A reduced supported context is valid only when earlier stages recorded evidence that a hard physical device limit prevents the advertised context from fitting or running and proved the largest feasible value. Only adjust a request that is mathematically invalid because prompt plus completion exceeds the real supported context, and record that as a harness issue.
Treat a valid TTI prompt length as a logical request length. If TTI sends a prompt whose length is within the supported context and the autoport fails because the length is not divisible by an internal chunk, tile, block, page, or trace size, that is an autoport model bug. Do not waive it, lower the context, or change the benchmark to an aligned length. Fix the model/generator/adapter padding, chunking, masking, or output slicing path and rerun the failing item.
Assume the agent usually starts inside an IRD reservation/Codex container:
reservation container:
has tt-smi and the experiment/model context
has the generated tt-metal autoport checkout and optimized-vLLM evidence
use it for device health, tt-smi reset, autoport vLLM serving, and local model evidence
physical loudbox host:
has Docker
use only if the chosen TTI path truly needs Docker
Prefer the client/server topology:
1. Start the generated autoport vLLM server from the tt-metal reservation checkout.
2. Run TTI workflows as a client against that server's OpenAI-compatible port.
3. Do not pass --docker-server.
This deliberately keeps server-side vLLM, tokenizer, plugin, and autoport imports inside the already-working tt-metal environment. Do not try to fix server import/API mismatches by mixing the TTI Docker image's vLLM packages with the autoport server. TTI still needs a working benchmark client environment, but that client should only send OpenAI-compatible HTTP requests to the generated server.
Use Docker only when the external autoport server path is unavailable after investigation, or when the user explicitly asks for the packaged Docker path. If Docker is used, make sure the container evaluates the generated autoport, not a stock implementation.
HF model id
model autoport directory
physical host name from the authorized reservation, only if Docker or host-level recovery is needed
TTI device name, usually t3k for T3K loudboxes
experiment evidence directory, if separate from models/autoports/<model>/doc/
If Docker is needed and the prompt does not give the physical host, infer it from reservation metadata or the reservation container hostname only when obvious. Otherwise stop and ask for the host; a wrong host can use the wrong hardware.
The model autoport directory is the target implementation. Keep its exact relative path, for example models/autoports/meta_llama_llama_3_1_8b_instruct, and use that path in later spec checks.
tt-smi -ls --local
If Docker will be used, also check Docker on the physical host:
ssh "$PHYSICAL_HOST" 'docker ps >/dev/null && echo DOCKER_OK'
If docker ps fails on the physical host, do not continue with --docker-server. Use the external-server topology instead, or report physical-host Docker unavailable if Docker is truly required.
models/autoports/<model>/doc/optimized_vllm/README.md
models/autoports/<model>/doc/optimized_vllm/work_log.md
models/autoports/<model>/readiness_vllm/
If optimized-vLLM is blocked only by a recoverable ARC/reset error, recover and resume optimized-vLLM first. Do not jump to TTI release ahead of a recoverable earlier-stage hardware blocker.
models/autoports/<model> code path.models/autoports/<model>/tt/generator_vllm.py.doc/context_contract.json.Llama-3.1-8B-Instruct is not enough. Built-in model names commonly select stock models/tt_transformers implementations.tt-inference-server path selects models/tt_transformers, models/demos, or another stock implementation, stop and fix the release integration. Do not benchmark the stock model as a substitute.Clone tt-inference-server on the physical host under a per-model work directory:
WORK_ROOT=<persistent per-run work directory on the chosen client host>
ssh "$PHYSICAL_HOST" "mkdir -p '$WORK_ROOT'"
ssh "$PHYSICAL_HOST" "cd '$WORK_ROOT' && test -d tt-inference-server || git clone https://github.com/tenstorrent/tt-inference-server.git"
The required repo tag is model-specific. Do not assume main or v0.9.0.
Use one of these evidence-backed methods:
run.py says to checkout a matching release tag.model_spec.json / docs for the model's Docker image tag and checkout v<version> from the tag prefix, for example image tag 0.9.0-25305db-6e67d2d implies repo tag v0.9.0.After checkout, run python3 run.py --help and use that checkout's CLI flags. Older releases use --device; newer docs may show --tt-device.
Find or create the TTI model spec that corresponds to the target autoport implementation. Prefer a temporary model spec JSON under the TTI work root and pass it through the checkout's supported --model-spec-json or equivalent flag. If the checkout requires editing its local model spec registry, make the smallest local edit and record it.
The selected spec must identify the generated code path:
impl.code_path = models/autoports/<model>
hf_model_repo = HF model id
inference_engine = vLLM
device = target TTI device
The spec may reuse benchmark, eval, and API-test definitions from the matching stock model, but it must not reuse the stock implementation path.
For the external-server path, create or edit a temporary TTI spec whose embedded cli_args are already correct:
cli_args.workflow = release, benchmarks, evals, tests, spec_tests, or reports
cli_args.docker_server = false
cli_args.local_server = false
cli_args.service_port = the running autoport server port, usually 8000
cli_args.model_spec_json = path to this temporary spec
Do not rely on command-line flags alone to override a custom --model-spec-json. Some TTI checkouts load the JSON's embedded cli_args and do not apply the current CLI args to the loaded spec. Before running a workflow, inspect the run spec that TTI writes under workflow_logs/run_specs/ and confirm docker_server=false, the expected service_port, and impl.code_path=models/autoports/<model>.
If exact matching is unclear, inspect model_spec.json only to find the benchmark/eval recipe and to see how the local checkout names fields:
python3 - <<'PY'
import json
specs=json.load(open("model_spec.json"))
hf="HF_MODEL_HERE"
for item in specs:
if item.get("hf_model_repo")==hf or item.get("model_name")==hf.split("/")[-1]:
print(item.get("model_name"), item.get("hf_model_repo"), item.get("device"))
PY
Do not stop at a matching TTI model name. Before launching, print the selected spec path and check that it contains models/autoports/<model>. After the run, inspect the copied run spec and release report data and confirm the same autoport path is present.
Known TTI issue: older tt-inference-server checkouts accept a custom --runtime-model-spec-json or --model-spec-json, then still validate the model/device or benchmark setup against the built-in MODEL_SPECS / BENCHMARK_CONFIGS. Symptoms include a valid autoport spec failing with model:=... does not support device:=... or not found in BENCHMARKS_CONFIGS. This is fixed in tt-inference-server by tenstorrent/tt-inference-server#4345, merged 2026-06-26 as 6e396b4. Before debugging this failure, confirm the checkout includes that merge or a later commit. If it does not, update the checkout to include the merged fix. Do not work around this bug by switching to a stock TTI model spec or stock implementation.
Do not start with the full release workflow. First prove the topology with a small smoke that cannot run for hours.
cd "$TT_METAL_HOME"
source python_env/bin/activate
MODEL_DIR=models/autoports/<model>
MAX_MODEL_LEN=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["max_model_len"])' "$MODEL_DIR/doc/context_contract.json")
export PYTHONPATH="$TT_METAL_HOME:$VLLM_CHECKOUT:${PYTHONPATH:-}"
export TT_LLAMA_TEXT_VER=<autoport selector if required>
python -m readiness_check.run_vllm_server \
--stages serve \
--model-dir "$MODEL_DIR" \
--hf-model "$HF_MODEL_OR_LOCAL_WEIGHTS" \
--mesh-device T3K \
--max-num-seqs 32 \
--max-model-len "$MAX_MODEL_LEN" \
--tt-config '{"sample_on_device_mode": "all"}' \
--additional-server-args "--served-model-name $HF_MODEL"
Match the optimized-vLLM stage's actual command where it differs. The important points are: the server imports the generated autoport, preserves the context contract, and serves the HF model name that TTI will request.
curl -fsS "http://127.0.0.1:$SERVICE_PORT/health"
curl -fsS "http://127.0.0.1:$SERVICE_PORT/v1/chat/completions" \
-H 'Content-Type: application/json' \
-d "{\"model\":\"$HF_MODEL\",\"messages\":[{\"role\":\"user\",\"content\":\"Reply in one short sentence.\"}],\"max_tokens\":8,\"temperature\":0}"
disable_trace_capture=true, and very loose performance targets. This proves that TTI can load the autoport spec, see the external server, send a request, write benchmark output, and run reports.cd "$TTI_WORK_ROOT/tt-inference-server"
export CACHE_ROOT="$SMOKE_EVIDENCE_DIR/tti_cache"
export SERVICE_PORT=8000
python3 run.py \
--model "$TTI_MODEL" \
--model-spec-json "$AUTOPORT_SMOKE_SPEC" \
--device "$TTI_DEVICE" \
--workflow benchmarks \
--no-auth \
--skip-system-sw-validation \
--disable-trace-capture
The smoke passes only if run.py exits 0, the TTI-written run spec has docker_server=false and impl.code_path=models/autoports/<model>, and the benchmark JSON records completed=1 with failed=0.
If the smoke fails before a request is sent because the TTI benchmark client entry point is missing, fix the TTI client environment. For example, create/install the checkout's BENCHMARKS_VLLM venv or point the expected vllm client command at the already-installed vLLM CLI. Record this as a TTI setup fix. Do not respond by switching to --docker-server or a stock implementation.
Choose references before launching release evals. For each task, use a suitable
reference score already provided by the selected tt-inference-server checkout.
If it has none for this model/task, use a published score from the matching Hugging
Face model card or the original model paper. A TTI acceptance threshold is not a
measured reference score; record the two separately. Never invent either value.
Check the exact model/checkpoint and base versus instruct variant, task/dataset version and split, metric and units, sample count/subset, few-shot setup, prompt/chat template, and generation/scoring settings. Record unknown settings as unknown. A matching task name alone does not establish comparability. Published full-set scores are context for a CI subset, not a matched control or proof of parity.
Record each source URL plus revision/table/row (or TTI commit and file/key), quoted
score and units, measured autoport score, evaluation settings, and known differences
or unknowns in RUN_NOTES.md. Add the source and comparability caveat beside the
corresponding result in the copied release report and final handoff, not only in
the work log. Preserve the original TTI output and its verdict when annotating it.
Label published scores as published references, not locally reproduced baselines.
Only claim parity when the evidence is comparable and meets an established
model/task acceptance rule. Do not introduce a universal tolerance or turn a
published reference score into an acceptance threshold. Without an established
rule, report the comparison without a pass/parity claim.
Do not launch a CPU or other reference evaluation merely because a score is missing.
Use available published evidence with the caveats above; if no suitable reference
or acceptance rule exists, report that limitation without claiming parity.
An incomparable published score can provide context but cannot satisfy a quality
gate. Missing comparison evidence is not itself an autoport bug to repair with
$autofix, nor a reason to repeat completed evals. A new reference run requires an
explicit request with an agreed runtime budget and compute allocation. This policy
concerns release benchmark scores, not earlier stages' required HF tensor/PCC checks.
Run the release workflow only after the smoke passes. Keep the generated autoport vLLM server running and run TTI as a client. Never print tokens.
Before launching it, estimate the unrestricted model-specific eval runtime from
the measured optimized-vLLM serving throughput, the selected eval tasks, their
sample counts, and their generation limits. Record the estimate in
RUN_NOTES.md.
If the unrestricted eval suite would take a prohibitively long time for the experiment or available reservation window, it is acceptable to use TTI's CI configuration for this standalone release:
python3 run.py \
--model "$TTI_MODEL" \
--model-spec-json "$AUTOPORT_MODEL_SPEC" \
--device "$TTI_DEVICE" \
--workflow release \
--no-auth \
--skip-system-sw-validation \
--limit-samples-mode ci-nightly
Use the checkout's exact supported spelling from run.py --help. Verify in the
written run spec and the actual eval commands that ci-nightly propagated; it
normally becomes --limit 0.05 for applicable eval tasks. Do not silently fall
back to unrestricted evals.
This exception reduces eval sampling only. It does not permit lowering the
model context, aligning or shortening valid requests, changing benchmark
prompt/completion lengths, skipping spec/API/benchmark workflows, or hiding a
model failure. Record the projected unrestricted runtime, why it was
prohibitive, the selected limit mode, and the effective per-task sample limits
in RUN_NOTES.md. Label every resulting accuracy number as a CI-subset result;
never present it as full-set accuracy or compare it directly with a full-set
release threshold without that qualification.
A justified, successfully completed ci-nightly release establishes CI-subset
readiness rather than unrestricted full-set release readiness.
When the unrestricted suite is practical, use the normal release command:
cd "$WORK_ROOT/tt-inference-server"
export HF_TOKEN="$(cat ~/.cache/huggingface/token)"
export MODEL_SOURCE=huggingface
export HOST_HF_HOME="<existing persistent Hugging Face cache>"
export HF_HOME="$HOST_HF_HOME"
export PERSISTENT_VOLUME_ROOT="$WORK_ROOT/persistent_volume"
export SERVICE_PORT=8000
python3 run.py \
--model "$TTI_MODEL" \
--model-spec-json "$AUTOPORT_MODEL_SPEC" \
--device "$TTI_DEVICE" \
--workflow release \
--no-auth \
--skip-system-sw-validation
Notes:
--docker-server on the external-server path.JWT_SECRET=dummy may still be needed on older tags even with --no-auth; set it only if the checkout requires it.--skip-system-sw-validation is acceptable because tt-smi health is validated from the reservation container.--tt-device instead of --device, use the checkout's help output.--model-spec-json, use the checkout's supported mechanism to point the workflow at the autoport spec. If no such mechanism exists, the stage is blocked on release integration; do not fall back to a built-in stock implementation.models/tt_transformers cannot validate this stage.Run long commands in tmux or another durable session. Tee stdout/stderr to a timestamped log under WORK_ROOT.
If the workflow fails during server/device initialization with ARC, ERISC, remote Ethernet, or tt-smi reset symptoms:
tmux kill-session -t tti-release-<run-name> 2>/dev/null || true
tmux kill-session -t autoport-vllm-<run-name> 2>/dev/null || true
ssh "$PHYSICAL_HOST" "docker rm -f '$RUN_CONTAINER_ID'" # only the recorded container created for this run
$tt-device-usage reset recovery from the reservation container. At minimum run the bounded list/reset/list sequence, retry reset once if devices or Ethernet links do not all return, and verify a mesh open/close before relaunching:timeout 60 tt-smi -ls --local
timeout 180 tt-smi -r
timeout 60 tt-smi -ls --local
If recovery fails or requires authority this agent does not have, report that host-level reboot/reacquire is needed rather than marking model readiness blocked.
Before changing release specs, eval configs, benchmark configs, or server launch flags, compare them to the context contract. Do not make a failing model pass by lowering context. Examples of invalid fixes:
max_model_len below the context contract;Valid harness fixes are narrower: wrong autoport path, wrong tokenizer/chat template, host-sampling-only tests that need an explicit host-sampling compatibility mode, or requests whose prompt plus completion exceeds the true supported context. If the model cannot meet the context contract for any reason other than a hard physical device limit, fix the model path or report a readiness gap; do not weaken release coverage.
Use $qualitative-check for prompt-based release checks. Release smokes, qualitative/API requests, eval harness configuration, and report interpretation must record the prompt-format decision and must not use raw-completion output from an instruct model, or invented chat prompts for a base model, as release-readiness evidence.
If the release workflow exits nonzero because spec_tests, tests, API parameter conformance, eval harness execution, or benchmark harness execution failed, use $autofix before declaring the TTI release stage blocked. Give $autofix the exact failed command, model, device, physical host, workflow log path, server log path, report/test output path, and the smallest local repro command that preserves the failure.
Use $autofix for report-marked API/spec/test failures even when run.py exits 0, because the release wrapper may still generate a report with failed conformance rows. After a fix, rerun the failed workflow or the full release workflow as needed, then regenerate and copy back the final report.
Treat report generation as aggregation, not evidence collection. release runs expensive data-collection workflows such as evals, benchmarks, spec_tests, and tests, then runs the cheaper reports workflow over their outputs. If evals, benchmarks, spec tests, and tests already produced valid raw outputs, and the remaining failure is report generation, report copy-back, waiver text, stale report-input state, or the stage check not finding report_*.md, preserve the existing workflow_logs and rerun only run.py --workflow reports or the exact failing workflows/run_reports.py command after fixing the report/report-input state. Rerun expensive workflows only when their raw outputs are missing, stale for the current autoport/spec/commit, invalid, or affected by a model/spec/server change that can change the results. Record the reason for any expensive rerun.
Do not use $autofix for pure infrastructure failures such as missing Docker, Hugging Face auth, SSH problems, or ARC/reset hangs; recover those with the topology and reset policy above. For accuracy or performance target failures, first decide whether the evidence points to an implementation/test bug or a real readiness gap. Use $autofix for the former. Record the latter in RUN_NOTES.md and the final response.
Reconcile the verdict with raw workflow/server logs and expected result rows before
accepting report labels or a zero wrapper exit code. Engine death, an aborted harness,
uncompleted required requests, or missing mandatory results are execution/evidence
failures, not low accuracy. An EXPERIMENTAL label or a quality waiver cannot make
those failures pass. Apply row-specific quality waivers only to valid completed
measurements; evidence that a harness target itself is invalid must identify that
exact target and must not hide unrelated operational failures. Report incomplete
required execution as release-workflow-fail, even if report generation succeeded.
Reuse valid raw artifacts for this reconciliation; rerun only missing, invalid, or
affected data collection under the aggregation policy above.
Parse the final release report and report data. Classify every failed accuracy, benchmark target, API conformance, and missing/incomparable metric row as one of:
fixed: the issue was fixed and the release report was regenerated;issue-waived: a current linked issue or release note shows the same row fails for the correct canonical implementation, or proves the eval/benchmark target is invalid for reasons unrelated to this autoport;readiness-fail: this autoport is below the expected release bar.Disclosure is not a waiver. A row is not issue-waived merely because it is called out in RUN_NOTES.md. Include the issue URL, affected rows, canonical/control behavior, and why the waiver applies.
For text LLMs, treat meta_ifeval and meta_gpqa_cot as mandatory quality gates unless a current linked issue proves the correct canonical implementation fails the same eval in the same way. These failures usually indicate a real model or serving bug, such as stale token/position feedback, async decode reset corruption, sampling/seed handling, chat-template mismatch, or prefill/decode mode-switch corruption. Use $autofix and rerun the affected evals before accepting the stage.
LongBench and other long-context rows may have legitimate release-harness issues, but they still need row-specific evidence. For example, a current issue may waive longbench_code_e or longbench_fewshot_e for one model because the canonical release path is using the wrong chat-template setting. Do not generalize that waiver to unrelated eval rows or models.
The final status must say one of:
release-readiness-pass: the unrestricted release suite ran and all required rows passed or have row-specific issue waivers;release-readiness-ci-subset-pass: a justified ci-nightly release ran, all required sampled rows passed or have row-specific issue waivers, and unrestricted full-set accuracy is explicitly not claimed;release-workflow-pass/readiness-fail: the release workflow ran, but one or more required rows failed without a valid waiver;release-workflow-fail: the release workflow itself did not complete.The release workflow writes the final customer markdown under:
workflow_logs/reports_output/release/report_<report_id>.md
Copy back small handoff artifacts to:
models/autoports/<model>/doc/tti_release/
Include:
RUN_NOTES.md with commands, versions, server mode, host/session, reset actions, report path, and pass/fail summary.Also include the run spec or report data that proves the implementation path. RUN_NOTES.md must have an "Autoport implementation check" line showing the target models/autoports/<model> path and whether the copied TTI artifacts matched it.
Do not copy:
.env;*.tensorbin, *.pt, *.refpt);tracy_ops_times.csv, profile_log_device.csv, ops_perf_results.csv, and *_decode_ops.csv;After copy-back, remove any .env left in the TTI checkout and stop the finished tmux session. Do not release the reservation unless the user or monitor asks.
Before declaring release readiness, run scripts/check-evidence.sh
from the target tt-metal checkout with MODEL_DIR and HF_MODEL set. Exit 0 establishes
artifact presence, implementation identity and context consistency; it does not
establish accuracy or release readiness. Inspect every report row as described above.
Use $stage-review for the release handoff. Supply the selected release scope,
this skill, raw workflow evidence and the copied report. Fix findings and repeat
the affected checks before accepting clean-pass. If working within the bringup
checkpoint convention, commit only stage-owned changes locally and record their
SHAs. Follow the user's instructions for publication and reservation cleanup.
Done means:
run.py --workflow release exited 0, or a terminal blocker is documented with exact evidence.models/autoports/<model> directory.models/tt_transformers, models/demos, or another packaged implementation for the same HF model.doc/context_contract.json.$qualitative-check evidence shows prompt-based release checks used the HF-declared prompt format, and RUN_NOTES.md records the tokenizer/chat-template decision plus the TTI/eval setting or rendered prompt evidence.$autofix and rerun, or explicitly classified as non-test readiness gaps with evidence.fixed, issue-waived, or readiness-fail. A readiness-fail means the stage is not clean-pass.meta_ifeval and meta_gpqa_cot pass for text LLMs, or each failure has a current linked issue proving the correct canonical implementation fails the same eval in the same way.models/autoports/<model>/doc/tti_release/.RUN_NOTES.md records the exact server mode, host/session, repo tag, Docker image/version if Docker was used, command, env variables that mattered, reset/retry actions, copied artifacts, release-readiness status, failed rows, and waiver issue links where applicable.ci-nightly was used, RUN_NOTES.md records the projected unrestricted eval runtime, why it was prohibitive, the effective limit mode/sample fraction, and that all reported accuracy is CI-subset rather than full-set accuracy.ci-nightly run uses release-readiness-ci-subset-pass, never release-readiness-pass, when its required sampled rows pass.tt-inference-server Docker container from this run.What SKILL.md sets; muted values are Claude Code's defaults
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.Other plugins' skills for the same job