pub struct CertificationRow {Show 20 fields
pub model_id: String,
pub family: String,
pub parameters: String,
pub size_category: SizeCategory,
pub status: ModelStatus,
pub mqs_score: u32,
pub grade: String,
pub certified_tier: String,
pub last_certified: 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,
}Expand description
A single row from the certification lookup table (models.csv).
This struct represents the complete certification state for a model variant, including MQS score, gateway results, and performance metrics.
The boolean fields (g1-g4, provenance_verified) match the CSV schema and represent gateway pass/fail state directly from test results.
Fields§
§model_id: StringHuggingFace model ID (e.g., “Qwen/Qwen2.5-Coder-0.5B-Instruct”)
family: StringModel family (e.g., “qwen-coder”, “llama”, “mistral”)
parameters: StringParameter count string (e.g., “0.5B”, “1.5B”, “7B”)
size_category: SizeCategorySize category for resource scheduling
status: ModelStatusCertification status
mqs_score: u32Model Qualification Score (0-1000)
grade: StringLetter grade (A, B, C, D, F, or “-” for ungraded)
certified_tier: StringHighest certified tier (quick, smoke, mvp, full, or “none”)
last_certified: DateTime<Utc>Last certification timestamp (ISO8601)
g1: boolG1: Model loads successfully
g2: boolG2: Basic inference works
g3: boolG3: No crashes or panics
g4: boolG4: Output is not garbage
tps_gguf_cpu: Option<f64>GGUF format, CPU backend
tps_gguf_gpu: Option<f64>GGUF format, GPU backend
tps_apr_cpu: Option<f64>APR format, CPU backend
tps_apr_gpu: Option<f64>APR format, GPU backend
tps_st_cpu: Option<f64>SafeTensors format, CPU backend
tps_st_gpu: Option<f64>SafeTensors format, GPU backend
provenance_verified: boolWhether model provenance has been verified
Implementations§
Source§impl CertificationRow
impl CertificationRow
Sourcepub fn new(model_id: impl Into<String>, family: impl Into<String>) -> Self
pub fn new(model_id: impl Into<String>, family: impl Into<String>) -> Self
Create a new certification row for a model.
Sourcepub const fn all_gateways_passed(&self) -> bool
pub const fn all_gateways_passed(&self) -> bool
Check if all gateway checks passed.
Sourcepub fn derive_status(&self) -> ModelStatus
pub fn derive_status(&self) -> ModelStatus
Derive status from MQS score and gateway results.
Follows the specification:
- CERTIFIED: MQS >= 800 AND all gateways passed
- BLOCKED: otherwise
Sourcepub fn derive_grade(&self) -> String
pub fn derive_grade(&self) -> String
Derive grade from MQS score.
Grade thresholds:
- A: 900-1000
- B: 800-899
- C: 600-799
- D: 400-599
- F: 0-399
Trait Implementations§
Source§impl Clone for CertificationRow
impl Clone for CertificationRow
Source§fn clone(&self) -> CertificationRow
fn clone(&self) -> CertificationRow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CertificationRow
impl Debug for CertificationRow
Source§impl Default for CertificationRow
impl Default for CertificationRow
Source§impl<'de> Deserialize<'de> for CertificationRow
impl<'de> Deserialize<'de> for CertificationRow
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 CertificationRow
impl RefUnwindSafe for CertificationRow
impl Send for CertificationRow
impl Sync for CertificationRow
impl Unpin for CertificationRow
impl UnwindSafe for CertificationRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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