System Info
When downloading a model from HuggingFace through a corporate JFrog Artifactory proxy, the download fails with Header content-range is missing and subsequent 404 errors.
Logs
tei-1 | 2026-07-09T08:48:01.028876Z WARN download_artifacts: text_embeddings_core::download: core/src/download.rs:50: Download failed: Header content-range is missing
tei-1 | 2026-07-09T08:48:03.132992Z WARN download_artifacts: text_embeddings_core::download: core/src/download.rs:65: Download failed: request error: HTTP status client error (404 Not Found) for url
(https://[REDACTED]/artifactory/api/huggingfaceml/huggingface-proxy/intfloat/multilingual-e5-small/resolve/main/config_sentence_transformers.json)
tei-1 | Error: Could not download model artifacts
tei-1 |
tei-1 | Caused by:
tei-1 | Header content-range is missing
Environment
- TEI version: latest (Docker image)
- Proxy: JFrog Artifactory
- Model: intfloat/multilingual-e5-small
Additional context
The proxy appears to not return a Content-Range header for partial content requests, which TEI expects. This causes the download to fail for 1_Pooling/config.json first, then cascades to other files with 404 errors.
Information
Tasks
Reproduction
- Configure TEI with
huggingface_hub_cache pointing to a local cache directory
- Set up a JFrog Artifactory proxy for HuggingFace Hub
- Start TEI with a model ID that goes through the proxy
- Observe the download failure
Configuration (docker-compose.yaml)
version: '3.8'
services:
tei:
image: ghcr.io/huggingface/text-embeddings-inference:latest
container_name: tei-1
ports:
- "8080:80"
volumes:
- ./data:/data
environment:
- MODEL_ID=intfloat/multilingual-e5-small
- HF_ENDPOINT=https://[REDACTED]/artifactory/api/huggingfaceml/huggingface-proxy/
- HF_HUB_ETAG_TIMEOUT=86400
- HF_HUB_DOWNLOAD_TIMEOUT=86400
restart: unless-stopped
Expected behavior
The model is downloaded without any error even if the Artifactory proxy takes time to preload the model from HuggingFace
System Info
When downloading a model from HuggingFace through a corporate JFrog Artifactory proxy, the download fails with
Header content-range is missingand subsequent 404 errors.Logs
Environment
Additional context
The proxy appears to not return a Content-Range header for partial content requests, which TEI expects. This causes the download to fail for 1_Pooling/config.json first, then cascades to other files with 404 errors.
Information
Tasks
Reproduction
huggingface_hub_cachepointing to a local cache directoryConfiguration (
docker-compose.yaml)Expected behavior
The model is downloaded without any error even if the Artifactory proxy takes time to preload the model from HuggingFace