pub fn run_probe_qwen4exp_trace(
package: &Path,
prompt: Option<&str>,
token_ids: &[u32],
chat: bool,
context: usize,
topk: usize,
rank_tokens: &[u32],
dump: Option<&Path>,
) -> Result<(), String>Expand description
Lab instrument: trace one real token step end-to-end. Every earlier prompt token runs through the full graph first so the traced step sees the same recurrent/cache state generation would; the traced step then reports a per-layer fingerprint/RMS/abs-max table plus the top-k vocabulary logits — this localizes which stage corrupts the forward signal instead of asserting aggregate correctness.