Archived
libxe2: gemm_nt and logits_gemm, correctness first
One work-item an output, f32 over ascending k from zero with no fused multiply-add: libref's gemm_plain order, so MiniCPM5-2B's projections and its 130560-row head agree with the reference exactly. Slow on purpose; the XMX kernels of Phase 4 are checked against this and libref. The rows take float weights only (a dtype constraint); a quantised weight is gemm_nt_q's. rad-kbench against libref: fixture 276/276, MiniCPM5-2B 164/164 (rel_l2 0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
1 parent
dc89eb45fb
commit
649178eb59
3 files changed
+97
No files matched your search
@@ -16,4 +16,7 @@ int embed_lookup(const RadArgs* a, RadStream s);
|
||||
int gather_rows(const RadArgs* a, RadStream s);
|
||||
int cast(const RadArgs* a, RadStream s);
|
||||
|
||||
int gemm_nt(const RadArgs* a, RadStream s);
|
||||
int logits_gemm(const RadArgs* a, RadStream s);
|
||||
|
||||
} // namespace xe2
|
||||
Reference in new issue
Block a user