fix(ai): pin huggingface-hub so bundle rebuilds cannot strand hub 1.x (#683)

The arm64 transcription bundle baked huggingface_hub 1.22.0 while inpaint-hq's transformers needs hub <1.0; last-writer-wins in the shared venv made the hq install fail on arm64. Constrain hub at build time, pin it in transcription's package list, and lock both invariants with manifest unit tests. The arm64 transcription bundle still needs a rebuild and republish to ship the fix. Fixes #669.
This commit is contained in:
SnapOtter
2026-07-30 10:04:15 +08:00
committed by GitHub
parent 890b38a71a
commit 470a0a4acb
2 changed files with 54 additions and 3 deletions
+7 -3
View File
@@ -1,7 +1,10 @@
{
"manifestVersion": 2,
"imageVersion": "2.0.0",
"pythonVersion": { "amd64": "3.12", "arm64": "3.11" },
"pythonVersion": {
"amd64": "3.12",
"arm64": "3.11"
},
"basePackages": [
"numpy==1.26.4",
"Pillow==12.3.0",
@@ -13,7 +16,8 @@
"scipy==1.12.0",
"scikit-learn==1.4.2",
"scikit-image==0.24.0",
"pandas==2.2.2"
"pandas==2.2.2",
"huggingface-hub==0.36.2"
],
"bundleRepo": "deepsafe/feature-bundles",
"bundles": {
@@ -560,7 +564,7 @@
}
},
"packages": {
"common": ["faster-whisper>=1.0.0"],
"common": ["faster-whisper>=1.0.0", "huggingface-hub[hf_xet]==0.36.2"],
"amd64": [],
"arm64": ["protobuf>=4.25.3,<5"]
},