Struct Generation Params
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct GenerationParams {
pub temperature: Option<f64>,
pub max_tokens: Option<u64>,
pub top_p: Option<f64>,
pub stop: Option<Vec<String>>,
}
Normalized generation parameters across providers.
Fields
temperature: Option<f64>
Sampling temperature.
max_tokens: Option<u64>
Maximum number of tokens to generate.
top_p: Option<f64>
Nucleus sampling probability.
stop: Option<Vec<String>>
Stop sequences.
Trait Implementations
impl Clone for GenerationParams
impl Clone for GenerationParams
clone
fn clone(&self) -> GenerationParams
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for GenerationParams
impl Debug for GenerationParams
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl Default for GenerationParams
impl Default for GenerationParams
default
fn default() -> GenerationParams
impl<'de> Deserialize<'de> for GenerationParams
impl<'de> Deserialize<'de> for GenerationParams
deserialize
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenerationParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl PartialEq for GenerationParams
impl PartialEq for GenerationParams
eq
fn eq(&self, other: &GenerationParams) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for GenerationParams
impl Serialize for GenerationParams
serialize
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for GenerationParams
impl StructuralPartialEq for GenerationParams