Struct chat_flame_backend::api::model::GenerateParameters
source · pub struct GenerateParameters {Show 16 fields
pub best_of: Option<i32>,
pub decoder_input_details: bool,
pub details: bool,
pub do_sample: bool,
pub max_new_tokens: Option<i32>,
pub repetition_penalty: Option<f32>,
pub return_full_text: Option<bool>,
pub seed: Option<i64>,
pub stop: Vec<String>,
pub temperature: Option<f64>,
pub top_k: Option<i32>,
pub top_n_tokens: Option<i32>,
pub top_p: Option<f64>,
pub truncate: Option<i32>,
pub typical_p: Option<f32>,
pub watermark: bool,
}
Fields§
§best_of: Option<i32>
§decoder_input_details: bool
§details: bool
§do_sample: bool
§max_new_tokens: Option<i32>
§repetition_penalty: Option<f32>
§return_full_text: Option<bool>
§seed: Option<i64>
§stop: Vec<String>
§temperature: Option<f64>
§top_k: Option<i32>
§top_n_tokens: Option<i32>
§top_p: Option<f64>
§truncate: Option<i32>
§typical_p: Option<f32>
§watermark: bool
Trait Implementations§
source§impl Debug for GenerateParameters
impl Debug for GenerateParameters
source§impl<'de> Deserialize<'de> for GenerateParameters
impl<'de> Deserialize<'de> for GenerateParameters
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 Serialize for GenerateParameters
impl Serialize for GenerateParameters
Auto Trait Implementations§
impl RefUnwindSafe for GenerateParameters
impl Send for GenerateParameters
impl Sync for GenerateParameters
impl Unpin for GenerateParameters
impl UnwindSafe for GenerateParameters
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