pub struct HfOrigin<'a> {
pub repo_id: &'a str,
pub commit_sha: &'a str,
pub hf_tags: &'a [String],
pub quantization_fallback: Quantization,
pub file_paths: Option<&'a [PathBuf]>,
pub published_sampling: Option<&'a InferenceConfig>,
}Expand description
HuggingFace-specific inputs to ModelOrigin::HuggingFace.
Fields§
§repo_id: &'a str§commit_sha: &'a str§quantization_fallback: QuantizationUsed when the GGUF header declares no quantization.
file_paths: Option<&'a [PathBuf]>Ordered file paths for sharded models.
published_sampling: Option<&'a InferenceConfig>The model author’s own recipe, if one was fetched from the base repo.
None on every path that could not or did not look — no network, a
gated repo, a repo publishing no generation_config.json, or a
local-file import, which has no repo to ask. All of those fall back to
the reasoning tag guess exactly as before, which is why this is an
Option rather than a result carrying a reason: by the time it reaches
here the reason has already been logged and the decision is the same.
Auto Trait Implementations§
impl<'a> Freeze for HfOrigin<'a>
impl<'a> RefUnwindSafe for HfOrigin<'a>
impl<'a> Send for HfOrigin<'a>
impl<'a> Sync for HfOrigin<'a>
impl<'a> Unpin for HfOrigin<'a>
impl<'a> UnsafeUnpin for HfOrigin<'a>
impl<'a> UnwindSafe for HfOrigin<'a>
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