pub struct ModelConfiguration { /* private fields */ }Expand description
Resolved portable model configuration.
Implementations§
Source§impl ModelConfiguration
impl ModelConfiguration
Sourcepub fn new(
declared_model_type: impl Into<String>,
effective_model_type: impl Into<String>,
family: impl Into<String>,
loading_protocol: LoadingProtocol,
json: Option<Value>,
) -> Result<Self, ArtifactError>
pub fn new( declared_model_type: impl Into<String>, effective_model_type: impl Into<String>, family: impl Into<String>, loading_protocol: LoadingProtocol, json: Option<Value>, ) -> Result<Self, ArtifactError>
Creates validated portable model-configuration facts.
Sourcepub fn declared_model_type(&self) -> &str
pub fn declared_model_type(&self) -> &str
Submitted outer model type or GGUF architecture.
Sourcepub fn effective_model_type(&self) -> &str
pub fn effective_model_type(&self) -> &str
Nested model type selected for architecture dispatch.
Sourcepub const fn loading_protocol(&self) -> LoadingProtocol
pub const fn loading_protocol(&self) -> LoadingProtocol
Neutral loading protocol selected by the architecture registry.
Trait Implementations§
Source§impl Clone for ModelConfiguration
impl Clone for ModelConfiguration
Source§fn clone(&self) -> ModelConfiguration
fn clone(&self) -> ModelConfiguration
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 ModelConfiguration
impl Debug for ModelConfiguration
Source§impl<'de> Deserialize<'de> for ModelConfiguration
impl<'de> Deserialize<'de> for ModelConfiguration
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
Source§impl PartialEq for ModelConfiguration
impl PartialEq for ModelConfiguration
Source§impl Serialize for ModelConfiguration
impl Serialize for ModelConfiguration
impl StructuralPartialEq for ModelConfiguration
Auto Trait Implementations§
impl Freeze for ModelConfiguration
impl RefUnwindSafe for ModelConfiguration
impl Send for ModelConfiguration
impl Sync for ModelConfiguration
impl Unpin for ModelConfiguration
impl UnsafeUnpin for ModelConfiguration
impl UnwindSafe for ModelConfiguration
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