Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(longcat): stop shipping a huggingface-hub too old for the diffusers it loads
nirholase9e6f99cc261
diff --git a/workers/longcat/check_pins.py b/workers/longcat/check_pins.pyindex 0af2fb896..33dbce12b 100644--- a/workers/longcat/check_pins.py+++ b/workers/longcat/check_pins.py@@ -9,9 +9,11 @@ build had already reported success.from __future__ import annotations+import reimport sysimport diffusers+import huggingface_hubimport numpyimport torchimport transformers@@ -31,6 +33,23 @@ if not transformers.__version__.startswith("4.41"):if not diffusers.__version__.startswith("0.35"):failures.append(f"diffusers drifted to {diffusers.__version__}, expected 0.35.x")+# diffusers 0.35.1 declares huggingface-hub>=0.34.0. pip reports a violation as a+# non-fatal warning, so without this check the image ships with a hub too old+# for the library that calls it and fails when a pipeline first touches it.+HUB_FLOOR = (0, 34, 0)+# Tolerate pre-release strings like "1.0.0rc1" or "0.35.0.dev0": take the leading+# digits of each of the first three segments, so a release-candidate hub reports a+# version rather than crashing the gate that is meant to protect the build.+hub_parts = tuple(+ int(re.match(r"\d*", part).group() or 0)+ for part in (huggingface_hub.__version__.split(".") + ["0", "0", "0"])[:3]+)+if hub_parts < HUB_FLOOR:+ failures.append(+ f"huggingface-hub {huggingface_hub.__version__} is below the "+ f"{'.'.join(str(n) for n in HUB_FLOOR)} floor diffusers {diffusers.__version__} requires"+ )+if failures:for line in failures:print(f"PIN DRIFT {line}", file=sys.stderr)@@ -43,4 +62,5 @@ print(f"numpy {numpy.__version__}",f"transformers {transformers.__version__}",f"diffusers {diffusers.__version__}",+ f"huggingface-hub {huggingface_hub.__version__}",)diff --git a/workers/longcat/constraints.txt b/workers/longcat/constraints.txtindex 4258b26e5..0e9f6bfd4 100644--- a/workers/longcat/constraints.txt+++ b/workers/longcat/constraints.txt@@ -13,3 +13,8 @@ torch==2.6.0numpy==1.26.4transformers==4.41.0diffusers==0.35.1++# diffusers 0.35.1 requires huggingface-hub>=0.34.0. Nothing in the image imports+# the hub directly, but transformers and diffusers both do, so keep any late+# install from resolving it back under that floor.+huggingface-hub>=0.34.0diff --git a/workers/longcat/requirements.txt b/workers/longcat/requirements.txtindex dd417ddb0..824ee5051 100644--- a/workers/longcat/requirements.txt+++ b/workers/longcat/requirements.txt@@ -1,9 +1,16 @@-# Service dependencies (LongCat model deps installed separately in Dockerfile-# from the cloned repo's requirements.txt)+# Service dependencies. The LongCat model + avatar dependencies install+# separately from requirements-model.txt, under constraints.txt.+#+# huggingface-hub is deliberately NOT pinned here. It used to be, at ==0.30.2,+# for an in-process weights download that no longer exists (weights are staged+# once by stage-weights.sh on the operator's machine, never by the container).+# Because this file installs last, that pin silently downgraded the hub below+# diffusers 0.35.1's huggingface-hub>=0.34.0 floor, and pip reported the conflict+# as a non-fatal warning the build gates could not catch. Let diffusers and+# transformers resolve it, with the floor enforced in constraints.txt.fastapi==0.115.12uvicorn[standard]==0.34.2httpx==0.28.1google-cloud-firestore==2.20.1google-cloud-storage==2.19.0-huggingface-hub==0.30.2pydantic==2.11.3