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

+26 -7
View File
@@ -1,14 +1,17 @@
/* lq_quant.h -- what every libquant quantiser shares: the grid's options as a recipe spells them,
* reading a grid off a rule, and the table each algorithm file exports its quantiser through.
/* lq_quant.h -- shared by every libquant quantiser: the grid options a recipe spells, reading a
* grid off a rule, and the table each algorithm file exports its quantiser through.
*
* lq_registry.cpp holds the plugin's exports and the quantisers that are a few lines each (rtn,
* gptq, cast); an algorithm with a loop of its own (AWQ, AutoRound, ParoQuant) is a file, and its
* RadQuantizerInfo comes back from the function named for it below.
* lq_registry.cpp holds the plugin's exports and the short quantisers (rtn, gptq, cast). An
* algorithm with its own loop (AWQ, AutoRound, ParoQuant) has its own file and returns its
* RadQuantizerInfo from the function named for it below.
*/
#pragma once
#include "lq_grid.h"
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <vector>
/* The grid options, shared by every quantiser over a grid. */
#define LQ_GRID_OPTIONS \
@@ -48,8 +51,8 @@ namespace lq {
* weight's name, when it is refused. */
int grid_of(const RadParam* o, int n_o, const RadQuantWeight* w, Grid* g);
/* A rank-1 weight -- a norm, a bias -- is declined rather than quantised: nothing in a recipe
* should have to spell out every vector a pattern happens to match. */
/* Rank-1 weights (norms, biases) are declined rather than quantised, so a recipe pattern need not
* exclude every vector it happens to match. */
inline bool declines(const RadQuantWeight* w) { return !w || w->rank < 2; }
/* Say why a rule is refused, with the weight's name, and return RAD_E_INVAL. */
@@ -58,6 +61,22 @@ int refuse(const RadQuantWeight* w, const char* why);
/* A 64-bit hash of a string, for a seed that is the same on every machine and every run. */
uint64_t name_seed(const char* s);
/* The rows of `w` [N, K] in the listed row units of `unit` rows each (the last unit may be short),
* packed in list order into `out`. Returns the row count. */
inline int64_t gather_units(const float* w, int64_t N, int64_t K, int64_t unit,
const std::vector<int64_t>& units, std::vector<float>* out) {
int64_t rows = 0;
for (int64_t u : units) rows += std::min(unit, N - u * unit);
out->resize((size_t)(rows * K));
int64_t at = 0;
for (int64_t u : units) {
const int64_t n = std::min(unit, N - u * unit);
std::memcpy(out->data() + at * K, w + u * unit * K, (size_t)(n * K) * sizeof(float));
at += n;
}
return rows;
}
/* The algorithm files' quantisers. */
const RadQuantizerInfo& awq_info();
const RadQuantizerInfo& autoround_info();