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:
Deadcode committed 2026-10-16 18:25:18 +02:00
1 parent b068190326
commit 1e968f6e1d
739 files changed
+128447 -84632

No files matched your search

+8 -13
View File
@@ -1,16 +1,13 @@
// THE LIBRARY HALF of the registered-kernel test. Built twice, at -DNK=2 and -DNK=512, and
// dlopen'd -- because that is libr4d's actual shape: a shared object holding every template
// instantiation of every kernel, entered through a function pointer.
//
// Both builds launch THE SAME kernel, k<0>, with the same arguments. The only difference is how
// many other instantiations sit in the module beside it.
// Library half of the registered-kernel test, built at -DNK=2 and -DNK=512 and dlopen'd, which
// matches libr4d's shape: one shared object holding every kernel instantiation, entered through a
// function pointer. Both builds launch the same kernel k<0> with the same arguments; only the
// number of other instantiations in the module differs.
#include <hip/hip_runtime.h>
template <int I>
__global__ void k(float* p) { if (threadIdx.x == 0) p[blockIdx.x] = (float)I; }
/* The table exists to keep the instantiations alive. Without a use, the compiler drops every k<I>
* that is never launched and both builds register one kernel. */
/* Keeps the instantiations alive; without a use the compiler drops every unlaunched k<I>. */
static const void* g_tab[NK];
template <int I>
@@ -22,11 +19,9 @@ struct Reg<0> {
static void go() { g_tab[0] = (const void*)k<0>; }
};
/* A THUNK PER INSTANTIATION. The arms above launch one kernel over and over, which is the one
* thing a decode step never does: it issues forty-five DIFFERENT kernels, each through its own
* shim, each with its own argument buffer and its own host stub. Everything the tight loop keeps
* in L1 -- the code, the stub, the args -- is cold on every one of those. This makes that
* difference, and only that difference, measurable. */
/* One thunk per instantiation. A decode step issues ~45 different kernels, each with its
* own shim, argument buffer and host stub, so code, stub and args are cold on each launch; a
* loop over one kernel keeps them in L1. lr_launch_distinct measures that difference. */
typedef void (*Thunk)(float*, hipStream_t);
template <int I>
static void thunk(float* p, hipStream_t st) {