/tt-model-bringup:stage-reviewfrom Tenstorrent Model Bring-up
Independently reviews a TTNN model bringup stage against its goal contract, evidence, and artifacts to catch bugs or weak dismissals missed by automated checks. Returns a clean-pass or more-work-needed verdict.
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.
Prevent unsupported stage closure. A stage review is an independent, inspection-first review of one bringup stage against the stage's actual goal contract and evidence. Hard checks are a floor, not proof of correctness.
The reviewer is looking for anything that should be investigated or fixed in the spirit of bringing up a correct, fast, production-worthy model, even when the scripted checks pass.
Tell the reviewer exactly what it is reviewing. Include:
The subagent runs in the same workspace and can explore the worktree, but it does not know the stage context unless you provide it. Do not ask it to infer which stage or goal contract applies from a broad experiment folder.
Main-agent mode: when you are the stage owner or orchestrator, spawn a fresh xhigh subagent for the review. Do not fork the current context unless the only way to pass essential stage context is through the thread. Prefer passing raw paths and a compact stage contract over passing your conclusions.
Reviewer mode: when your prompt says you are the independent reviewer, or you
were spawned with this skill plus a concrete stage contract and artifact paths,
perform the review directly. Do not spawn another reviewer. In this mode your
verdict can be clean-pass or more-work-needed.
In main-agent mode, if no subagent tool is available, do a serial review only as
a temporary fallback and mark the result not-independent. This means the
review did not satisfy the fresh-subagent requirement. It is not a reviewer
verdict and never counts as a pass for autonomous bringup.
The reviewer is read-only unless explicitly asked to write a report file. It may run local read-only commands and small analysis scripts over artifacts. It must not start servers, run vLLM, reserve or use IRD hardware, open TT devices, reset devices, launch long tests, or mutate implementation files. If the review finds a problem that requires hardware or a server rerun to confirm, report the required follow-up as a finding; do not perform it inside the review.
Tell the reviewer:
minor, known, remaining, generally, mostly,
except, but, waived, xfailed, or out of scope as review triggers.Return more-work-needed when evidence shows one of these:
TT_METAL_TRACE_ALLOC_TRACKING=1, accepts a run
that excludes program-cache allocations, or exempts an entire capture/forward/
warmup instead of identifying the intended corruptible allocations;$tt-enable-tracing;$tt-enable-tracing;$vllm-integration, including supported chunked-prefill paths with changed
start positions and batch orderings while other requests decode;supports_prefix_caching is not supported in the serving contract without
a documented exclusion (block_output or recurrent_state), or it is
declared True without readiness/prefill_resume_check.json,
readiness_vllm/prefix_cache_check.json, and sampling and qualitative
verdicts from the caching-enabled server; or a resume negative control did
not fail; or a greedy divergence after a
cache hit is recorded as drift without the logit-level comparison that
separates drift from a cache or position bug;prefill_burst comparison against the serial path; in optimized-vLLM the
burst TTFT ratio misses its gate or single-user latency regressed with
batched prefill on;meta_ifeval or meta_gpqa_cot without a
current linked issue proving the correct canonical implementation fails the
same eval in the same way;max_model_len, image resolution, timestep
schedule, cache/state size, or another model-specific contract item, without
evidence that a hard physical device limit prevents the advertised capability
from fitting or running and proving the largest feasible value;$qualitative-check, for example an
instruct/chat model is judged only from raw completion prompts, a base model
is judged through invented chat prompts, or prompt-format evidence is missing.$qualitative-check shared suite, or did not record why the suite was
impossible.Do not return more-work-needed only because a stronger evidence format would
be nice. If the goal and skill accept tests, code inspection, runner
configuration, logs, and summary JSON as evidence, do not invent a new required
runtime-counter or profiler artifact unless the existing artifacts are only
prose, fail to tie the claim to the measured path, or contradict the claim. Put
such requests under Hard-Check Gaps unless they hide a concrete correctness or
performance risk.
Treat warnings that mention corruption, stale inputs, invalid cache use, trace lifecycle hazards, wrong language/output behavior, host fallbacks, or device health as required work when they touch the stage's core contract and are not classified in the stage evidence.
A review verdict of more-work-needed means exactly that: the stage is not
ready to pass yet. It is a remediation trigger, not permission for the stage
owner to set the Codex goal to terminal blocked. The stage owner must treat
each finding as work: fix it directly when the cause is obvious, or use
$autofix when the fix is not obvious or the first direct fix does not close
the gate. Only a later, explicit $autofix failure, an unrecoverable external
dependency, or a required serving-plugin change that needs human authorization
under plugin changes, with its
proposal recorded, can justify terminal goal blocked.
Inspect the artifacts relevant to the stage, not the whole experiment by default. For any stage, review:
For changed chunking, padding, sharding, dispatch, or memory ownership, compare the actual branch/allocation rules with the selected cases. Require coverage of affected paths, nearby valid boundary lengths, and awkward tails, including sibling consumers of a shared rule. Earlier evidence does not cover a later implementation change. Request only the missing or invalidated checks; do not demand a full sweep, a new profiler run, or a long soak when existing evidence establishes the required behavior.
For generation or serving stages, also inspect:
doc/context_contract.json, served max_model_len,
eval/benchmark context settings, and any cap or truncation introduced by the
stage.$qualitative-check evidence: prompt-format metadata, rendered prompts or
token ids, HF/full-model controls, and the shared qualitative suite as soon as
the stage can generate text. Missing suite output is required work unless the
stage records a concrete capability blocker.doc/full_model/serving_contract.json names
the pinned plugin and vLLM pair and has no missing rows.readiness_vllm/vllm_run_summary.json shows the server enabled prefix
caching, prefix_cache_check.json passed with hit counters and TTFT, the
resume check's controls failed, and vllm_prefill_burst_benchmark.json
carries a serial_reference. Check that the evidence covers every layer kind
(sliding-window layers need the history snapshot) and that warmup covered the
prefill buckets the burst used.doc/vllm_integration/plugin_changes.md entry under
plugin changes. A change
that adds shared plugin interface without recorded human authorization, or
whose justification is a smaller diff or avoided rework, needs more work.
When the only remedy for a finding is a plugin change that needs human
authorization, set its Required next step to human authorization and name
the proposed record; do not ask the stage owner to implement the change.
Treat a served-default change that only an operator can accept (for example a
generation-config override that keeps the default recipe on the device
sampler) the same way: Required next step: operator decision, with the
work-log record named. When every remaining finding is of these two kinds,
say so in the verdict so the stage can end blocked instead of looping.
On a re-review, judge the evidence, not the prose written to answer the
previous pass: a wording defect in a document that changed only to address
earlier findings, with the underlying evidence unchanged, is a note in the
verdict, not a reason to return more-work-needed again.model_capabilities: every key in tt/generator_vllm.py is
documented by the pinned plugin, and each declared value has evidence.For release stages, also inspect:
RUN_NOTES.md;meta_ifeval and meta_gpqa_cot.
Treat these as required work unless a current linked issue proves the correct
canonical implementation fails the same eval in the same way.Check release verdicts against raw execution evidence and expected result rows.
Engine death, aborted execution, uncompleted required requests, and missing mandatory
results require more work even if a wrapper exits zero or a report says PASS or
EXPERIMENTAL. A quality waiver cannot waive an execution failure. Reuse valid raw
outputs for this check; request new runs only for missing, invalid, or affected evidence.
For optimization stages, also inspect:
$autofix. Accept rejection only when the adapted path is measured slower,
fails correctness for an understood reason, or a minimal repro proves the op
cannot express the required contract;tt-perf-report or equivalent profiler rows show BF16/BFP8 where the
selected policy claims BFP4, or HiFi where the selected policy claims LoFi,
return more-work-needed unless the report records an exact op-contract
blocker and uses the real measured dtype policy as the final result;more-work-needed unless there is
model-visible correctness failure, real-weight trace/runtime failure,
unacceptable latency, or an exact op-contract blocker;in0_block_w, per_core_N, or
output-subblock result from BFP8/HiFi does not validate BFP4/LoFi geometry,
and a BFP4/LoFi result on one geometry does not reject the other material
geometries. Small in0_block_w values are not enough just because they used
to look reasonable: if a material row keeps a small value such as 2, 4,
or 8, check whether larger legal divisors of the tiled K dimension and the
input shard's K-tile width were measured under the selected dtype/fidelity
policy. Legal values do not need to be powers of two; values such as 3,
5, 7, 10, 14, or 16 may be valid depending on the shape and shard.
Otherwise require an exact L1, divisibility, padding, or op-contract blocker.
If the final report leaves a dominant row SLOW, has low DRAM
utilization, reports missing output subblocks, or cites a larger-core blocker
without a precision-locked smaller-core or residual-grid candidate, return
more-work-needed;For datatype-sweep stages, also inspect:
$autofix
evidence;Any anomaly the stage agent noticed or that the reviewer sees must be classified before pass:
Observed anomaly:
Evidence:
Affected path:
Control or comparison:
Likely subsystem:
Investigation performed:
Resolution: fixed / controlled / more-work-needed
Prose acknowledgement is not resolution. If the anomaly is visible in model
behavior and there is no control showing it is expected, return
more-work-needed.
Use a prompt like this, filling in concrete paths:
Use $stage-review as an independent reviewer for one TTNN model bringup stage.
You are the fresh review subagent. Do not spawn another reviewer. Do not modify
implementation files. You may run read-only local commands and small
artifact-analysis scripts over existing artifacts. Do not start servers, open TT
devices, reserve hardware, or run hardware/vLLM experiments.
Stage under review: <stage number/name>
Target model: <hf model id>
Autoport/evidence root: <absolute path>
Original stage goal contract:
<paste concise goal contract>
Stage skill(s) to compare against:
- <absolute path to SKILL.md>
- ...
Key artifacts to inspect first:
- <README/work_log paths>
- <check/benchmark/output paths>
- <implementation paths if relevant>
Review task:
1. Read the stage skill(s) and the stage evidence.
2. Compare the delivered artifacts against the goal contract.
3. Inspect generated outputs directly if present.
4. Look for bugs, oddities, contradictions, stale artifacts, weak dismissals, or
suspicious behavior that hard checks might have missed.
5. Return the required verdict format. Do not summarize only; lead with
findings.
Require this output:
# Stage Review
Verdict: clean-pass | more-work-needed
## Required Work
- P1/P2: <title>
Evidence:
Why this matters:
Required next step:
## Other Concerns
- ...
## Hard-Check Gaps
- ...
## Anomaly Ledger
- Observed anomaly:
Evidence:
Affected path:
Control or comparison:
Likely subsystem:
Investigation performed:
Resolution:
## Scope Inspected
- Goal/skill paths:
- Artifact paths:
- Code paths:
- Commands run:
## Residual Risk
- ...
Only clean-pass with no required work satisfies this skill.
Required Work is reserved for correctness, contract, or missing-evidence gaps. A performance candidate that was not measured is Other Concerns unless the goal names it. Record push state from the run plan (the supervisor pushes stage commits; the stage agent never does) instead of inferring it from the reflog.
Closure after the allowed rereviews: a P2 raised after the second rereview
carries to the next optimize stage with a work-log entry naming it, and the
recorded verdict stays more-work-needed; a P2 that the stage then fixes with
device evidence is recorded as fixed under that unchanged verdict, with the
evidence path. The next stage's review checks that carried items were closed.
If the main agent could not obtain an independent review, report
not-independent as a fallback status outside the reviewer verdict. Do not use
it to complete the stage.
After the reviewer returns:
more-work-needed, do not mark the stage complete. Set the
goal to terminal blocked only when every remaining Required Work item has
Required next step: human authorization and its proposed record exists;
name the record paths as the concrete blocker. Otherwise treat the findings
as the next stage work item. Use the relevant debugging skill or $autofix
to resolve it, then rerun $stage-review.clean-pass, record the review artifact or subagent final
answer path in the stage work log.clean-pass, create local checkpoint commits for stage-owned changes
in each touched repo: tt-metal, and the serving plugin or vLLM checkout
only for changes with a complete
plugin changes record.
Never push these commits from autonomous bringup.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./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