Files
Dobromir Popov 2868fc0d56 fix: tracker must not advertise incomplete snapshot as a full model source
files_for_layer_range() silently dropped required weight files that were
missing from the tracker's local snapshot directory, so a snapshot with
zero (or partial) shard files downloaded still reported back a "complete"
file list (metadata only, or a partial subset). Nodes then trusted that
subset as fully cached and skipped the real download, only discovering
the missing weight shards at model-load time.

Now, if any weight file required for the requested layer range is absent
on disk, the tracker returns an empty file list for that range so it
isn't offered as a source at all, letting the node fall through to
peers/HuggingFace for the real data.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 13:45:27 +03:00
..
2026-06-29 10:29:19 +03:00