#6058 [Other] mtp_fetch: --repo to read the MTP tensors from another repository

closed · @anon761 · 0 comments · View on GitHub

AMD / HIPNVIDIA / CUDALinux

Description

Problem and result: finetunes that keep their own copy of the MTP tensors ship them in their own repository, but `mtp_fetch` only ever reads upstream's; `--repo <repo>[@<rev>]` (and a full base URL for other hosts) now points inventory/fetch there instead. PINNED stays where it is, so every byte is still checked against the pinned revision's SHA256 - a repo whose MTP differs from upstream is caught rather than silently used.

Validation: Linux x86-64, Python 3.11, at c77572806: `python -m unittest tools.test_mtp_fetch` green (added RepoOverride cases for the URL shapes and main()'s override); no network in tests.

Related on this site

Quick links to related pages.