Archived
serve: --model takes an HF repo id, fetched to $RADIANCE_HOME/hf via hfget.sh
A non-path owner/name is downloaded before bring-up and the model path rewritten to the cached dir, so a new user points --model at a repo link instead of a pre-fetched checkpoint. hfget.sh now keys its re-run skip on lfs.oid (sha256) for LFS files and size for the rest, recorded in a .hfget-manifest, so a same-size weight update is caught and re-fetched while a warm cache stays a no-rehash no-op.
This commit is contained in:
1 parent
9238b1f23d
commit
7e796642e6
4 files changed
+104
-10
No files matched your search
@@ -9,6 +9,8 @@ int main(int argc, char** argv) {
|
||||
if (s == 1) { rad::config_usage(argv[0]); return 0; }
|
||||
if (s < 0) { rad::config_usage(argv[0]); return 2; }
|
||||
|
||||
if (!rad::resolve_hf_model(cfg)) return 2; /* --model given as an HF repo id: fetch + rewrite */
|
||||
|
||||
rad::Engine engine(std::move(cfg));
|
||||
|
||||
s = engine.start();
|
||||
|
||||
Reference in new issue
Block a user