Daestrum Expert Licensed User Longtime User Feb 23, 2025 #1 Which option do I need to set to stop (LLM) downloads going into .../Objects/~/.cache/... I tried setting opt.PyCacheFolder = "D:/.cache" (where I keep my LLMs) , but they still end up in .../Objects/~/.cache/... The problem is I end up with is a project folder that is multi-gigabytes on C: drive, which has the least room. (last check ~/.cache > 40GB)
Which option do I need to set to stop (LLM) downloads going into .../Objects/~/.cache/... I tried setting opt.PyCacheFolder = "D:/.cache" (where I keep my LLMs) , but they still end up in .../Objects/~/.cache/... The problem is I end up with is a project folder that is multi-gigabytes on C: drive, which has the least room. (last check ~/.cache > 40GB)
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2025 #2 Are you downloading from hugging face? Cache management We’re on a journey to advance and democratize artificial intelligence through open source and open science. huggingface.co B4X: opt.EnvironmentVars.Put("HF_HOME", "D:\Temp") Upvote 0
Are you downloading from hugging face? Cache management We’re on a journey to advance and democratize artificial intelligence through open source and open science. huggingface.co B4X: opt.EnvironmentVars.Put("HF_HOME", "D:\Temp")
Daestrum Expert Licensed User Longtime User Feb 23, 2025 #3 yes and I have HF_HOME set in OS env variables already. Before version #2 it was working as expected and all LLMs went to D:/.cache. Upvote 0
yes and I have HF_HOME set in OS env variables already. Before version #2 it was working as expected and all LLMs went to D:/.cache.
Daestrum Expert Licensed User Longtime User Feb 23, 2025 #4 I added B4X: opt.EnvironmentVars = CreateMap("script_dir" : scripts,"HF_HOME" : "D:/.cache") and it seems to have sorted it. Upvote 0
I added B4X: opt.EnvironmentVars = CreateMap("script_dir" : scripts,"HF_HOME" : "D:/.cache") and it seems to have sorted it.
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2025 #5 Better to add the entries to the existing map instead of replacing it: B4X: opt.EnvironmentVars.Put("script_dir", scripts) opt.EnvironmentVars.Put("HF_HOME", "D:/.cache") Otherwise you will lose a few important settings. Upvote 0
Better to add the entries to the existing map instead of replacing it: B4X: opt.EnvironmentVars.Put("script_dir", scripts) opt.EnvironmentVars.Put("HF_HOME", "D:/.cache") Otherwise you will lose a few important settings.