Configure Hugging Face
Point hf and Transformers model downloads at Depsilo's /huggingface route with HF_ENDPOINT.
BEFORE
https://huggingface.coAFTER
http://localhost:23333/huggingfaceModels and datasets reach Depsilo through HF_ENDPOINT and the /huggingface route.
Server-side preparation
Section titled “Server-side preparation”Configure the client
Section titled “Configure the client”export HF_ENDPOINT=http://localhost:23333/huggingfacehf download prajjwal1/bert-tiny --local-dir /tmp/bert-tinyLibraries such as transformers read the same HF_ENDPOINT variable; set it in the shell, a CI secret, or the project’s .env.
Verify requests
Section titled “Verify requests”-
Download a small model
终端窗口 hf download prajjwal1/bert-tiny --local-dir /tmp/bert-tiny -
Run the same command again
The second request should hit the Depsilo cache instead of reaching huggingface.co.
-
Confirm the traffic in Admin
Check the
/huggingfacerequests and cache results in Access logs.