pub struct ModelCliDefaults {
pub cfg_scale: f32,
pub steps: u32,
pub width: u32,
pub height: u32,
pub sampling_method: Option<String>,
pub flow_shift: Option<f32>,
pub zero_cond_t: Option<bool>,
pub offload_to_cpu: Option<bool>,
pub context_size: Option<u32>,
pub chat_template_kwargs: Option<Map<String, Value>>,
pub mmap: Option<bool>,
pub max_vram_gib: Option<f32>,
}Fields§
§cfg_scale: f32§steps: u32§width: u32§height: u32§sampling_method: Option<String>§flow_shift: Option<f32>--flow-shift for Flow models (SD3.x / WAN / Qwen-Image). Model-level constant.
zero_cond_t: Option<bool>Qwen-Image zero-cond-t, mandatory for Qwen-Image edit quality. Emitted as
--model-args qwen_image_zero_cond_t=true (sd.cpp master-9xx dropped the dedicated flag).
offload_to_cpu: Option<bool>--offload-to-cpu — keep weights in RAM, stream to VRAM, so a large model fits a small card.
context_size: Option<u32>LLM context window in tokens (the KV-cache size).
chat_template_kwargs: Option<Map<String, Value>>LLM chat-template variables every request gets unless it overrides
them (e.g. {"enable_thinking": false}).
mmap: Option<bool>--mmap — memory-map the weights, so offloaded models stream without a RAM copy.
max_vram_gib: Option<f32>--max-vram <GiB> — device budget for managed weights and buffers, so a large model shares
the card with other tenants (pairs with offload_to_cpu).
Trait Implementations§
Source§impl Clone for ModelCliDefaults
impl Clone for ModelCliDefaults
Source§impl Debug for ModelCliDefaults
impl Debug for ModelCliDefaults
Source§impl Default for ModelCliDefaults
impl Default for ModelCliDefaults
Source§impl<'de> Deserialize<'de> for ModelCliDefaults
impl<'de> Deserialize<'de> for ModelCliDefaults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelCliDefaults
impl PartialEq for ModelCliDefaults
Source§impl Serialize for ModelCliDefaults
impl Serialize for ModelCliDefaults
impl StructuralPartialEq for ModelCliDefaults
Auto Trait Implementations§
impl Freeze for ModelCliDefaults
impl RefUnwindSafe for ModelCliDefaults
impl Send for ModelCliDefaults
impl Sync for ModelCliDefaults
impl Unpin for ModelCliDefaults
impl UnsafeUnpin for ModelCliDefaults
impl UnwindSafe for ModelCliDefaults
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more