Module model_verification

Module model_verification 

Source
Expand description

Model verification service for integrity checking and update detection.

This service provides:

  • Integrity verification via SHA256 hash comparison against HuggingFace OIDs
  • Update detection by comparing local OIDs with remote repository state
  • Model repair by re-downloading corrupt or missing shards
  • Concurrency control to prevent conflicting operations on the same model

Structs§

ModelOperationLock
Concurrency control for model operations.
ModelVerificationService
Model verification service.
OperationGuard
RAII guard that automatically releases the operation lock when dropped.
ShardHealthReport
Health report for a single shard.
ShardUpdate
Update information for a single shard.
UpdateCheckResult
Result of checking for model updates.
UpdateDetails
Details about available updates.
VerificationProgress
Progress update during model verification.
VerificationReport
Complete verification report for a model.

Enums§

OperationType
Type of operation being performed on a model.
OverallHealth
Overall health status for a model.
ShardHealth
Health status of an individual shard after verification.
ShardProgress
Progress status for an individual shard verification.

Traits§

DownloadTriggerPort
Port trait for triggering downloads.
ModelFilesReaderPort
Port trait for accessing model files repository.