radiance 1.9.0

New models:
- LTX-2.5 (base and distilled): video with a stereo soundtrack from text or from text and a first
  frame, on one card, with its duration head, tiled VAE decoding, the diffusion decoder and the x2
  latent upsampler
- Krea 2 Raw and Turbo, and FLUX.3 [klein] and its base: text to image, and for FLUX.3 edits from up
  to ten reference pictures, on one card
- GLM-5.3-Flash from AMD's Quark MXFP4 export, on eight cards (John McDonough, Nunze)
- Gemma 3 / TranslateGemma 27B with an optional DFlash2 drafter (mici81)

Engine:
- --kv-cache-dtype fp8_v4 and k6_v4 for Gemma 3 and Qwen3.8-Flash-Next (mici81)
- the rotated int8 trunk (i8a8h) for Qwen3.8-27B (eddie168168)
- eight-rank all-reduce bands, weighted shards and pieces (Nunze); --host-headroom-mib (sfjes)
- the dashboard shows the single-stream decode floor and its most recent window (Memoria)

Fixes: prefix-cache reservations kept until their save lands (baKon), tool calls in Responses
namespaces (#119), system messages merged when a template refuses several (#137), a prefill
continued with no open step (#127), calibration of a Gram accumulation (#122), JSON Schema patterns
read unanchored (davetha), GLM-style tool calls, the KV floor counting every sequence's state.
Plugin ABI 24.
This commit is contained in:
Deadcode committed 2026-10-19 21:58:07 +02:00
1 parent 778cbf315e
commit 685ec5bd85
136 files changed
+18917 -3821

No files matched your search

+47 -38
View File
@@ -3834,48 +3834,57 @@ int process_vram(int64_t* out) {
/* Tools and tests build and tear down movers repeatedly, and on a card every event or stream is
* a hardware queue and VRAM. A mover that staged, promoted and filled a loan gives back every
* event and every byte of device memory it took. */
/* The runtime and the driver keep some memory for the life of the process once a path is first
* used: page tables for address ranges first mapped (a page, or a page and a 2 MiB directory), and
* on some hosts about 30 MiB the first copy sets up (#124: 2 MiB, 2 MiB + 4 KiB and 31 MiB + 348
* KiB across runs on one host). So the work runs once before the count is taken, and the count
* after a second run may differ by a page and a directory, never by a buffer. */
TEST(a_mover_gives_back_every_event_and_device_byte) {
const int64_t events0 = rad_dev_live_events();
auto run = [&]() {
const int64_t events0 = rad_dev_live_events();
{
Fixture f;
build_dense(f, 8, 1 * MiB, /*host_kernel=*/false);
Config c = base_config();
c.placement = "layer_offload";
c.vram_weights_mib = 5;
c.host_pool_mib = 64;
PlannerInput in{&f.prog, &c, 0, 1, nullptr, 0};
Plan p;
REQUIRE_EQ(Planner(in).plan(&p), RAD_OK);
Mover m;
MoverConfig mc;
REQUIRE_EQ(m.init(f.prog, p, mc), RAD_OK);
RadStream compute = nullptr;
REQUIRE_EQ(rad_stream_create(&compute, 0), RAD_OK);
CHECK_OK(m.bind_compute_stream(compute));
CHECK(rad_dev_live_events() > events0);
ComputeWork work;
for (int d = 0; d < 20; ++d) {
CHECK_OK(m.begin_dispatch(d, nullptr));
work.run(compute);
CHECK_OK(m.prefetch_to_op(p.prefetch[(size_t)d % p.prefetch.size()].at_op));
}
CHECK(m.stats().prefetched > 0);
CHECK_OK(rad_stream_sync(compute));
rad_stream_destroy(compute);
}
{
LoanRig r;
REQUIRE_EQ(r.build(), RAD_OK);
CHECK_OK(r.m.set_loan(Mover::kLendKV, Loan::kAll));
for (Deadline dl; (r.m.flex_used_bytes() == 0 || any_busy(r.h, r.hf.plan)) && !dl.passed();)
CHECK_OK(r.dispatch());
CHECK(r.m.stats().promotions > 0);
}
CHECK_EQ(rad_dev_live_events(), events0);
};
run();
int64_t vram0 = 0, vram1 = 0;
CHECK_OK(process_vram(&vram0));
{
Fixture f;
build_dense(f, 8, 1 * MiB, /*host_kernel=*/false);
Config c = base_config();
c.placement = "layer_offload";
c.vram_weights_mib = 5;
c.host_pool_mib = 64;
PlannerInput in{&f.prog, &c, 0, 1, nullptr, 0};
Plan p;
REQUIRE_EQ(Planner(in).plan(&p), RAD_OK);
Mover m;
MoverConfig mc;
REQUIRE_EQ(m.init(f.prog, p, mc), RAD_OK);
RadStream compute = nullptr;
REQUIRE_EQ(rad_stream_create(&compute, 0), RAD_OK);
CHECK_OK(m.bind_compute_stream(compute));
CHECK(rad_dev_live_events() > events0);
ComputeWork work;
for (int d = 0; d < 20; ++d) {
CHECK_OK(m.begin_dispatch(d, nullptr));
work.run(compute);
CHECK_OK(m.prefetch_to_op(p.prefetch[(size_t)d % p.prefetch.size()].at_op));
}
CHECK(m.stats().prefetched > 0);
CHECK_OK(rad_stream_sync(compute));
rad_stream_destroy(compute);
}
{
LoanRig r;
REQUIRE_EQ(r.build(), RAD_OK);
CHECK_OK(r.m.set_loan(Mover::kLendKV, Loan::kAll));
for (Deadline dl; (r.m.flex_used_bytes() == 0 || any_busy(r.h, r.hf.plan)) && !dl.passed();)
CHECK_OK(r.dispatch());
CHECK(r.m.stats().promotions > 0);
}
CHECK_EQ(rad_dev_live_events(), events0);
run();
CHECK_OK(process_vram(&vram1));
CHECK_EQ(vram1, vram0);
CHECK(vram1 - vram0 <= 2 * MiB + 4096);
}
RAD_TEST_MAIN()