mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-10-20 16:07:17 +02:00
The runtime's _weights_dir resolves the Hub snapshot offline through an inline allow_patterns list, so a deployment that pre-caches the snapshot for HF_HUB_OFFLINE=1 had to re-list the files by hand and silently drifted when a release added one: the offline resolution then failed on a four-fifths-present cache even though every missing piece had its own fallback. Export the exact runtime request list as one public name, use it in _weights_dir, and pin the seam with a test that captures the snapshot_download call. Document the contract in photo-classify.md and module-internals.md.