radiance 1.3.0

- #47: llama-server's request fields, routes and sampler order, and /props (with baKon's model
  entry: max_model_len, root and capabilities on /v1/models, and /v1/models/:id)
- new APIs: Anthropic's Messages API (/v1/messages), OpenAI's Responses API (/v1/responses),
  llama-server's /completion and /infill, logprobs (OpenAI's logprobs and top_logprobs, up to
  20; llama-server's n_probs), OpenAI's legacy `functions`, and X-Api-Key beside the bearer key
- #4: --model takes a Hugging Face repo id (owner/name), fetched before startup into
  ~/.cache/radiance/hf or --download-dir and checked for changes at every start (redxherring)
- #46: --tp 3 --tp-wire wht6 serves -- a three-rank two-shot all-reduce with uneven shards and
  the tiered-int8 wire over it (baKon); scripts/cardclock.py names what holds each card's clock
  under load (baKon)
- CPU-only serving works again; --kernels names the kernel libraries to load; a model the
  loaded libraries cannot fully serve refuses at startup instead of failing its first request;
  --vram-kv-mib and --vram-weights-mib are gone (the split is automatic)
- --embedding-placement ram is the default, and `auto` is gone
- #40: Swift 1.5 recipes; rad-convert reads which shard holds a tensor from the index
- #53: the pinned host pool gets huge pages where shmem THP is off; #57: a crash on video with
  an odd frame width is fixed
This commit is contained in:
Deadcode committed 2026-10-08 18:22:08 +02:00
1 parent 6a2ee986d6
commit 89cee7ce41
107 files changed
+6849 -1091

No files matched your search

+6 -5
View File
@@ -114,9 +114,10 @@ static void dump_row(int step, const char* phase, const char* name, uint32_t dty
* WHY THAT IS ENOUGH FOR A KL DIVERGENCE, with no log-sum-exp anywhere. Renormalised over a
* fixed candidate set S, p~_i = exp(l_i) / sum_{j in S} exp(l_j) -- the partition function
* over the WHOLE vocabulary cancels, in both engines independently. So a top-K KLD against
* another engine's top-K logprobs needs only these logits. An OpenAI `logprobs` FIELD would
* need the normaliser, and `supports_logprobs` is false; this is a probe, and it says so by
* being an environment variable at -vv rather than a response field. */
* another engine's top-K logprobs needs only these logits. The OpenAI `logprobs` field carries
* the normaliser (sample_logprobs) and only the RAW distribution's top 20; this reads the
* plane the pick drew from, which is a probe, and it says so by being an environment variable
* at -vv rather than a response field. */
static const int head = [] {
const char* s = std::getenv("RADIANCE_DUMP_HEAD");
const long v = (s && *s) ? std::strtol(s, nullptr, 10) : 0;
@@ -156,8 +157,8 @@ static void dump_row(int step, const char* phase, const char* name, uint32_t dty
* writing different code -- so the question a LOSSY LEVER asks ("how much worse, if at all")
* needs an instrument of its own.
*
* WHY THIS SHAPE AND NOT A PERPLEXITY. The server returns no logprobs (`supports_logprobs` is
* never set, so it refuses them) and a served prefill produces logits only at the rows
* WHY THIS SHAPE AND NOT A PERPLEXITY. The server's logprobs are the generated positions'
* only -- never the prompt's -- and a served prefill produces logits only at the rows
* `out_ids` names; the teacher-forced scoring pass is the KL mode's (core/kld.h), which runs in
* place of the server. What a serving engine offers: send N distinct prompts at max_tokens = 1,
* and every build under comparison sees IDENTICAL inputs at one row each. The top of that row,