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

+6 -11
View File
@@ -1,13 +1,8 @@
/* safetensors.h -- an 8-byte length, a JSON object, and a blob.
/* safetensors.h -- an 8-byte header length, a JSON object mapping tensor name to {dtype, shape,
* data_offsets}, and raw little-endian bytes. A small fixed-shape parser rather than a dependency,
* since the converter must run wherever a checkpoint lands.
*
* Written rather than depended on. The whole format is a header length, one JSON object mapping
* tensor name to {dtype, shape, data_offsets}, and raw little-endian bytes; the parser below is
* two hundred lines and it does not need to be a general JSON parser, because the document's shape
* is fixed. A dependency here would be a dependency in the converter, which is the one tool that
* has to run on a machine that has just been handed a checkpoint.
*
* mmap, no copy. A 46-shard model is opened one shard at a time, so peak RSS stays bounded
* regardless of model size.
* Shards are mmapped, not copied.
*/
#pragma once
#include "../rad_internal.h"
@@ -59,8 +54,8 @@ private:
std::unordered_map<std::string, size_t> index_;
};
/* model.safetensors.index.json -> { tensor name: shard filename }. A single-file checkpoint has
* no index; the caller falls back to opening model.safetensors directly. */
/* model.safetensors.index.json -> { tensor name: shard filename }. A single-file checkpoint has no
* index; the caller then opens model.safetensors. */
int st_load_index(const std::string& index_path,
std::unordered_map<std::string, std::string>* out);