radiance 1.10.0

LoRA for image and video generators:
- civitai and Hugging Face adapter files as published: kohya, ComfyUI and diffusers/PEFT key names;
  LoRA, LoCon, LoHa, LoKr and full-weight diffs; DoRA, OFT and Tucker are refused by name
- stacked per request with a strength each, through the `loras` field or <lora:name:strength> tags
  in the prompt; --lora-dir serves every file in a directory, GET /v1/loras lists them, and
  --max-loras / --max-lora-rank size the slots on the card (generators default to rank 64)
- Krea 2, Qwen-Image 2.1, FLUX.3 [klein], MiniMax H3, LTX-2.5, Anima and SDXL

New models:
- Anima (base, aesthetic and turbo): Cosmos-Predict2 DiT with the Qwen3-0.6B text encoder and the
  Qwen-Image VAE, on one card
- Stable Diffusion XL and its single-file finetunes (Illustrious, NoobAI including V-Pred, Pony),
  read as civitai ships them, with the Euler, Euler a and DPM++ 2M samplers

Recipes:
- q38-27b-mxfp4-df2: any bf16 Qwen3.8-27B or finetune at MXFP4 with the DFlash2 drafter
- Krea 2 finetunes from civitai: scripts/krea2_native.py reads Krea's own key names, and
  krea-2-fp8-unscaled keeps a plain-fp8 file's codes exactly

Changes: --max-num-batched-tokens defaults to 2048 (was 8192). Plugin ABI 25: out-of-tree plugins
must be rebuilt.
This commit is contained in:
Deadcode committed 2026-10-20 21:05:16 +02:00
1 parent 685ec5bd85
commit 4246a1dd04
124 files changed
+14326 -387

No files matched your search

+13 -2
View File
@@ -150,8 +150,8 @@ AVX_KERNEL(lora_shrink) {
return RAD_OK;
}
/* operands: t, slot, lora_b, scale, y (inout) */
AVX_KERNEL(lora_expand) {
/* operands: t, slot, lora_b, scale, y (inout). `bf16_t`: lora_expand_mm, t rounded to bf16. */
static int expand_impl(const RadArgs* a, bool bf16_t) {
if (!rad_args_have(a, 5)) return RAD_E_INVAL;
const RadTensor *T = &a->t[0], *SL = &a->t[1], *LB = &a->t[2], *SC = &a->t[3], *Y = &a->t[4];
const int64_t N = p_int(a, "N", 0), R = p_int(a, "R", 0), S = p_int(a, "S", 0);
@@ -176,6 +176,12 @@ AVX_KERNEL(lora_expand) {
const int64_t s = row_slot(SL, m, S);
if (s < 0) continue; /* a base row: not read, not written */
const float* tv = in_row(T, m * mt.rs, R, scratch_f32((size_t)R));
if (bf16_t) {
float* tr = scratch_f32((size_t)R);
if (tr != tv) for (int64_t j = 0; j < R; ++j) tr[j] = tv[j];
for (int64_t j = 0; j < R; ++j) tr[j] = rad_bf16_to_f32(rad_f32_to_bf16(tr[j]));
tv = tr;
}
const float* bv = in_row(LB, s * pb.s0 + n * pb.s1, R, scratch_f32_b((size_t)R));
const float d = scd[s * sc_r + n * sc_c] * dotf(tv, bv, R);
const int64_t o = m * ys_r + n * ys_c;
@@ -183,3 +189,8 @@ AVX_KERNEL(lora_expand) {
}
return RAD_OK;
}
AVX_KERNEL(lora_expand) { return expand_impl(a, false); }
/* lora_expand with t rounded to bf16 (docs/OPS.md). */
AVX_KERNEL(lora_expand_mm) { return expand_impl(a, true); }