/better-benchmark:better-benchmark-model-extractionfrom Better Benchmark Model Extraction
Extracts inference fusion regions from Hugging Face or PyTorch models into better-benchmark, preserving kernel shapes and limiting capture memory. Generates and validates graphs, input sidecars, repros, and model attribution.
Ships in Better Benchmark Model Extraction. 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.
Use existing better-benchmark APIs to generate and validate inference corpus artifacts. This workflow follows source compile, tlparse export, runnable replay/capture, staging validation, and final integration. Existing exports start at replay. Training capture needs a separate loss/backward workflow.
Locate better-benchmark, the relevant model source/config, and the configured
Python environment. Read applicable checkout instructions, including
AGENT_INSTRUCTIONS.md, CLAUDE.md, and the Extraction and Model accounting
sections of README.md when present. Check git state, installed import paths,
existing captures, and GPU capacity; preserve unrelated work.
Use the user's configured interpreter explicitly for every Python command.
Import installed better-benchmark modules directly; inspect their __file__
locations when locating checkout-only CLI scripts or missing internal helpers.
Do not assume that installation exposes every checkout module or CLI.
Execution requires compatible PyTorch/CUDA and an available GPU with sufficient memory. Export requires tlparse. HF construction requires transformers and config access; use huggingface_hub when resolving remote revisions. Inspect the installed environment before changing it. Do not reinstall packages by default or build PyTorch without an explicit request.
Resolve choices from the request, model source, and corpus conventions. Ask only for missing information that materially changes the workload; record routine assumptions. Retain a workload contract outside the repository:
Use config-based random weights and legal synthetic inputs when sufficient; avoid pretrained weight/tokenizer downloads by default. Follow the repository's BF16 inference policy where supported, preserving integer/bool inputs and explicit internal higher-precision operations. For an existing export, record available provenance and identify missing evidence rather than inventing it.
Resolve material choices such as model variant, input dimensions, and expert backend before launching source capture, including smoke runs. Use explicit config defaults and established corpus conventions for routine choices and record them. Inspection, config comparison, and meta-device memory estimates can proceed while answers are pending. Earlier diagnostic traces are not evidence for the agreed workload and must not enter its corpus addition.
Check the published config against constructor defaults: attention schedules,
RoPE settings, and quantization can differ even when dimensions match. Record
the resolved dispatch, since a decorated HF module may replace its visible
Python forward with a different expert implementation.
For a new source capture, follow coverage selection before allocating weights. For an existing runnable, verify its captured scope against the workload contract instead of constructing the source model. For a planning request, report the contract, proposed coverage, resource needs, and unresolved choices here, then stop.
Follow the artifact workflow for the command sequence, runnable replay, capture gates, saved-artifact execution, and final integration. Consult the API reference for entry points and return values; verify their local signatures before invocation.
Report actual captured scope and limitations, new/reused canonical patterns and shape points, provenance/report locations, and validation outcomes. Use the completion evidence table to check coverage of the report. For a blocker, retain the failing invocation, artifact, exception, and missing acceptance checks.
validate_full_graph_numerics or
run_numerics_gate for extraction alone; missing FP64 support is not a gate.
Numerical comparisons, oracle authoring, and benchmarking require separate
requested scope. Benchmarking uses the repository's shared runners and GPU
isolation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
model-extraction, inference-capture, benchmarking, torch-trace, tlparse
Other plugins' skills for the same job
npx claudepluginhub torchedhat/ai-marketplace --plugin better-benchmark