pub struct CompactModelMetadata {Show 18 fields
pub model_key: String,
pub context_length: u32,
pub vocab_size: u32,
pub embedding_size: u32,
pub head_count: u32,
pub layer_count: u32,
pub feed_forward_length: u32,
pub key_length: u32,
pub value_length: u32,
pub architecture: String,
pub tokenizer_model_name: String,
pub special_tokens: Vec<SpecialToken>,
pub rope_scale: f32,
pub rope_freq_base: f32,
pub is_moe: bool,
pub expert_count: u32,
pub used_expert_count: u32,
pub quantization_type: String,
}Fields§
§model_key: String§context_length: u32§vocab_size: u32§embedding_size: u32§head_count: u32§layer_count: u32§feed_forward_length: u32§key_length: u32§value_length: u32§architecture: String§tokenizer_model_name: String§special_tokens: Vec<SpecialToken>§rope_scale: f32§rope_freq_base: f32§is_moe: bool§expert_count: u32§used_expert_count: u32§quantization_type: StringGGUF quantization type string (e.g. “Q4_K_M”)
Trait Implementations§
Source§impl Clone for CompactModelMetadata
impl Clone for CompactModelMetadata
Source§fn clone(&self) -> CompactModelMetadata
fn clone(&self) -> CompactModelMetadata
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 CompactModelMetadata
impl Debug for CompactModelMetadata
Source§impl Default for CompactModelMetadata
impl Default for CompactModelMetadata
Source§fn default() -> CompactModelMetadata
fn default() -> CompactModelMetadata
Returns the “default value” for a type. Read more
Source§impl Message for CompactModelMetadata
impl Message for CompactModelMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CompactModelMetadata
impl PartialEq for CompactModelMetadata
Source§fn eq(&self, other: &CompactModelMetadata) -> bool
fn eq(&self, other: &CompactModelMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompactModelMetadata
Auto Trait Implementations§
impl Freeze for CompactModelMetadata
impl RefUnwindSafe for CompactModelMetadata
impl Send for CompactModelMetadata
impl Sync for CompactModelMetadata
impl Unpin for CompactModelMetadata
impl UnsafeUnpin for CompactModelMetadata
impl UnwindSafe for CompactModelMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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