pub struct LLMResource {Show 17 fields
pub id: String,
pub name: String,
pub provider: Option<String>,
pub format: String,
pub quantization: Option<String>,
pub size_mb: Option<u32>,
pub download: DownloadInfo,
pub license: Option<String>,
pub recommended_for: Option<Vec<String>>,
pub ram_estimate_mb: Option<u32>,
pub tags: Option<Vec<String>>,
pub last_verified: Option<String>,
pub notes: Option<String>,
pub modality: Option<String>,
pub vision_projector: Option<DownloadInfo>,
pub architecture: Option<String>,
pub context_window: Option<u32>,
}Expand description
A downloadable LLM / model package (primarily GGUF).
Fields§
§id: String§name: String§provider: Option<String>§format: StringFile format — always "gguf" for Qualia-compatible models.
quantization: Option<String>Quantization level (e.g. "Q4_K_M", "Q8_0").
size_mb: Option<u32>Compressed file size in MB.
download: DownloadInfo§license: Option<String>§recommended_for: Option<Vec<String>>§ram_estimate_mb: Option<u32>Peak RAM required (model + runtime overhead) in MB.
last_verified: Option<String>§notes: Option<String>§modality: Option<String>text (default) or multimodal (requires vision_projector).
vision_projector: Option<DownloadInfo>Vision / CLIP projector GGUF paired with the language model.
architecture: Option<String>Architecture family for multimodal routing: llava, qwen2vl, smolvlm, gemma3.
context_window: Option<u32>Recommended decode context window in tokens.
Implementations§
Source§impl LLMResource
impl LLMResource
pub fn is_multimodal(&self) -> bool
pub fn effective_context_window(&self) -> u32
Sourcepub fn to_quins(&self) -> Vec<NQuin>
pub fn to_quins(&self) -> Vec<NQuin>
Encode this catalog entry as a set of NQuins.
Returns Quins using the catalog:llm context graph. Vec allocation is
intentional — this runs once at catalog load, not in a hot evaluator loop.
Sourcepub fn provenance_quin(&self, timestamp_unix: u64, local_path: &str) -> NQuin
pub fn provenance_quin(&self, timestamp_unix: u64, local_path: &str) -> NQuin
Generate a provenance NQuin recording a completed download event.
Written to the WAL immediately after the file is saved to disk.
Sourcepub fn source_url_quin(&self) -> Option<NQuin>
pub fn source_url_quin(&self) -> Option<NQuin>
Generate a supplementary provenance Quin recording the source URL.
Sourcepub fn to_capability_profile(&self, local_path: &str) -> CapabilityProfile
pub fn to_capability_profile(&self, local_path: &str) -> CapabilityProfile
Build a CapabilityProfile for this model, bound to its local file path.
The profile ID is deterministic: q_hash("profile:{id}"), so callers
can look it up without storing a separate reference.
pub fn to_capability_profile_with_projector( &self, local_path: &str, vision_projector_path: Option<&str>, ) -> CapabilityProfile
Trait Implementations§
Source§impl Clone for LLMResource
impl Clone for LLMResource
Source§fn clone(&self) -> LLMResource
fn clone(&self) -> LLMResource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LLMResource
impl Debug for LLMResource
Source§impl<'de> Deserialize<'de> for LLMResource
impl<'de> Deserialize<'de> for LLMResource
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>,
Auto Trait Implementations§
impl Freeze for LLMResource
impl RefUnwindSafe for LLMResource
impl Send for LLMResource
impl Sync for LLMResource
impl Unpin for LLMResource
impl UnsafeUnpin for LLMResource
impl UnwindSafe for LLMResource
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more