fix(deploy): redirect HF_HOME into the repo, same crash on a fresh install #49
Reference in New Issue
Block a user
Delete Branch "fix/deploy-hf-home-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #48 -- this commit was pushed after #48 had already merged, so it needs its own PR.
The live incident #48 fixed (gated model default) had a second layer once that was resolved: HuggingFace's default cache (
~/.cache/huggingface) falls outsideProtectHome=read-only'sReadWritePathsexception, so the service crash-looped withOSError: Read-only file systemthe momentlocal_encodertried to actually download a model -- even with a working model id.Redirects
HF_HOMEinto the already-writable repo path instead of widening the sandbox to a new home-directory location, keeping the "only the repo is writable" invariant intact. Applied live already; this backports it to the trackeddeploy/llm-router.servicetemplate so a fresh install doesn't hit the same crash.Full suite: 1503 passed, 0 failures.