common : make LLAMA_CACHE the one cache for everything (#21009)

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
Adrien Gallouët 2026-03-26 12:04:57 +01:00 committed by GitHub
parent 3cba8bba18
commit 93dfbc1291
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,6 +38,7 @@ static fs::path get_cache_directory() {
const char * var; const char * var;
fs::path path; fs::path path;
} entries[] = { } entries[] = {
{"LLAMA_CACHE", fs::path()},
{"HF_HUB_CACHE", fs::path()}, {"HF_HUB_CACHE", fs::path()},
{"HUGGINGFACE_HUB_CACHE", fs::path()}, {"HUGGINGFACE_HUB_CACHE", fs::path()},
{"HF_HOME", fs::path("hub")}, {"HF_HOME", fs::path("hub")},