pub struct ModelCertification {Show 21 fields
pub model_id: String,
pub family: String,
pub parameters: String,
pub size_category: SizeCategory,
pub status: CertificationStatus,
pub mqs_score: u32,
pub grade: String,
pub certified_tier: String,
pub last_certified: Option<DateTime<Utc>>,
pub g1: bool,
pub g2: bool,
pub g3: bool,
pub g4: bool,
pub tps_gguf_cpu: Option<f64>,
pub tps_gguf_gpu: Option<f64>,
pub tps_apr_cpu: Option<f64>,
pub tps_apr_gpu: Option<f64>,
pub tps_st_cpu: Option<f64>,
pub tps_st_gpu: Option<f64>,
pub provenance_verified: bool,
pub kernel_proof_ref: Option<String>,
}Expand description
Model certification record.
Contains certification data for a single model including gateway status and throughput measurements per format. The four gateway bools (g1-g4) are required for the certification protocol.
Fields§
§model_id: StringHuggingFace model ID.
family: StringModel family (e.g., qwen-coder, llama).
parameters: StringParameter count (e.g., “1.5B”).
size_category: SizeCategorySize category.
status: CertificationStatusCertification status.
mqs_score: u32Model Qualification Score (0-1000).
grade: StringLetter grade.
certified_tier: StringHighest passing tier.
last_certified: Option<DateTime<Utc>>Last certification timestamp.
g1: boolGateway 1 (load) status.
g2: boolGateway 2 (inference) status.
g3: boolGateway 3 (stability) status.
g4: boolGateway 4 (quality) status.
tps_gguf_cpu: Option<f64>Throughput in tokens/sec for GGUF format (CPU).
tps_gguf_gpu: Option<f64>Throughput in tokens/sec for GGUF format (GPU).
tps_apr_cpu: Option<f64>Throughput in tokens/sec for APR format (CPU).
tps_apr_gpu: Option<f64>Throughput in tokens/sec for APR format (GPU).
tps_st_cpu: Option<f64>Throughput in tokens/sec for SafeTensors format (CPU).
tps_st_gpu: Option<f64>Throughput in tokens/sec for SafeTensors format (GPU).
provenance_verified: boolProvenance verified (PMAT-PROV-001).
kernel_proof_ref: Option<String>Kernel proof reference model (for dim-smoke tier).
Implementations§
Source§impl ModelCertification
impl ModelCertification
Sourcepub fn short_name(&self) -> &str
pub fn short_name(&self) -> &str
Get the short model name (without org prefix).
Sourcepub fn markdown_link(&self) -> String
pub fn markdown_link(&self) -> String
Get markdown link for this model.
Sourcepub const fn gateway_symbol(
passed: bool,
status: CertificationStatus,
) -> &'static str
pub const fn gateway_symbol( passed: bool, status: CertificationStatus, ) -> &'static str
Get gateway symbol for display.
Sourcepub fn param_count(&self) -> f64
pub fn param_count(&self) -> f64
Parse numeric parameter count for sorting.