Skip to content

Commit d7a3aff

Browse files
committed
fix(deps): update ML dependencies for smolagents compatibility
smolagents>=1.0.0 requires huggingface-hub>=0.31.2, but we had huggingface_hub==0.20.3 pinned. Update all ML dependencies to compatible versions: - huggingface_hub: 0.20.3 → >=0.31.2 - transformers: 4.37.2 → >=4.40.0 - accelerate: 0.26.1 → >=0.30.0 - bitsandbytes: 0.42.0 → >=0.42.0 - torch: 2.2.0 → >=2.2.0 Also update constraints.txt to match.
1 parent 83f7818 commit d7a3aff

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

constraints.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
#
2-
# Pinned lower bounds to avoid pip "resolution-too-deep" errors in CI.
3-
# Keep in sync with requirements.txt when adjusting core dependencies.
2+
# Constraints file for dependency resolution.
3+
# Now using uv which handles resolution efficiently.
4+
# Keep in sync with requirements.txt.
45
#
56
cryptography>=39.0.0
67
numpy<2
7-
# Pin smolagents to avoid resolution issues
88
smolagents>=1.0.0,<2.0.0
9-
# Pin coverage to avoid backtracking through versions
109
coverage>=7.4.0
11-
# Pin other common backtracking dependencies
12-
huggingface_hub>=0.20.0
13-
transformers>=4.37.0
10+
huggingface_hub>=0.31.2
11+
transformers>=4.40.0
12+
accelerate>=0.30.0
1413
fsspec>=2023.5.0
1514
tokenizers>=0.15.0
1615

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ pydantic==2.6.1
55
pydantic-settings==2.1.0
66

77
# ML & NLP
8-
transformers==4.37.2
9-
torch==2.2.0
10-
accelerate==0.26.1
11-
huggingface_hub==0.20.3
12-
bitsandbytes==0.42.0
13-
numpy<2 # Required for torch 2.2.0 compatibility
8+
transformers>=4.40.0
9+
torch>=2.2.0
10+
accelerate>=0.30.0
11+
huggingface_hub>=0.31.2
12+
bitsandbytes>=0.42.0
13+
numpy<2 # Required for torch compatibility
1414

1515
# Agent Framework (Issue #18: smolagents integration)
1616
smolagents>=1.0.0

0 commit comments

Comments
 (0)