Archived
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
23 lines
681 B
C++
23 lines
681 B
C++
/* xe2_ops.h -- every libxe2 launch, by op. The rows that select them are in xe2_rows.cpp. */
|
|
#pragma once
|
|
#include "rad_abi.h"
|
|
|
|
namespace xe2 {
|
|
|
|
int add(const RadArgs* a, RadStream s);
|
|
|
|
int rmsnorm(const RadArgs* a, RadStream s);
|
|
int rmsnorm_quant_fp8(const RadArgs* a, RadStream s);
|
|
int quant_act_fp8(const RadArgs* a, RadStream s);
|
|
int gated_quant_fp8(const RadArgs* a, RadStream s);
|
|
|
|
int rope(const RadArgs* a, RadStream s);
|
|
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
|