pub struct GgufCompactMeta {Show 15 fields
pub architecture: String,
pub context_length: u32,
pub vocab_size: u32,
pub embedding_size: u32,
pub head_count: u32,
pub kv_head_count: u32,
pub layer_count: u32,
pub feed_forward_length: u32,
pub key_length: u32,
pub value_length: u32,
pub tokenizer_model_name: String,
pub rope_scale: f32,
pub rope_freq_base: f32,
pub expert_count: u32,
pub expert_used_count: u32,
}Fields§
§architecture: String§context_length: u32§vocab_size: u32§embedding_size: u32§head_count: u32§kv_head_count: u32§layer_count: u32§feed_forward_length: u32§key_length: u32§value_length: u32§tokenizer_model_name: String§rope_scale: f32§rope_freq_base: f32§expert_count: u32§expert_used_count: u32Implementations§
Source§impl GgufCompactMeta
impl GgufCompactMeta
pub fn effective_kv_head_count(&self) -> Option<u32>
pub fn k_cache_bytes_per_token_f16(&self) -> Option<u64>
pub fn v_cache_bytes_per_token_f16(&self) -> Option<u64>
pub fn kv_cache_bytes_per_token_f16(&self) -> Option<u64>
Trait Implementations§
Source§impl Clone for GgufCompactMeta
impl Clone for GgufCompactMeta
Source§fn clone(&self) -> GgufCompactMeta
fn clone(&self) -> GgufCompactMeta
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 GgufCompactMeta
impl Debug for GgufCompactMeta
Source§impl Default for GgufCompactMeta
impl Default for GgufCompactMeta
Source§fn default() -> GgufCompactMeta
fn default() -> GgufCompactMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GgufCompactMeta
impl RefUnwindSafe for GgufCompactMeta
impl Send for GgufCompactMeta
impl Sync for GgufCompactMeta
impl Unpin for GgufCompactMeta
impl UnsafeUnpin for GgufCompactMeta
impl UnwindSafe for GgufCompactMeta
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