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

+5 -2
View File
@@ -134,8 +134,7 @@ private:
/* --embedding-placement and --ngram-placement, resolved into Config before the card is split
* (engine_bringup.cpp says how auto chooses). */
int resolve_table_placement(const std::vector<VramFacts>& facts,
const std::vector<int64_t>& emb_bytes,
const std::vector<int64_t>& floor_emb_ram, int64_t kv_floor,
const std::vector<int64_t>& emb_bytes, int64_t kv_floor,
int64_t ngram_bytes, bool ngram_device, bool ngram_host);
/* --ngram-placement ram: the copy of the container's [src, src + n), file offset `foff`, made
* once and shared by every rank -- locked for the host gather, or pinned for a device kernel
@@ -167,6 +166,9 @@ private:
std::vector<int32_t> token; /* [n_seq] */
std::vector<int32_t> accepted; /* [n_seq] */
std::vector<uint8_t> eos; /* [n_seq] */
/* [n_rows] each sampled row's logprobs, for the rows of requests that asked for them;
* empty on a step with none. */
std::vector<TokenLogprobs> lp;
};
/* The text frontend, loaded out of the container. `vocab_view_` is what the sampler's
@@ -238,6 +240,7 @@ private:
* wait left until after them. */
int collect_issue(const RadBatch* b, StepOut& so);
int collect_step(const RadBatch* b, StepOut& so);
int row_logprobs(StepOut& so, int32_t row, int32_t token);
/* WHERE THE STEP ENDS ON THE CARD: after its last draft pass and the copies the host reads,
* and before the step issued ahead of it. collect_step waits for this and not for the
* stream, so the card runs the next step while the host commits this one. */