Archived
radiance 1.7.0
- 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
This commit is contained in:
1 parent
b068190326
commit
1e968f6e1d
739 files changed
+128447
-84632
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# Kernel rows a replay of this fixture reaches (rad-kbench --coverage).
|
||||
# A row listed here and not reached fails the replay; regenerate with
|
||||
# --coverage-write when a row is added or deliberately retired.
|
||||
avx_add
|
||||
avx_attn_dense
|
||||
avx_attn_paged
|
||||
avx_cast
|
||||
avx_dflash_select
|
||||
avx_embed_lookup
|
||||
avx_gated_quant_fp8
|
||||
avx_gather_rows
|
||||
avx_gdn_chunk_scan
|
||||
avx_gdn_conv_update
|
||||
avx_gdn_gated_rmsnorm
|
||||
avx_gdn_kkt_solve
|
||||
avx_gdn_recurrent_update
|
||||
avx_gemm_nt
|
||||
avx_gemm_nt_bias
|
||||
avx_gemm_nt_q
|
||||
avx_gemm_nt_q_gated
|
||||
avx_grid_embed
|
||||
avx_kv_store
|
||||
avx_layernorm
|
||||
avx_logits_gemm
|
||||
avx_quant_act_fp8
|
||||
avx_quant_act_i8
|
||||
avx_rmsnorm
|
||||
avx_rmsnorm_quant_fp8
|
||||
avx_rope
|
||||
avx_rope_table
|
||||
avx_row_topk
|
||||
avx_sample_argmax
|
||||
avx_sample_dry
|
||||
avx_sample_logprobs
|
||||
avx_sample_mask
|
||||
avx_sample_minp
|
||||
avx_sample_penalties
|
||||
avx_sample_pick
|
||||
avx_sample_temp
|
||||
avx_sample_topk
|
||||
avx_sample_topp
|
||||
avx_sample_typical
|
||||
avx_sample_xtc
|
||||
avx_scatter_rows
|
||||
avx_silu_mul
|
||||
@@ -0,0 +1,51 @@
|
||||
# Kernel rows a replay of this fixture reaches (rad-kbench --coverage).
|
||||
# A row listed here and not reached fails the replay; regenerate with
|
||||
# --coverage-write when a row is added or deliberately retired.
|
||||
add_bf16
|
||||
attn_decode_h128_gqa4_fp8kv
|
||||
attn_decode_h256_gqa6_fp8kv
|
||||
attn_prefill_h256_gqa6_fp8kv
|
||||
attn_vit_h72_bf16
|
||||
cast_bf16_bf16
|
||||
dflash_select_bf16
|
||||
embed_lookup_bf16
|
||||
gated_quant_fp8
|
||||
gather_rows_bf16
|
||||
gdn_chunk_scan_k128_v128_c64_bf16
|
||||
gdn_conv_update_w4_h128_bf16
|
||||
gdn_gated_rmsnorm_h128_bf16
|
||||
gdn_kkt_solve_k128_c64_bf16
|
||||
gdn_recurrent_update_k128_v128_bf16_fp32state
|
||||
gemm_bf16_nt_bias_tiled
|
||||
gemm_bf16_nt_m16
|
||||
gemm_bf16_nt_m64
|
||||
gemm_fp8a8_gated_nt_m16
|
||||
gemm_fp8a8_nt_m16
|
||||
gemm_fp8a8_tiled
|
||||
gemm_mxfp4a8_decode
|
||||
gemm_mxfp4a8_tiled
|
||||
grid_embed_bf16
|
||||
kv_store_fp8
|
||||
layernorm_bf16
|
||||
logits_gemm_fp8
|
||||
quant_act_fp8
|
||||
quant_act_i8
|
||||
rmsnorm_bf16
|
||||
rmsnorm_quant_fp8
|
||||
rope_bf16
|
||||
rope_table_f32
|
||||
rowtopk_bf16
|
||||
sample_argmax_f32
|
||||
sample_dry_f32
|
||||
sample_logprobs_f32
|
||||
sample_mask_f32
|
||||
sample_minp_f32
|
||||
sample_penalties_f32
|
||||
sample_pick_f32
|
||||
sample_temp_f32
|
||||
sample_topk_f32
|
||||
sample_topp_f32
|
||||
sample_typical_f32
|
||||
sample_xtc_f32
|
||||
scatter_rows_bf16
|
||||
silu_mul_bf16
|
||||
@@ -0,0 +1,45 @@
|
||||
# Kernel rows a replay of this fixture reaches (rad-kbench --coverage).
|
||||
# A row listed here and not reached fails the replay; regenerate with
|
||||
# --coverage-write when a row is added or deliberately retired.
|
||||
ref_add
|
||||
ref_attn_dense
|
||||
ref_attn_paged
|
||||
ref_cast
|
||||
ref_dflash_select
|
||||
ref_embed_lookup
|
||||
ref_gated_quant_fp8
|
||||
ref_gather_rows
|
||||
ref_gdn_chunk_scan
|
||||
ref_gdn_conv_update
|
||||
ref_gdn_gated_rmsnorm
|
||||
ref_gdn_kkt_solve
|
||||
ref_gdn_recurrent_update
|
||||
ref_gemm_nt
|
||||
ref_gemm_nt_bias
|
||||
ref_gemm_nt_q
|
||||
ref_gemm_nt_q_gated
|
||||
ref_grid_embed
|
||||
ref_kv_store
|
||||
ref_layernorm
|
||||
ref_logits_gemm
|
||||
ref_quant_act_fp8
|
||||
ref_quant_act_i8
|
||||
ref_rmsnorm
|
||||
ref_rmsnorm_quant_fp8
|
||||
ref_rope
|
||||
ref_rope_table
|
||||
ref_row_topk
|
||||
ref_sample_argmax
|
||||
ref_sample_dry
|
||||
ref_sample_logprobs
|
||||
ref_sample_mask
|
||||
ref_sample_minp
|
||||
ref_sample_penalties
|
||||
ref_sample_pick
|
||||
ref_sample_temp
|
||||
ref_sample_topk
|
||||
ref_sample_topp
|
||||
ref_sample_typical
|
||||
ref_sample_xtc
|
||||
ref_scatter_rows
|
||||
ref_silu_mul
|
||||
@@ -0,0 +1,46 @@
|
||||
# Kernel rows a replay of this fixture reaches (rad-kbench --coverage).
|
||||
# A row listed here and not reached fails the replay; regenerate with
|
||||
# --coverage-write when a row is added or deliberately retired.
|
||||
avx_add
|
||||
avx_attn_dense
|
||||
avx_attn_paged
|
||||
avx_cast
|
||||
avx_embed_lookup
|
||||
avx_gated_quant_fp8
|
||||
avx_gather_rows
|
||||
avx_gdn_chunk_scan
|
||||
avx_gdn_conv_update
|
||||
avx_gdn_gated_rmsnorm
|
||||
avx_gdn_kkt_solve
|
||||
avx_gdn_recurrent_update
|
||||
avx_gemm_nt
|
||||
avx_gemm_nt_bias
|
||||
avx_gemm_nt_q
|
||||
avx_grid_embed
|
||||
avx_kv_store
|
||||
avx_layernorm
|
||||
avx_logits_gemm
|
||||
avx_moe_gather
|
||||
avx_moe_gemm_q
|
||||
avx_moe_scatter
|
||||
avx_quant_act_fp8
|
||||
avx_quant_act_i8
|
||||
avx_rmsnorm
|
||||
avx_rmsnorm_quant_fp8
|
||||
avx_rope
|
||||
avx_rope_table
|
||||
avx_router_topk
|
||||
avx_row_topk
|
||||
avx_sample_argmax
|
||||
avx_sample_dry
|
||||
avx_sample_logprobs
|
||||
avx_sample_mask
|
||||
avx_sample_minp
|
||||
avx_sample_penalties
|
||||
avx_sample_pick
|
||||
avx_sample_temp
|
||||
avx_sample_topk
|
||||
avx_sample_topp
|
||||
avx_sample_typical
|
||||
avx_sample_xtc
|
||||
avx_scatter_rows
|
||||
@@ -0,0 +1,50 @@
|
||||
# Kernel rows a replay of this fixture reaches (rad-kbench --coverage).
|
||||
# A row listed here and not reached fails the replay; regenerate with
|
||||
# --coverage-write when a row is added or deliberately retired.
|
||||
add_bf16
|
||||
attn_decode_h256_gqa8_fp8kv
|
||||
attn_prefill_h256_gqa8_fp8kv
|
||||
attn_vit_h72_bf16
|
||||
cast_bf16_bf16
|
||||
embed_lookup_bf16
|
||||
gated_quant_fp8
|
||||
gather_rows_bf16
|
||||
gdn_chunk_scan_k128_v128_c64_bf16
|
||||
gdn_conv_update_w4_h128_bf16
|
||||
gdn_gated_rmsnorm_h128_bf16
|
||||
gdn_kkt_solve_k128_c64_bf16
|
||||
gdn_recurrent_update_k128_v128_bf16_fp32state
|
||||
gemm_bf16_nt_bias_tiled
|
||||
gemm_bf16_nt_m16
|
||||
gemm_bf16_nt_m64
|
||||
gemm_bf16_nt_tiled
|
||||
gemm_fp8a8_nt_m16
|
||||
gemm_fp8a8_tiled
|
||||
grid_embed_bf16
|
||||
kv_store_fp8
|
||||
layernorm_bf16
|
||||
logits_gemm_fp8
|
||||
moe_gather_bf16
|
||||
moe_gemm_fp8a8
|
||||
moe_scatter_i32
|
||||
quant_act_fp8
|
||||
quant_act_i8
|
||||
rmsnorm_bf16
|
||||
rmsnorm_quant_fp8
|
||||
rope_bf16
|
||||
rope_table_f32
|
||||
router_topk_bf16
|
||||
rowtopk_bf16
|
||||
sample_argmax_f32
|
||||
sample_dry_f32
|
||||
sample_logprobs_f32
|
||||
sample_mask_f32
|
||||
sample_minp_f32
|
||||
sample_penalties_f32
|
||||
sample_pick_f32
|
||||
sample_temp_f32
|
||||
sample_topk_f32
|
||||
sample_topp_f32
|
||||
sample_typical_f32
|
||||
sample_xtc_f32
|
||||
scatter_rows_bf16
|
||||
@@ -0,0 +1,46 @@
|
||||
# Kernel rows a replay of this fixture reaches (rad-kbench --coverage).
|
||||
# A row listed here and not reached fails the replay; regenerate with
|
||||
# --coverage-write when a row is added or deliberately retired.
|
||||
ref_add
|
||||
ref_attn_dense
|
||||
ref_attn_paged
|
||||
ref_cast
|
||||
ref_embed_lookup
|
||||
ref_gated_quant_fp8
|
||||
ref_gather_rows
|
||||
ref_gdn_chunk_scan
|
||||
ref_gdn_conv_update
|
||||
ref_gdn_gated_rmsnorm
|
||||
ref_gdn_kkt_solve
|
||||
ref_gdn_recurrent_update
|
||||
ref_gemm_nt
|
||||
ref_gemm_nt_bias
|
||||
ref_gemm_nt_q
|
||||
ref_grid_embed
|
||||
ref_kv_store
|
||||
ref_layernorm
|
||||
ref_logits_gemm
|
||||
ref_moe_gather
|
||||
ref_moe_gemm_q
|
||||
ref_moe_scatter
|
||||
ref_quant_act_fp8
|
||||
ref_quant_act_i8
|
||||
ref_rmsnorm
|
||||
ref_rmsnorm_quant_fp8
|
||||
ref_rope
|
||||
ref_rope_table
|
||||
ref_router_topk
|
||||
ref_row_topk
|
||||
ref_sample_argmax
|
||||
ref_sample_dry
|
||||
ref_sample_logprobs
|
||||
ref_sample_mask
|
||||
ref_sample_minp
|
||||
ref_sample_penalties
|
||||
ref_sample_pick
|
||||
ref_sample_temp
|
||||
ref_sample_topk
|
||||
ref_sample_topp
|
||||
ref_sample_typical
|
||||
ref_sample_xtc
|
||||
ref_scatter_rows
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
# q38-27b-nvfp4-df2.recipe -- unsloth's Qwen3.8-27B-NVFP4 with the DFlash2 drafter.
|
||||
#
|
||||
# rad-convert <unsloth/Qwen3.8-27B-NVFP4> --draft-model <z-lab/Qwen3.8-27B-DFlash2> \
|
||||
# --recipe q38-27b-nvfp4-df2.recipe -o q38-27b-nvfp4-df2.rad
|
||||
#
|
||||
# The checkpoint is compressed-tensors mixed precision: the MLPs of layers 0-55 are NVFP4 (e2m1
|
||||
# codes, an e4m3 scale per 16 of K, an f32 global scale per tensor); the attention and delta-net
|
||||
# projections, the MLPs of layers 56-63 and the lm_head are FP8 with a bf16 scale per row; the
|
||||
# delta net's a/b projections, the vision tower and the MTP head are bf16. The core decodes each
|
||||
# exactly, and every rule below quantises the decoded value, so one recipe covers all forms.
|
||||
#
|
||||
# - The trunk's linears at MXFP4 (`fp4_e2m1`, an e8m0 scale per 32 of K, the OCP exponent
|
||||
# rule): the encoding and kernel of q38-27b-quark-mxfp4-df2.recipe. No kernel serves NVFP4.
|
||||
# NVFP4 to MXFP4 rounds twice: on a synthetic Gaussian tensor the result is 0.14 relative
|
||||
# RMS from the source, against 0.12 for MXFP4 made from the source and 0.10 for NVFP4. At
|
||||
# model scale, against the block-fp8 Qwen3.8-27B on four documents: mean KL 0.287, top-1
|
||||
# 87.5% (the Quark MXFP4 container: 0.206, 89.3%).
|
||||
# - The delta net's a/b projections stay bf16, as shipped: 96 rows of 5120, read as their own
|
||||
# projection beside [q|k|v|z].
|
||||
# - The lm_head at block fp8 (from its per-row FP8), as in the other 27B recipes.
|
||||
#
|
||||
# The drafter as q38-27b-quark-mxfp4-df2.recipe makes it: its linears at MXFP4, and a 2-bit copy
|
||||
# of the target's head (u2 with a u8 zero, least-squares clip search) whose top 32 the engine
|
||||
# rescores against the target's fp8 head.
|
||||
|
||||
blk.*.ffn_gate_up.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
blk.*.ffn_down.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
blk.*.attn_qg.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
blk.*.attn_k.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
blk.*.attn_v.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
blk.*.attn_output.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
blk.*.ssm_inz.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
blk.*.ssm_out.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
|
||||
output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dflash.draft_head.weight rtn codes=u2 zero=u8 group=128 scale=f16 rule=search
|
||||
|
||||
dflash.fc.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
dflash.blk.*.attn_q.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
dflash.blk.*.attn_k.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
dflash.blk.*.attn_v.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
dflash.blk.*.attn_output.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
dflash.blk.*.ffn_gate_up.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
dflash.blk.*.ffn_down.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
|
||||
@@ -14,7 +14,7 @@
|
||||
#
|
||||
# DIR holds each layer's pooled Grams, recorded from ten million tokens of the bf16 model, and each
|
||||
# expert's own down Gram, from one million tokens with the per-expert tap, side by side; libquant
|
||||
# takes an expert's own wherever it holds at least 4096 rows and the layer's otherwise
|
||||
# takes an expert's own wherever it holds at least 4 x K rows (2560 for down) and the layer's otherwise
|
||||
# (docs/MOE-W4.md, "Calibration"). A variant of this recipe converted with --reuse w4nl64-i8lm.rad
|
||||
# re-quantises only the weights whose rule changed.
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user