pub struct GenerateRequest {Show 26 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,
pub bpm: Option<f32>,
pub key_scale: Option<String>,
pub time_signature: Option<String>,
pub acestep_lm: AceStepLmSize,
pub midi_length_seconds: f32,
pub midi_seed: u64,
pub midi_max_tokens: usize,
pub midi_top_p: f32,
pub output_path_explicit: bool,
}Fields§
§model: ModelChoice§prompt: String§model_dir: Option<PathBuf>§output_path: PathBuf§inspect_only: bool§backend: BackendChoice§cfg_scale: f32§length: usize§ode_steps: usize§lyrics: Option<String>§topk: usize§temperature: f32§decode_only: bool§frames_json: Option<PathBuf>§decode_threads: Option<usize>§decoder_seed: u64§bpm: Option<f32>Tempo in beats per minute (ACE-Step metadata conditioning).
key_scale: Option<String>Musical key, e.g. “C major” or “A minor” (ACE-Step metadata conditioning).
time_signature: Option<String>Time signature formatted as “N/D”, e.g. “4/4” (ACE-Step metadata conditioning).
acestep_lm: AceStepLmSizeACE-Step turbo 5 Hz LM planner size.
midi_length_seconds: f32Text-to-MIDI: generated length in seconds.
midi_seed: u64Text-to-MIDI: seed for deterministic generation.
midi_max_tokens: usizeText-to-MIDI / MIDI-LLM: maximum number of music tokens to generate.
midi_top_p: f32MIDI-LLM: top-p nucleus-sampling threshold.
output_path_explicit: boolWhether the output path was explicitly set by the user.
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§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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