radiance 1.4.0

- Qwen3.8-Flash-Next on one card: the heat engine moves 64 experts a step (was 8), its copies and
  the prefill's expert staging run on the card's DMA engines instead of as copy kernels, and at
  decode the next layer's likeliest experts are copied onto the card ahead of its GEMMs. Against
  1.3.0 at --tp 1: prefill +17-20% from 8K tokens up, throughput under load +16-20%
- deploy/compose/flashnext-tp1.yaml: Qwen3.8-Flash-Next on one card and 64 GB of host RAM
  (4096-token prefill steps, 4 sequences, a 301K-token cache)
- #61: --busy-prefill-chunk (default auto): a long prefill leaves the rest of the step to the
  requests decoding beside it and to new arrivals, instead of taking all of it (baKon)
- LiquidAI's LFM2 and LFM2-VL, and d1's /v1/systemone (after zivius's PR #50)
- a startup report: every option with its value and where it came from, the hardware, and what
  on it costs speed with the fix; /diagnostics serves it (behind the API key; without one, only
  to the same machine)
- #69: a GPU memory fault names the buffer and kernel argument behind it and ends the server at
  once (exit status 70), instead of hanging or writing a core of tens of gigabytes
- #64: a card without Resizable BAR is refused at startup, naming what to turn on, instead of
  crashing at the first launch
- the image is built with ROCm 10.1 (the host's amdgpu driver must support it), with ROCm's
  libLLVM rebuilt so the same source compiles to the same kernels every time; a source build
  takes ROCm 10.1 or 7.2
- #71: the image ships curl, jq and a CA bundle, so --model <HF repo id> works in the container,
  and hfget.sh runs under its busybox (baKon)
- --profile-ops shows how long each op's lane sat idle before it; cardclock.py skips an
  integrated GPU instead of stopping
This commit is contained in:
Deadcode committed 2026-10-12 11:46:14 +02:00
1 parent d5b65cddc6
commit dc339b4cd2
153 files changed
+12956 -1067

No files matched your search

+3 -11
View File
@@ -335,17 +335,7 @@ int read_model(const json& m, VocabBuild& out, const char* origin, uint64_t id_l
if (type == "BPE") {
out.kind = RAD_TOK_BPE;
/* `ignore_merges` SHORT-CIRCUITS THE MERGE LOOP for any word that is already a token, and
* this reader does not carry it: the vocabulary has no field for it and tokenizer.cpp
* applies the short-circuit only to added tokens. A vocabulary that sets it would tokenise
* differently here than in transformers, on rare words, with nothing in the output to say
* so -- so it is said here instead of being discovered from a quality regression. */
if (const json* im = get(m, "ignore_merges"))
if (im->is_boolean() && im->get<bool>())
RAD_WARN("%s: the vocabulary sets ignore_merges, which this tokeniser does not "
"implement. Words that are already tokens will be re-split through the "
"merge table and may tokenise differently than they do in transformers.",
origin);
out.ignore_merges = bool_or(m, "ignore_merges", false);
RAD_TRY(read_text_to_id("BPE"));
} else if (type == "Unigram") {
out.kind = RAD_TOK_UNIGRAM;
@@ -942,6 +932,7 @@ int vocab_serialize(const VocabBuild& in, StringSink& strings, uint64_t off,
h.add_bos = in.add_bos ? 1u : 0u;
h.add_eos = in.add_eos ? 1u : 0u;
h.chat_template = tmpl;
h.flags = in.ignore_merges ? RAD_VOCAB_IGNORE_MERGES : 0;
out.resize(sizeof(RadVocabHeader), 0);
/* Each array is aligned to its own element so a mapped reader can point a typed pointer at
@@ -1004,6 +995,7 @@ int vocab_deserialize(const void* file_base, uint64_t file_bytes, const RadVocab
out.pad = h->pad_id; out.unk = h->unk; out.sep = h->sep;
out.add_bos = h->add_bos != 0;
out.add_eos = h->add_eos != 0;
out.ignore_merges = (h->flags & RAD_VOCAB_IGNORE_MERGES) != 0;
out.chat_template = S(h->chat_template);
if (!in_file(h->tok_text_off, (uint64_t)h->n_tokens * sizeof(rad_stroff)))