pub struct HfModelConfig {
pub model_id: String,
pub loader: Loader,
pub gguf_file: Option<String>,
pub chat_template: Option<String>,
}Expand description
Custom HuggingFace model configuration for local inference.
Allows users to run any HuggingFace model not in the built-in registry. Memory and quantization are auto-selected at runtime based on system RAM.
Fields§
§model_id: StringHuggingFace repository ID (e.g. "myorg/MyModel-7B-GGUF").
loader: LoaderWhich mistralrs builder to use.
gguf_file: Option<String>Explicit GGUF filename (required for GGUF models without a standard naming convention).
chat_template: Option<String>Custom chat template override.
Trait Implementations§
Source§impl Clone for HfModelConfig
impl Clone for HfModelConfig
Source§fn clone(&self) -> HfModelConfig
fn clone(&self) -> HfModelConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HfModelConfig
impl Debug for HfModelConfig
Source§impl<'de> Deserialize<'de> for HfModelConfig
impl<'de> Deserialize<'de> for HfModelConfig
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 HfModelConfig
impl RefUnwindSafe for HfModelConfig
impl Send for HfModelConfig
impl Sync for HfModelConfig
impl Unpin for HfModelConfig
impl UnsafeUnpin for HfModelConfig
impl UnwindSafe for HfModelConfig
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