↓ 8 callersFunctiondeinterleave_outputDe-interleave ANE Q/K output back to standard format. Input: [B, n_heads, seq, head_dim] in interleaved format Output: [B, n_heads, seq, head_
scripts/test_qk_isolation.py:54
↓ 7 callersMethod_quantize_weight_q8Quantize [oc, ic] weight to (int8_bytes, fp16_scale_bytes, oc, ic). Symmetric per-output-channel int8: scale = max(|w|, axis=1) / 127.
mirror_sd/ane_model.py:265
↓ 2 callersFunctionpython_perhead_normApply per-head RMSNorm. q_4d: [B, n_heads, seq, head_dim] norm_weight: [head_dim] Returns: [B, n_heads, seq, head_dim]
scripts/test_qk_isolation.py:74