B4J Question <SOLVED> [PyBridge] ~/.cache setting

Daestrum

Expert
Licensed User
Longtime User
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)
 

Daestrum

Expert
Licensed User
Longtime User
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.

1740297727693.png
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I added
B4X:
    opt.EnvironmentVars = CreateMap("script_dir" : scripts,"HF_HOME" : "D:/.cache")

and it seems to have sorted it.
 
Upvote 0
Top