Archived
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:
1 parent
6a2ee986d6
commit
89cee7ce41
107 files changed
+6849
-1091
No files matched your search
+12
@@ -1196,10 +1196,22 @@ resolutions of one op — which is not something a batch can contain.
|
||||
| `sample_pick` | `M`(range) `n_cand` | `cand_idx`, `cand_val`, `params` → `token` |
|
||||
| `sample_argmax` | `M`(range) `n_vocab` | `logits`, `params` → `token` |
|
||||
| `sample_merge_topk` | `M`(range) `n_cand` | `gathered`, `params` → `cand_idx`, `cand_val` |
|
||||
| `sample_logprobs` | `M`(range) `n_vocab` `k` `vocab_off`/opt | `logits`, `params` → `stats` |
|
||||
|
||||
`sample_mask` is where a GBNF grammar lands: the state machine stays on host and what crosses is a
|
||||
token bitmask per sequence, 19 KiB at a 151K vocab, cheap enough to upload every step.
|
||||
|
||||
`sample_logprobs` is what an OpenAI `logprobs` field or llama-server's `n_probs` reads. It runs on
|
||||
the RAW logits, before any stage has touched them, and only for a row whose flags carry
|
||||
`RAD_SP_LOGPROBS`; other rows are not written. `stats` is `[M, 2 + 2k]` f32: the row's maximum, the
|
||||
sum of `exp(l - max)` over it, and its `k` largest as (id, logit) pairs, descending, ties to the
|
||||
lower id, the id written as a float (exact below 2^24) and GLOBAL under a split vocabulary
|
||||
(`vocab_off` added). A slot past the vocabulary is id -1, logit -infinity. `k` is geometry: the one
|
||||
width every request's `top_logprobs` fits in. The engine declares 21 -- OpenAI's bound of 20, plus
|
||||
one so that a row is 44 floats, whole 16-byte words, which the vocab-parallel `all_gather` moves. A
|
||||
token's logprob is `l - max - log(sum)`; under a split vocabulary the host merges the ranks' rows
|
||||
(the maxima and sums by the usual rescale, the pairs by value).
|
||||
|
||||
### Stages the decomposed chain does not carry
|
||||
|
||||
| op | params | operands |
|
||||
|
||||
Reference in new issue
Block a user