pub struct ModelPaths {Show 15 fields
pub transformer: PathBuf,
pub transformer_shards: Vec<PathBuf>,
pub vae: PathBuf,
pub spatial_upscaler: Option<PathBuf>,
pub temporal_upscaler: Option<PathBuf>,
pub distilled_lora: Option<PathBuf>,
pub t5_encoder: Option<PathBuf>,
pub clip_encoder: Option<PathBuf>,
pub t5_tokenizer: Option<PathBuf>,
pub clip_tokenizer: Option<PathBuf>,
pub clip_encoder_2: Option<PathBuf>,
pub clip_tokenizer_2: Option<PathBuf>,
pub text_encoder_files: Vec<PathBuf>,
pub text_tokenizer: Option<PathBuf>,
pub decoder: Option<PathBuf>,
}Expand description
Resolved model file paths.
For diffusion models, transformer and vae are always required.
For upscaler models, only transformer (weights) is required; vae is empty.
For utility models, only transformer is required; vae may be empty.
Other paths are optional — each engine validates what it needs at load time.
Fields§
§transformer: PathBuf§transformer_shards: Vec<PathBuf>Multi-shard transformer paths (Z-Image BF16); empty means use single transformer
vae: PathBuf§spatial_upscaler: Option<PathBuf>§temporal_upscaler: Option<PathBuf>§distilled_lora: Option<PathBuf>§t5_encoder: Option<PathBuf>§clip_encoder: Option<PathBuf>§t5_tokenizer: Option<PathBuf>§clip_tokenizer: Option<PathBuf>§clip_encoder_2: Option<PathBuf>CLIP-G / OpenCLIP encoder (SDXL only)
clip_tokenizer_2: Option<PathBuf>CLIP-G / OpenCLIP tokenizer (SDXL only)
text_encoder_files: Vec<PathBuf>Generic text encoder shard paths (Qwen3 for Z-Image)
text_tokenizer: Option<PathBuf>Generic text encoder tokenizer (Qwen3 for Z-Image)
decoder: Option<PathBuf>Stage B decoder weights (Wuerstchen only)
Implementations§
Trait Implementations§
Source§impl Clone for ModelPaths
impl Clone for ModelPaths
Source§fn clone(&self) -> ModelPaths
fn clone(&self) -> ModelPaths
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelPaths
impl RefUnwindSafe for ModelPaths
impl Send for ModelPaths
impl Sync for ModelPaths
impl Unpin for ModelPaths
impl UnsafeUnpin for ModelPaths
impl UnwindSafe for ModelPaths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more