Repository navigation
os/v3/puppy: keep downloaded models on /data (HF_HOME), not in RAM - #3290
Merged
Merged
Conversation
…ngine#3287) 10lemonade puts Lemonade's cache and config on /data/lemonade, but Lemonade downloads models through the Hugging Face cache, and with no HF_HOME that is $HOME/.cache/huggingface. HOME=/ in the init, so on the live stick the v2026.47 board run downloaded its demo models into RAM and a reboot would have erased them. HF_HOME now defaults to $LEM/huggingface (/data/lemonade/huggingface with a data partition, which is also where the release check's hrx-placement row looks); a value set in lemond.conf still wins. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
6 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3287.
What happened on the board (v2026.47, 2026-11-22):
10lemonadekeeps Lemonade's cache and config on/data/lemonade/{cache,config}, but Lemonade downloads models through the Hugging Face cache. With noHF_HOMEthat is$HOME/.cache/huggingface, andHOME=/in the init, so on the live stick the demo models went to RAM (/.cache/huggingface, 4 GB within minutes) and a reboot would have erased them. The night's workaround was anexport HF_HOME=…line in/data/lemonade/lemond.conf.Change: after the data-contract block,
export HF_HOME="${HF_HOME:-$LEM/huggingface}"+mkdir -p. With a data partition that is/data/lemonade/huggingface(the path the release check'shrx-placementrow already looks under); without one it stays in RAM, which the script already announces. A value set inlemond.conf(sourced earlier) still wins, so the night's workaround keeps working.Verified:
sh -nclean; on the installed appliance the same setting (via lemond.conf) kept the three demo models and the 27B across reboots.🤖 Generated with Claude Code