feat(recipes): add cache version counter to model scanners

This commit is contained in:
Will Miao
2026-08-08 21:57:36 +08:00
parent 007883b7d1
commit 3e1216e9bc
5 changed files with 422 additions and 0 deletions

View File

@@ -242,6 +242,7 @@ class CheckpointScanner(ModelScanner):
if entry.get("file_path") == file_path:
entry["sha256"] = sha256.lower()
entry["hash_status"] = "completed"
self.bump_cache_version()
break
logger.info(f"Hash calculated for checkpoint: {file_path}")