Archived
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:
1 parent
685ec5bd85
commit
4246a1dd04
124 files changed
+14326
-387
No files matched your search
@@ -599,6 +599,22 @@ struct ImageGenInfo {
|
||||
/* A reference picture is shrunk to `ref_area` only when larger, then centre-cropped to the
|
||||
* size multiple; otherwise resized to `ref_area` at its aspect. */
|
||||
bool ref_shrink_only = false;
|
||||
/* A prompt of fewer tokens after the drop prefix is padded with `pad_token` up to this many
|
||||
* (RadGeneratorDecl::min_tokens); 0: no minimum. */
|
||||
int64_t min_tokens = 0;
|
||||
int32_t pad_token = 0;
|
||||
/* The prompt is also read through the model's second tokenizer (IImageGen::encode_aux), at
|
||||
* most `aux_max_tokens` ids of it. */
|
||||
bool aux_tokens = false;
|
||||
int64_t aux_max_tokens = 0;
|
||||
/* A discrete-time model (RadGeneratorDecl::train_steps): the samplers it serves (1 << id)
|
||||
* and the sampler and scheduler a request gets when it names none. 0 samplers: flow
|
||||
* matching, which takes neither field. */
|
||||
uint32_t samplers = 0;
|
||||
int32_t default_sampler = 0, default_scheduler = 0;
|
||||
/* The prompt in windows (RadGeneratorDecl::chunk_tokens): tokens a window, its markers and
|
||||
* its padding token; 0 for a prompt read whole. */
|
||||
int32_t chunk_tokens = 0, chunk_bos = 0, chunk_eos = 0, chunk_pad = 0;
|
||||
};
|
||||
|
||||
class IImageGen {
|
||||
@@ -612,6 +628,13 @@ public:
|
||||
virtual int picture(const mm::Frame& f, std::shared_ptr<mm::Item>* out, std::string* why) = 0;
|
||||
virtual int64_t queued() const = 0;
|
||||
virtual int64_t running() const = 0;
|
||||
/* The user's prompt through the model's second tokenizer (ImageGenInfo::aux_tokens), with the
|
||||
* special tokens that tokenizer adds; RAD_E_UNSUPPORTED for a model without one. */
|
||||
virtual int encode_aux(const std::string& text, std::vector<int32_t>* out) const {
|
||||
(void)text;
|
||||
(void)out;
|
||||
return RAD_E_UNSUPPORTED;
|
||||
}
|
||||
};
|
||||
|
||||
/* The audio generator (core/gen/audio_driver.h), for a model that makes music or other audio from
|
||||
|
||||
Reference in new issue
Block a user