pub struct CatalogModel {Show 16 fields
pub id: String,
pub family: String,
pub params: String,
pub architecture: Architecture,
pub active_params: Option<String>,
pub license: String,
pub open_weight: bool,
pub context_length: f64,
pub capabilities: Vec<String>,
pub release_date: Option<String>,
pub added_at: Option<String>,
pub provenance: EntryProvenance,
pub source: Source,
pub quantizations: Vec<Quantization>,
pub kv_bytes_per_token: Option<f64>,
pub benchmark_proxy: Option<f64>,
}Fields§
§id: String§family: String§params: String§architecture: Architecture§active_params: Option<String>§license: String§open_weight: bool§context_length: f64§capabilities: Vec<String>§release_date: Option<String>§added_at: Option<String>§provenance: EntryProvenance§source: Source§quantizations: Vec<Quantization>§kv_bytes_per_token: Option<f64>§benchmark_proxy: Option<f64>Implementations§
Source§impl CatalogModel
impl CatalogModel
pub fn supports_backend(&self, backend: &str) -> bool
Source§impl CatalogModel
impl CatalogModel
pub fn recency(&self) -> Option<(&str, RecencyBasis)>
pub fn recency_label(&self) -> String
pub fn sizing(&self) -> Model
Sourcepub fn with_kv_cache(&self, kind: KvCacheType) -> Result<Self, ValidationError>
pub fn with_kv_cache(&self, kind: KvCacheType) -> Result<Self, ValidationError>
Re-sizes the sourced f16 KV rate for a cache type; unknown geometry stays unknown.
Trait Implementations§
Source§impl Clone for CatalogModel
impl Clone for CatalogModel
Source§impl Debug for CatalogModel
impl Debug for CatalogModel
Source§impl<'de> Deserialize<'de> for CatalogModel
impl<'de> Deserialize<'de> for CatalogModel
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 CatalogModel
impl RefUnwindSafe for CatalogModel
impl Send for CatalogModel
impl Sync for CatalogModel
impl Unpin for CatalogModel
impl UnsafeUnpin for CatalogModel
impl UnwindSafe for CatalogModel
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