Skip to main content

primary_weight_bytes

Function primary_weight_bytes 

Source
pub fn primary_weight_bytes(spec: &ModelSpec) -> Result<WeightBytes, String>
Expand description

The bytes of a model’s primary (first) weight file.

Resolved as described in the module docs: supplied bytes (provide_weights) first, then (native) $QSM_MODEL_DIR, the cache, and a download with the download feature. Returns a human-readable error if the file is in none of them.