pub struct GenerateRequest {Show 17 fields
pub model: ModelChoice,
pub prompt: String,
pub model_dir: Option<PathBuf>,
pub output_path: PathBuf,
pub inspect_only: bool,
pub backend: BackendChoice,
pub cfg_scale: f32,
pub length: usize,
pub ode_steps: usize,
pub lyrics: Option<String>,
pub tags: Option<String>,
pub topk: usize,
pub temperature: f32,
pub decode_only: bool,
pub frames_json: Option<PathBuf>,
pub decode_threads: Option<usize>,
pub decoder_seed: u64,
}Fields§
§model: ModelChoice§prompt: String§model_dir: Option<PathBuf>§output_path: PathBuf§inspect_only: bool§backend: BackendChoice§cfg_scale: f32§length: usize§ode_steps: usizeODE steps for HeartMula flow matching (lower = faster, 10 = default)
lyrics: Option<String>Lyrics prompt (alias for prompt)
Tags / style prompt
topk: usizeTop-k sampling for HeartMula token generation
temperature: f32Sampling temperature for HeartMula token generation
decode_only: boolDecode an existing frames JSON instead of generating tokens
frames_json: Option<PathBuf>Input frames JSON for decode-only mode
decode_threads: Option<usize>Number of worker threads to use for decode-only CPU decoding
decoder_seed: u64Seed for deterministic HeartCodec decoder latent initialization
Trait Implementations§
Source§impl Clone for GenerateRequest
impl Clone for GenerateRequest
Source§fn clone(&self) -> GenerateRequest
fn clone(&self) -> GenerateRequest
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 GenerateRequest
impl Debug for GenerateRequest
Source§impl<'de> Deserialize<'de> for GenerateRequest
impl<'de> Deserialize<'de> for GenerateRequest
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 GenerateRequest
impl PartialEq for GenerateRequest
Source§fn eq(&self, other: &GenerateRequest) -> bool
fn eq(&self, other: &GenerateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GenerateRequest
impl Serialize for GenerateRequest
impl StructuralPartialEq for GenerateRequest
Auto Trait Implementations§
impl Freeze for GenerateRequest
impl RefUnwindSafe for GenerateRequest
impl Send for GenerateRequest
impl Sync for GenerateRequest
impl Unpin for GenerateRequest
impl UnsafeUnpin for GenerateRequest
impl UnwindSafe for GenerateRequest
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
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
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