ITADN

gliner>=0.2.23 breaks HuggingFace Inference Endpoints (transformers 5.x incompatible with HF toolkit)

#327Openachpalaman 创建于 2026-01-30
A
achpalamancommented
**Problem** Starting with v0.2.23, GLiNER requires transformers>=4.57.3, which pulls in transformers 5.x. This breaks deployment on HuggingFace Inference Endpoints. **Root Cause** HF Inference Endpoints use huggingface-inference-toolkit, which has a hard dependency on transformers==4.51.3. The toolkit imports from transformers.file_utils: `from transformers.file_utils import is_tf_available, is_torch_available` In transformers 5.0, these were moved to `transformers.utils`, causing an ImportError before any custom handler code runs.
1 条评论