Archived
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves every shipped container - Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime - /v1/messages works with Claude Code as it ships (gearwave00001) - a long agent conversation keeps its cached history when the client rewrites its last turn (manueloverride) - a stream's first event goes out with the first token, so llama-benchy measures prefill right - opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42) - four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b) - NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA adapters (baKon) - many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool arguments and the CPU's vision and audio encoders - plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
22 lines
911 B
C
22 lines
911 B
C
/* ref_host.h -- host C++ versions of the libr4d units r4d_emu runs.
|
|
*
|
|
* Each restates a device kernel's arithmetic, RadArgs in and RAD_OK or an error out. Tests hold
|
|
* the emulated kernels to these, beside the unfused chain each test builds (the joins,
|
|
* expert_scale) or a brute force (pair_argmax). No HIP, no libr4d header. */
|
|
#pragma once
|
|
|
|
#include "rad_abi.h"
|
|
#include "rad_plugin.h"
|
|
|
|
/* bf16 as libr4d converts it: exact widening, round-to-nearest-even narrowing. rb() is a value
|
|
* stored to bf16 and read back. */
|
|
inline float b2f(uint16_t h) { return rad_bf16_to_f32(h); }
|
|
inline uint16_t f2b(float f) { return rad_f32_to_bf16(f); }
|
|
inline float rb(float f) { return b2f(f2b(f)); }
|
|
|
|
int host_pair_argmax(const RadArgs* a);
|
|
int host_norm_add_norm(const RadArgs* a);
|
|
int host_norm_add_norm_route(const RadArgs* a);
|
|
int host_join_add_scale(const RadArgs* a);
|
|
int host_expert_scale(const RadArgs* a);
|