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

+19 -2
View File
@@ -314,8 +314,9 @@ std::vector<Case> build_cases() {
add("lora_shrink", { HI("M", M), HI("K", K), HI("R", 48), HI("S", 4),
HI("group", 128), HS("dtype", dt) }, 0, 2.0 * M * 48 * K);
for (const char* dt : { "f32", "bf16", "f16" })
add("lora_expand", { HI("M", M), HI("N", 645), HI("R", 48), HI("S", 4),
HS("dtype", dt) }, 0, 2.0 * M * 645 * 48);
for (const char* op : { "lora_expand", "lora_expand_mm" })
add(op, { HI("M", M), HI("N", 645), HI("R", 48), HI("S", 4), HS("dtype", dt) }, 0,
2.0 * M * 645 * 48);
}
for (const char* dt : { "f32", "bf16" }) {
add("embed_lookup", { HI("M", 9), HI("n_embd", 128), HI("n_vocab", 64), HS("dtype", dt),
@@ -728,6 +729,10 @@ std::vector<Case> build_cases() {
add("randn_lanes", { HI("M", 24), HI("n", 64), HI("stride", 16), HI("n_seq", 2),
HS("dtype", dt) });
add("flow_euler", { HI("M", 24), HI("n", 64), HI("stride", 16), HS("dtype", dt) });
add("kd_input", { HI("M", 24), HI("n", 4), HI("stride", 16), HS("dtype", dt) });
for (const char* pred : { "eps", "v" })
add("kd_step", { HI("M", 24), HI("n", 4), HI("stride", 16), HS("pred", pred),
HS("dtype", dt) });
for (const char* mode : { "fma", "inv" })
for (int round : { 1, 0 })
add("chan_affine", { HI("M", 9), HI("n", 67), HS("mul", kMul.c_str()),
@@ -737,6 +742,7 @@ std::vector<Case> build_cases() {
add("l2norm_chan", { HI("M", 9), HI("n", 645), HS("act", act), HS("dtype", dt) });
add("to_rgba8", { HI("M", 9), HI("n", 4), HS("dtype", dt) });
add("gelu_tanh", { HI("M", 6), HI("n", 645), HS("dtype", dt) });
add("gelu_quick", { HI("M", 6), HI("n", 645), HS("dtype", dt) });
add("scatter_add_rows", { HI("M", 6), HI("n", 645), HS("dtype", dt) });
struct Conv { int M, cin, cout, k, stride, up; const char* pad; };
static const Conv kConv[] = {
@@ -751,6 +757,17 @@ std::vector<Case> build_cases() {
HI("stride", v.stride), HS("pad", v.pad), HI("up", v.up),
HS("dtype", dt) },
0, 2.0 * v.M * v.cout * v.cin * v.k * v.k);
/* The convolutions' geometries once each: cout is not a parameter of the unfold. */
for (const Conv& v : kConv) {
bool seen = false;
for (const Conv* u = kConv; u != &v; ++u)
seen = seen || (u->M == v.M && u->cin == v.cin && u->k == v.k &&
u->stride == v.stride && u->up == v.up && u->pad == v.pad);
if (seen) continue;
add("im2col_nhwc", { HI("M", v.M), HI("cin", v.cin), HI("k", v.k),
HI("stride", v.stride), HS("pad", v.pad), HI("up", v.up),
HS("dtype", dt) });
}
for (int ft : { 1, 2 }) {
add("d2s_add", { HI("M", 64), HI("cin", 24), HI("cout", 24), HI("ft", ft),
HS("dtype", dt) });