pub struct ModelInspectionReport {Show 23 fields
pub path: PathBuf,
pub artifact_format: ArtifactFormat,
pub model_family: Option<String>,
pub architecture: Option<String>,
pub gguf_versions: Option<Vec<u32>>,
pub checkpoint_shards: Option<usize>,
pub tensor_count: Option<usize>,
pub resources: ModelResourceProfile,
pub tensor_encodings: Vec<ArtifactTensorEncoding>,
pub expected_modalities: Vec<ArtifactModality>,
pub container: InspectionReadiness,
pub architecture_support: InspectionReadiness,
pub structural_binding: InspectionReadiness,
pub model_loadability: InspectionReadiness,
pub requested_load: InspectionReadiness,
pub text_generation: InspectionReadiness,
pub tokenizer: InspectionReadiness,
pub chat_template: InspectionReadiness,
pub semantic_streaming: InspectionReadiness,
pub native_tools: InspectionReadiness,
pub multimodal: InspectionReadiness,
pub requirements: Vec<InspectionRequirement>,
pub issues: Vec<InspectionIssue>,
}Expand description
Structured pre-preparation compatibility report for a local artifact.
Fields§
§path: PathBufSubmitted local artifact path.
artifact_format: ArtifactFormatDetected artifact container.
model_family: Option<String>Resolved high-level model family.
architecture: Option<String>Submitted model type or architecture value.
gguf_versions: Option<Vec<u32>>GGUF versions observed across validated shards.
checkpoint_shards: Option<usize>Number of checkpoint payload shards.
tensor_count: Option<usize>Number of cataloged logical tensors.
resources: ModelResourceProfileHeader-only resource accounting.
tensor_encodings: Vec<ArtifactTensorEncoding>Distinct storage encodings observed in headers.
expected_modalities: Vec<ArtifactModality>Expected input modalities.
container: InspectionReadinessContainer/config/header validity.
architecture_support: InspectionReadinessWhether architecture dispatch selects a backend implementation.
structural_binding: InspectionReadinessExact header/catalog binding to that implementation.
model_loadability: InspectionReadinessModel preparation readiness independent of text sidecars.
requested_load: InspectionReadinessCompatibility with backend preparation options.
text_generation: InspectionReadinessCombined model and tokenizer readiness for raw text generation.
tokenizer: InspectionReadinessTokenizer reconstruction/readiness.
chat_template: InspectionReadinessChat-template availability and parseability.
semantic_streaming: InspectionReadinessBehavioral structured semantic-streaming readiness.
native_tools: InspectionReadinessBehavioral native-tool readiness.
multimodal: InspectionReadinessProcessor/projector readiness for non-text modalities.
requirements: Vec<InspectionRequirement>Discovered sidecar and request requirements.
issues: Vec<InspectionIssue>Structured rejection reasons, warnings, and limitations.
Implementations§
Source§impl ModelInspectionReport
impl ModelInspectionReport
Sourcepub fn unverified(path: &Path, artifact_format: ArtifactFormat) -> Self
pub fn unverified(path: &Path, artifact_format: ArtifactFormat) -> Self
Creates an initially unverified report for backend-specific enrichment.
Sourcepub fn is_loadable(&self) -> bool
pub fn is_loadable(&self) -> bool
Returns whether artifact and requested backend policy passed preflight.
Sourcepub fn issue(
&mut self,
code: InspectionIssueCode,
severity: InspectionSeverity,
detail: impl Into<String>,
path: Option<PathBuf>,
)
pub fn issue( &mut self, code: InspectionIssueCode, severity: InspectionSeverity, detail: impl Into<String>, path: Option<PathBuf>, )
Adds a structured issue with an optional artifact path.
Trait Implementations§
Source§impl Clone for ModelInspectionReport
impl Clone for ModelInspectionReport
Source§fn clone(&self) -> ModelInspectionReport
fn clone(&self) -> ModelInspectionReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more