Archived
Every op MiniCPM5-2B bf16's DSpark drafter issues now has a libxe2 row, each libref's arithmetic in libref's order: gemm_nt_q over fp8a8 block-scaled codes (quant_dot per output, the scale grids worked out on the host as make_scales does), gemm_nt_q_gated with the gated fp8 epilogue, the w2a8 vocabulary head (gemm_zp; b_scale in libref's joined planes form through a copy of libref's layout hook, so both libraries ask for the same stored bytes, its planes found on the device), quant_act_i8, silu_mul, row_topk and dflash_select. rad-kbench: MiniCPM5-2B 191/191 at rel_l2 0. The fixture found the gated GEMM refusing a 27B geometry its row accepted (it held the whole N-wide row in local memory); it now keeps the n gated values and declares N <= 57344. The engine oracle with speculation on: 1500/1500 issues bit-identical, the w2a8 head included. Greedy with speculation on matches libref's greedy without it on all eight prompts. Install and oot: a SYCL build installs librad_sycl.so and libxe2.so, its executables find the backend through $ORIGIN/../lib, and tests/oot_plugins.sh rebuilds libxe2 out of tree with icpx when RAD_OOT_ICPX is set; it passes in build-sycl. scripts/sycl/bench_report.sh: the report's screenshot is a JPEG, rendered with fonts (this host has none, and the first post had no text). docs/SYCL_PROGRESS.md: the first quick benchmark (4.2 tok/s decode, 17.3 tok/s prefill at 2000 tokens), Milestone B part 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
57 lines
2.3 KiB
C++
57 lines
2.3 KiB
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);
|
|
|
|
int kv_store(const RadArgs* a, RadStream s);
|
|
int attn_paged(const RadArgs* a, RadStream s);
|
|
|
|
int sample_penalties(const RadArgs* a, RadStream s);
|
|
int sample_dry(const RadArgs* a, RadStream s);
|
|
int sample_ngram_ban(const RadArgs* a, RadStream s);
|
|
int sample_temp(const RadArgs* a, RadStream s);
|
|
int sample_mask(const RadArgs* a, RadStream s);
|
|
int sample_topk(const RadArgs* a, RadStream s);
|
|
int sample_topp(const RadArgs* a, RadStream s);
|
|
int sample_minp(const RadArgs* a, RadStream s);
|
|
int sample_typical(const RadArgs* a, RadStream s);
|
|
int sample_xtc(const RadArgs* a, RadStream s);
|
|
int sample_pick(const RadArgs* a, RadStream s);
|
|
int sample_argmax(const RadArgs* a, RadStream s);
|
|
int sample_logprobs(const RadArgs* a, RadStream s);
|
|
|
|
int gemm_nt_q(const RadArgs* a, RadStream s);
|
|
int gemm_nt_q_gated(const RadArgs* a, RadStream s);
|
|
int silu_mul(const RadArgs* a, RadStream s);
|
|
int quant_act_i8(const RadArgs* a, RadStream s);
|
|
|
|
int row_topk(const RadArgs* a, RadStream s);
|
|
int dflash_select(const RadArgs* a, RadStream s);
|
|
|
|
int gemm_nt_q_zp(const RadArgs* a, RadStream s);
|
|
int gemm_zp_layout(const RadParam* p, int n_p, int operand, const RadEncoding* enc, const int* sel,
|
|
const RadTensor* planes, int n, RadLayout* out);
|
|
int gemm_zp_relayout(const RadParam* p, int n_p, int operand, const RadEncoding* enc,
|
|
const int* sel, const RadTensor* planes, int n, void* dst, int64_t dst_bytes);
|
|
int gemm_zp_unrelayout(const RadParam* p, int n_p, int operand, const RadEncoding* enc,
|
|
const int* sel, const void* src, int64_t src_bytes, const RadTensor* planes,
|
|
int n);
|
|
|
|
} // namespace xe2
|