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

+14 -14
View File
@@ -1,10 +1,6 @@
/* machine_key.cpp -- the machine half of the tuning cache key.
*
* Separate from tunecache.cpp on purpose: the cache is pure file I/O and must stay linkable and
* testable without a device layer, while this needs one. It is also the only part of the key that
* can be wrong in a way that is invisible -- a cache measured on another card is not a slower
* answer, it is a wrong one -- so it names everything that changes the answer and nothing that
* does not.
/* machine_key.cpp -- the machine half of the tuning cache key. Separate from tunecache.cpp, which
* is pure file I/O and must link without a device layer. A cache from another machine gives wrong
* answers, so the key names everything that changes the answer and nothing else.
*/
#include "tunecache.h"
@@ -15,10 +11,12 @@ namespace rad {
std::string rad_machine_key() {
RadDeviceProps p{};
const int n = rad_dev_count();
return rad_machine_key_of(n, n > 0 && rad_dev_props(0, &p) >= 0 ? &p : nullptr);
}
/* The host backend is a supported configuration and not a degraded one, so it gets a real key
* rather than a placeholder: host kernels tune too, and their answer depends on the CPU. */
if (n <= 0 || rad_dev_props(0, &p) < 0) {
std::string rad_machine_key_of(int n, const RadDeviceProps* dev) {
/* No device to name at all. */
if (n <= 0 || !dev) {
#if defined(__x86_64__)
return "host-x86_64";
#elif defined(__aarch64__)
@@ -28,10 +26,12 @@ std::string rad_machine_key() {
#endif
}
/* Device count matters because a collective's variant depends on how many peers there are,
* and those rows share this file. Card name is included, arch is not enough: two boards of the
* same architecture can differ in clocks and memory width. */
std::string name = p.is_host_backend ? "host" : p.name;
/* Device count, because a collective's variant depends on the peer count; card name, because
* boards of one arch differ in clocks and memory width. The host backend's device name is the
* CPU model, which host kernels' tuning depends on (an AVX2 part's answer is not an AVX-512
* part's), so its key is `host-x<N>-<cpu model>`. */
const RadDeviceProps& p = *dev;
std::string name = p.name;
for (char& c : name)
if (!((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')))
c = '_';