Skip to main content

verify_model_hash

Function verify_model_hash 

Source
pub fn verify_model_hash() -> Result<(), TokenizerError>
Expand description

Verifies that the embedded model’s SHA-256 hash matches the expected value.

Useful in tests and CI to ensure the embedded model has not been corrupted.