Resolve revision to commit_hash once per model load, via huggingface_hub's resolve_revision (#49990)

Signed-off-by: Wauplin <lucainp@gmail.com>
Signed-off-by: Lucain <lucainp@gmail.com>
Signed-off-by: Lucain Pouget <lucain@huggingface.co>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Lucain
2026-08-05 13:49:56 +00:00
committed by GitHub
co-authored by OpenAI Codex Claude Opus 5 Harry Mellor
parent a9b39d6dcb
commit 397094da17
9 changed files with 84 additions and 6 deletions
+1
View File
@@ -8,6 +8,7 @@ tqdm
blake3
py-cpuinfo
transformers >= 5.5.3
huggingface_hub >= 1.26.0
tokenizers >= 0.21.1 # Required for fast incremental detokenization.
safetensors >= 0.6.2 # MXFP4/MXFP6 dtype support (F8_E8M0, F4) added in 0.6.0: https://github.com/huggingface/safetensors/pull/611
protobuf >= 5.29.6, !=6.30.*, !=6.31.*, !=6.32.*, !=6.33.0.*, !=6.33.1.*, !=6.33.2.*, !=6.33.3.*, !=6.33.4.* # Required by LlamaTokenizer, gRPC. CVE-2026-0994
+2 -1
View File
@@ -341,8 +341,9 @@ httpx==0.27.2
# schemathesis
httpx-sse==0.4.3
# via mcp
huggingface-hub==1.22.0
huggingface-hub==1.26.0
# via
# -r requirements/test/../common.txt
# accelerate
# datasets
# evaluate
+3 -1
View File
@@ -360,8 +360,10 @@ httpx==0.27.2
# schemathesis
httpx-sse==0.4.3
# via mcp
huggingface-hub==1.22.0
huggingface-hub==1.26.0
# via
# -c requirements/common.txt
# -r requirements/test/../common.txt
# accelerate
# datasets
# evaluate
+3 -1
View File
@@ -351,8 +351,10 @@ httpx==0.27.2
# schemathesis
httpx-sse==0.4.3
# via mcp
huggingface-hub==1.22.0
huggingface-hub==1.26.0
# via
# -c requirements/common.txt
# -r requirements/test/../common.txt
# accelerate
# datasets
# evaluate
+3 -1
View File
@@ -224,8 +224,10 @@ httpx==0.28.1
# schemathesis
httpx-sse==0.4.3
# via mcp
huggingface-hub==1.22.0
huggingface-hub==1.26.0
# via
# -c requirements/common.txt
# -r requirements/test/../common.txt
# accelerate
# datasets
# evaluate