What problem does it solve? A MAX model that loads, compiles, serves, and generates tokens can still produce wrong output — gibberish, greedy divergence, or logits that match but argmax that differs. Scalar print taps and blind recompile loops hide directional bugs and burn GPU time. This Skill provides a disciplined protocol that localizes silent corruption numerically before any fix is attempted. ## Core Features & Use Cases - Per-layer tensor comparator: Build HF and MAX dumpers that save FP32 hidden states at every layer, then compare cosine similarity, mean/max diff, and spike positions offline. - Signature-based diagnosis: Interpret comparator output patterns (position-dependent RoPE bugs, false cliffs from bad dump indexing, attention-sink failures) using the token-0 invariant and per-token/per-dim cosine slices. - Serve-vs-pipeline bisect: When teacher-forced dumps match but generated text diverges, isolate decode-state (KV/conv cache) bugs from harness bugs (tokenizer, chat template) without touching the graph. - Use Case: During a custom-architecture port, greedy output diverges at token 3. Build the comparator, find a t≥1 cliff from layer 1, check RoPE inv_freq, discover HF uses NoPE at runtime, fix the graph, and verify with a full comparator pass. ## Quick Start Ask the agent to debug why my MAX model port serves but generates text that diverges from the Hugging Face reference, starting with a per-layer tensor-dump comparison.