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

+10 -20
View File
@@ -1,21 +1,13 @@
/* rank_barrier.h -- the release point for the tensor-parallel rank threads.
*
* WHY THIS IS NOT IPC. Radiance is one process. One thread per rank, each owning one device
* (spec §1). The ranks therefore share an address space, so the step batch is shared BY POINTER
* rather than broadcast: there is nothing to serialise, no shared-memory segment to map, no file
* descriptor, no pickling, and no handshake protocol that can get out of step with itself. All
* that is left for the barrier to do is establish happens-before between the scheduler's release
* and each rank's first rad_issue, and between the ranks' last issue and the scheduler's next
* batch build.
* Radiance is one process with one thread per rank, each owning one device (spec §1), so the step
* batch is shared by pointer rather than serialised to other processes. The barrier only
* establishes happens-before between the scheduler's release and each rank's first rad_issue, and
* between the ranks' last issue and the scheduler's next batch build. A condvar round trip costs
* ~1-2 us; an IPC broadcast of the batch costs tens of microseconds per step.
*
* A futex round trip through a condvar is ~1-2 us on this class of machine. The multiprocessing
* equivalent -- serialise the batch, write it down a pipe, wake N processes, have each one
* deserialise it -- is tens of microseconds per step before any work happens, and it is most of
* what a Python engine's multiprocessing budget actually buys. That difference is the reason §1
* is written the way it is, and this class is the whole of the cost on our side.
*
* Sense reversal, not a counter reset, so a fast rank that comes back round for the next step
* cannot slip through the barrier its slower peers have not left yet.
* Generation-based (sense reversal), so a fast rank re-entering for the next step cannot slip
* through a barrier its slower peers have not left yet.
*/
#pragma once
#include "../rad_core.h"
@@ -34,11 +26,9 @@ public:
void arrive_and_wait();
/* Release everyone regardless of how many have arrived, and refuse every later arrival. The
* engine calls this on shutdown and on a device fault: a rank that has already exited must not
* leave its peers parked on a barrier that can no longer be completed (spec §17 -- a device
* fault is not recoverable in-process, and the engine exits rather than serving from a wedged
* queue, which it cannot do while a thread is blocked here). */
/* Release everyone regardless of how many have arrived, and make every later arrival return
* at once. Called on shutdown and on a device fault, so ranks are not left parked on a barrier
* an exited rank can no longer complete; the engine must be able to exit (spec §17). */
void abort();