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

+11 -18
View File
@@ -1,25 +1,19 @@
/* derive.h -- per-step metadata the core computes ONCE, by name, into the arena.
/* derive.h -- per-step metadata the core computes once, by name, into the arena.
*
* An architecture plugin that needs linear-state chunk boundaries or conv-state indices declares
* them at build time as a RAD_BUF_DERIVED buffer and names the derivation. The core computes it
* once per step; it is NOT recomputed per layer, and layers that share a geometry share the buffer.
* A plugin that needs linear-state chunk boundaries or conv-state indices declares a
* RAD_BUF_DERIVED buffer naming the derivation. The core fills it once per step, not per layer,
* and layers that share a geometry share the buffer. The step batch is the natural owner of
* "once per step"; vLLM has no such object and keys it off a module-level counter.
*
* Sharing like this is what vLLM has no natural place for: it has to establish "same step" through
* a module-level counter, because nothing there is an object that belongs to a step, and a marker
* held per metadata-builder instead removes nothing -- every KV-cache group is still the first one
* its own builder sees. Here the step batch IS that place.
*
* Adding a derivation is a row in the table in derive.cpp. The core is not the thing you edit to
* add a kernel; it is the thing you edit to add a shape of per-step metadata, and that list is
* short and shared.
* Adding a derivation is a row in the table in derive.cpp.
*/
#pragma once
#include "batch.h"
namespace rad {
/* Everything a derivation may read. All host memory, already staged for this step: a derivation
* that needed a device read would be a synchronisation on the step path. */
/* Everything a derivation may read. All host memory, already staged for this step, so no
* derivation adds a device sync to the step path. */
struct DeriveInput {
const StepPlan* plan = nullptr;
const int32_t* cu_seqlens = nullptr; /* [n_seq+1] */
@@ -32,8 +26,7 @@ struct DeriveInput {
};
/* Writes at most `cap` int32 elements to `out` and reports how many. Returns RAD_OK or negative;
* negative aborts the step, because a plugin issuing an op against a half-filled derived buffer is
* the silent-wrong-output failure this engine exists to remove. */
* negative aborts the step rather than let an op read a half-filled buffer. */
typedef int (*DeriveFn)(const DeriveInput& in, int32_t* out, int64_t cap, int64_t* n_out);
struct DeriveRow {
@@ -42,8 +35,8 @@ struct DeriveRow {
const char* doc;
};
/* -1 if the name is not a derivation the core knows. Reported at declare, by name, with the known
* list -- the same treatment a misspelled op gets (spec §2.3). */
/* -1 for an unknown name. Reported at declare with the known list, like a misspelled op
* (spec §2.3). */
int derive_index(const char* name);
const DeriveRow* derive_row(int index);
int derive_count();