Skip to main content

ModelCertification

Struct ModelCertification 

Source
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: String

HuggingFace model ID.

§family: String

Model family (e.g., qwen-coder, llama).

§parameters: String

Parameter count (e.g., “1.5B”).

§size_category: SizeCategory

Size category.

§status: CertificationStatus

Certification status.

§mqs_score: u32

Model Qualification Score (0-1000).

§grade: String

Letter grade.

§certified_tier: String

Highest passing tier.

§last_certified: Option<DateTime<Utc>>

Last certification timestamp.

§g1: bool

Gateway 1 (load) status.

§g2: bool

Gateway 2 (inference) status.

§g3: bool

Gateway 3 (stability) status.

§g4: bool

Gateway 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: bool

Provenance verified (PMAT-PROV-001).

§kernel_proof_ref: Option<String>

Kernel proof reference model (for dim-smoke tier).

Implementations§

Source§

impl ModelCertification

Source

pub fn short_name(&self) -> &str

Get the short model name (without org prefix).

Source

pub fn hf_url(&self) -> String

Get HuggingFace URL for this model.

Get markdown link for this model.

Source

pub const fn gateway_symbol( passed: bool, status: CertificationStatus, ) -> &'static str

Get gateway symbol for display.

Source

pub fn param_count(&self) -> f64

Parse numeric parameter count for sorting.

Trait Implementations§

Source§

impl Clone for ModelCertification

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ModelCertification

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.