#[non_exhaustive]pub struct Artifact {
pub kind: ArtifactKind,
pub format: ArtifactFormat,
pub architecture: Option<String>,
pub base_model: Option<String>,
pub info: Option<GgufInfo>,
pub rank: Option<u32>,
pub alpha: Option<f32>,
pub files: Vec<ArtifactFile>,
pub revision: String,
}Expand description
What inspect found.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: ArtifactKind§format: ArtifactFormat§architecture: Option<String>GGUF general.architecture, or the first of config.json’s architectures. None for
PEFT adapters (their config doesn’t say).
base_model: Option<String>The base model as a Hub id: the GGUF header’s general.base_model, PEFT’s
base_model_name_or_path, or config.json’s _name_or_path, when they name one.
info: Option<GgufInfo>A GGUF model’s KV shape, when its header has it.
rank: Option<u32>PEFT r.
alpha: Option<f32>GGUF adapter.lora.alpha or PEFT lora_alpha.
files: Vec<ArtifactFile>Split GGUF parts in order; otherwise sorted by path.
revision: StringSee revision.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Artifact
impl<'de> Deserialize<'de> for Artifact
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
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Forget for Artifact
impl Freeze for Artifact
impl Move for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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