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
@@ -1,26 +1,16 @@
|
||||
// r4d_gdn_conv_tap.h -- the arithmetic of one gated-delta-net convolution output, shared by the
|
||||
// standalone conv kernels (r4d_gdn_conv_w4_h128_bf16.hip) and the recurrent update that folds the
|
||||
// decode convolution into its prologue (r4d_gdn_recurrent_update_k128_v128_bf16_fp32state.hip).
|
||||
// One definition is what makes the fold byte-identical to the standalone pair: the activation's
|
||||
// reciprocal form below changes the last bit of a bf16 output, so two copies that drift apart
|
||||
// would disagree on a real fraction of channels.
|
||||
// A single definition keeps the fold byte-identical to the standalone path: the reciprocal form
|
||||
// below changes the last bit of some bf16 outputs.
|
||||
#pragma once
|
||||
|
||||
#define R4D_GDN_CONV_W 4 // conv width; the state holds R4D_GDN_CONV_W - 1 taps of history
|
||||
|
||||
#ifndef CU_RCP
|
||||
#define CU_RCP 1
|
||||
#endif
|
||||
|
||||
// The divide here is IEEE-exact and the result is rounded to bf16 on the very next instruction, so
|
||||
// the exactness buys nothing: v_rcp_f32 is 1 ULP (~1e-7 relative) against bf16 s 2^-8 quantum. The
|
||||
// exact form costs a v_div_scale pair, a v_rcp, a Newton chain, v_div_fmas and v_div_fixup -- about
|
||||
// ten instructions and a long dependent chain -- where this costs two. The conv update runs four
|
||||
// waves on five workgroups, so its instruction count IS its time.
|
||||
// The result is rounded to bf16 immediately, so an IEEE-exact divide buys nothing: v_rcp_f32 is
|
||||
// 1 ULP (~1e-7 relative) against bf16's 2^-8 quantum. The exact form is ~10 dependent instructions
|
||||
// (v_div_scale, v_rcp, Newton, v_div_fmas, v_div_fixup); this is two. The conv update runs four
|
||||
// waves on five workgroups, so its time is its instruction count.
|
||||
__device__ __forceinline__ float cp_silu(float z) {
|
||||
#if CU_RCP
|
||||
return z * __builtin_amdgcn_rcpf(1.0f + __expf(-z));
|
||||
#else
|
||||
return z / (1.0f + __expf(-z));
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user