pub struct LocalModel {
pub model: String,
pub dimension: u32,
pub max_tokens: usize,
}Expand description
The local slot’s model.
Fields§
§model: StringThe model’s name; only LOCAL_MODEL is supported.
dimension: u32Output dimension; vectors are cut to it (MRL) and normalized again.
max_tokens: usizeContent tokens kept before the template is applied.
Trait Implementations§
Source§impl Clone for LocalModel
impl Clone for LocalModel
Source§impl Debug for LocalModel
impl Debug for LocalModel
Source§impl Default for LocalModel
impl Default for LocalModel
Source§impl<'de> Deserialize<'de> for LocalModel
impl<'de> Deserialize<'de> for LocalModel
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
impl Eq for LocalModel
Source§impl PartialEq for LocalModel
impl PartialEq for LocalModel
Source§impl Serialize for LocalModel
impl Serialize for LocalModel
impl StructuralPartialEq for LocalModel
Auto Trait Implementations§
impl Freeze for LocalModel
impl RefUnwindSafe for LocalModel
impl Send for LocalModel
impl Sync for LocalModel
impl Unpin for LocalModel
impl UnsafeUnpin for LocalModel
impl UnwindSafe for LocalModel
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