Exports trained PyTorch/TensorFlow models to ONNX with operator gap resolution and numeric parity verification. Essential when models must run outside their training stack.
Exporting to ONNX looks like a one-line call and behaves like a translation between two languages that do not share every word. The tracer records one path through your code, unsupported operators fall back or fail, and dynamic shapes silently freeze to whatever the example input had. A clean export that computes different numbers is worse than no export, so the work is conversion plus proof.
torch.onnx.export (or the dynamo exporter) with a fixed opset_version of
17 or later, and name every variable dimension in dynamic_axes, typically
batch and sequence. An unnamed axis bakes the trace-time size in and rejects
every other shape at inference.onnx.checker.check_model,
then onnx.shape_inference.infer_shapes to confirm shapes propagate end to
end. Simplify with onnxsim to fold constants and remove dead nodes so the
graph the runtime sees matches the model you meant to ship.aten:: leftovers, custom CUDA ops, and control flow that traced into a
fixed branch. A missing op means a plugin, a rewrite, or a decomposition,
decided now..item(), boolean indexing, or a Python
if on a shape, traces to one path. Replace it with torch.where, masking,
or torch.onnx scripting so the exported graph handles the inputs the trace
never saw.np.testing.assert_allclose with rtol 1e-3 and atol 1e-5 for FP32. Loosen
for FP16, and check task metrics too: close logits still let argmax flip a
label.CUDAExecutionProvider, since that is the
numeric path production takes.onnx.checker both pass with no aten:: ops left?This produces a portable, parity-checked ONNX graph, not a tuned engine. Compiling that graph for a specific GPU with precision and shape profiles is tensorrt-optimization; serving it belongs to triton-inference-server. When an operator has no ONNX equivalent, whether to write a plugin or change the model is an architecture call this skill only surfaces.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job