pub struct BlockDenoiseConfig {Show 15 fields
pub temperature: f32,
pub block_length: usize,
pub steps: usize,
pub gen_length: usize,
pub top_p: Option<f32>,
pub top_k: Option<usize>,
pub eos_early_stop: bool,
pub minimal_topk: usize,
pub threshold: f32,
pub mask_id: u32,
pub eos_id: u32,
pub do_sample: bool,
pub predictive_offload_enabled: bool,
pub jump_steps: usize,
pub collect_stats: bool,
}Expand description
Block diffusion generation options (TIDE generate defaults).
Fields§
§temperature: f32§block_length: usize§steps: usize§gen_length: usize§top_p: Option<f32>§top_k: Option<usize>§eos_early_stop: bool§minimal_topk: usize§threshold: f32§mask_id: u32§eos_id: u32§do_sample: bool§predictive_offload_enabled: bool§jump_steps: usize§collect_stats: boolImplementations§
Source§impl BlockDenoiseConfig
impl BlockDenoiseConfig
pub fn to_generate_config(&self) -> GenerateConfig
Trait Implementations§
Source§impl Clone for BlockDenoiseConfig
impl Clone for BlockDenoiseConfig
Source§fn clone(&self) -> BlockDenoiseConfig
fn clone(&self) -> BlockDenoiseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockDenoiseConfig
impl Debug for BlockDenoiseConfig
Source§impl Default for BlockDenoiseConfig
impl Default for BlockDenoiseConfig
Source§fn default() -> BlockDenoiseConfig
fn default() -> BlockDenoiseConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockDenoiseConfig
impl RefUnwindSafe for BlockDenoiseConfig
impl Send for BlockDenoiseConfig
impl Sync for BlockDenoiseConfig
impl Unpin for BlockDenoiseConfig
impl UnsafeUnpin for BlockDenoiseConfig
impl UnwindSafe for BlockDenoiseConfig
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,
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