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:
redxherring authored and StillDeadcode committed 2026-10-08 17:47:27 +02:00
1 parent 9238b1f23d
commit 7e796642e6
4 files changed
+104 -10

No files matched your search

+1
View File
@@ -921,4 +921,5 @@ struct Config {
namespace rad {
int config_parse(int argc, char** argv, Config* c);
void config_usage(const char* argv0);
bool resolve_hf_model(Config& c); /* --model given as an HF repo id: fetch into the cache, rewrite c.model */
}