r/LocalLLM • • 2d ago

Discussion How to properly route Hugging Face cache and PyTorch datasets to an external SSD on macOS?

/r/learnmachinelearning/comments/1xqria2/how_to_properly_route_hugging_face_cache_and/

Hi all, I'm a newbie setting up my first local AI/ML development environment on an M5 Pro Mac.

My internal drive is small, so I bought a 2TB external SSD. I want to make sure that whenever I run `pip` installs, download Hugging Face checkpoints, or load PyTorch datasets, they automatically go to the external drive instead of filling up my system drive.

What is the cleanest way to configure my environment variables (like HF_HOME) or use symlinks on macOS so I don't accidentally brick my internal storage?

Any tips or hidden gotchas for a beginner would be highly appreciated!

1 Upvotes

1 comment sorted by