pub struct EmbeddedConfig {
pub model_path: String,
pub model_type: String,
pub context_length: Option<u32>,
pub max_tokens: Option<u32>,
pub temperature: Option<f32>,
pub gpu_layers: Option<u32>,
pub threads: Option<u32>,
}Fields§
§model_path: String§model_type: String§context_length: Option<u32>§max_tokens: Option<u32>§temperature: Option<f32>§gpu_layers: Option<u32>§threads: Option<u32>Trait Implementations§
Source§impl Clone for EmbeddedConfig
impl Clone for EmbeddedConfig
Source§fn clone(&self) -> EmbeddedConfig
fn clone(&self) -> EmbeddedConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EmbeddedConfig
impl Debug for EmbeddedConfig
Source§impl<'de> Deserialize<'de> for EmbeddedConfig
impl<'de> Deserialize<'de> for EmbeddedConfig
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
Auto Trait Implementations§
impl Freeze for EmbeddedConfig
impl RefUnwindSafe for EmbeddedConfig
impl Send for EmbeddedConfig
impl Sync for EmbeddedConfig
impl Unpin for EmbeddedConfig
impl UnwindSafe for EmbeddedConfig
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