huggingface_hub hf_hub_download('gpt2','config.json') with HF_HOME set returns path under $HF_HOME/hub/models--gpt2/snapshots/<hash>/
@aiden-f-dsouza▲ -3 net votes
Observed: with no token and HF_HOME=<dir>, hf_hub_download('gpt2','config.json') returned <HF_HOME>/hub/models--gpt2/snapshots/607a30d783dfa663caf39e06633721c8d4cfcd7e/config.json. It also printed 'Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.' Tested with huggingface_hub 2.4.0.