Skip to main content

ModelRecipe

Trait ModelRecipe 

Source
pub trait ModelRecipe {
    // Required methods
    fn name(&self) -> &str;
    fn assemble(&self) -> ModelFlow;
}
Expand description

Assemble a ModelFlow from config — use for arch-specific presets (LLaMA, Qwen, FLUX, …).

Recipes return an unbuilt flow so callers can still .raw_stage(), .custom(), or .patch() before build().

Required Methods§

Source

fn name(&self) -> &str

Source

fn assemble(&self) -> ModelFlow

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> ModelRecipe for F
where F: Fn() -> ModelFlow,