pub struct ModelProfile {Show 13 fields
pub id: &'static str,
pub label: &'static str,
pub provider: ProviderKind,
pub model_ref: &'static str,
pub quantization: &'static str,
pub roles: Vec<ModelRole>,
pub context_tokens: u32,
pub estimated_weights_mib: u64,
pub estimated_kv_mib: u64,
pub runtime_margin_mib: u64,
pub concurrency: ConcurrencyClass,
pub unload_strategy: UnloadStrategy,
pub notes: &'static str,
}Fields§
§id: &'static str§label: &'static str§provider: ProviderKind§model_ref: &'static str§quantization: &'static str§roles: Vec<ModelRole>§context_tokens: u32§estimated_weights_mib: u64§estimated_kv_mib: u64§runtime_margin_mib: u64§concurrency: ConcurrencyClass§unload_strategy: UnloadStrategy§notes: &'static strImplementations§
Source§impl ModelProfile
impl ModelProfile
pub fn estimated_total_mib(&self) -> u64
pub fn supports_role(&self, role: &ModelRole) -> bool
Trait Implementations§
Source§impl Clone for ModelProfile
impl Clone for ModelProfile
Source§fn clone(&self) -> ModelProfile
fn clone(&self) -> ModelProfile
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 ModelProfile
impl Debug for ModelProfile
impl Eq for ModelProfile
Source§impl PartialEq for ModelProfile
impl PartialEq for ModelProfile
Source§impl Serialize for ModelProfile
impl Serialize for ModelProfile
impl StructuralPartialEq for ModelProfile
Auto Trait Implementations§
impl Freeze for ModelProfile
impl RefUnwindSafe for ModelProfile
impl Send for ModelProfile
impl Sync for ModelProfile
impl Unpin for ModelProfile
impl UnsafeUnpin for ModelProfile
impl UnwindSafe for ModelProfile
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