@@ -19,7 +19,7 @@ dependencies = [
1919plotting = [" matplotlib>=3.10.1" , " seaborn>=0.13.2" ]
2020
2121backend = [
22- " peft>=0.18 .0" ,
22+ " peft>=0.14 .0" ,
2323 " hf-xet>=1.1.0" ,
2424 " bitsandbytes>=0.45.2" ,
2525 " unsloth==2026.2.1" ,
@@ -30,7 +30,7 @@ backend = [
3030 " awscli>=1.38.1" ,
3131 " setuptools>=78.1.0" ,
3232 " wandb==0.25.0" ,
33- " transformers==5.2.0 " ,
33+ " transformers>=4.55.2,<=4.57.3 " ,
3434 " duckdb>=1.0.0" ,
3535 " pyarrow>=15.0.0" ,
3636 " trl==0.20.0" ,
@@ -65,7 +65,7 @@ tinker = [
6565 " pydantic>=2.12.5" ,
6666 " tinker>=0.8.1" ,
6767 " torch>=2.8.0" ,
68- " transformers==5.2.0 " ,
68+ " transformers>=4.55.2,<=4.57.3 " ,
6969 " uvicorn>=0.35.0" ,
7070 " datrie>=0.8.3" ,
7171]
@@ -122,15 +122,10 @@ required-version = ">=0.6.15"
122122# Override numpy to <2.0 for compatibility with megatron-core in the training
123123# environment. vLLM 0.15.1 pulls opencv-python-headless>=4.13 which wants
124124# numpy>=2 on Python 3.9+, but megatron-core requires numpy<2.
125- override-dependencies = [
126- " transformer-engine>=2.11.0" ,
127- " numpy<2" ,
128- # Override unsloth's overly strict constraint on transformers — v5.x
129- # is confirmed working per unsloth February-2026 release notes
130- " transformers==5.2.0" ,
131- ]
132- exclude-dependencies = [" pynvml" ]
133- no-build-isolation-package = [" apex" , " transformer-engine" , " transformer-engine-cu12" , " transformer-engine-torch" , " megatron-core" , " megatron-bridge" , " nv-grouped-gemm" , " mamba-ssm" , " causal-conv1d" ]
125+ override-dependencies = [" transformer-engine>=2.11.0" , " numpy<2" ]
126+ # Keep apex build isolation enabled so uv can inject torch from
127+ # `extra-build-dependencies` during lock/sync on non-GPU client machines.
128+ no-build-isolation-package = [" transformer-engine" , " transformer-engine-cu12" , " transformer-engine-torch" , " megatron-core" , " megatron-bridge" , " nv-grouped-gemm" , " mamba-ssm" , " causal-conv1d" ]
134129
135130[tool .uv .extra-build-dependencies ]
136131apex = [" torch>=2.8.0" ]
@@ -139,6 +134,11 @@ transformer-engine-torch = ["torch>=2.8.0"]
139134[tool .uv .extra-build-variables ]
140135apex = { APEX_CPP_EXT = " 1" , APEX_CUDA_EXT = " 1" , APEX_FAST_LAYER_NORM = " 1" , APEX_PARALLEL_BUILD = " 16" , NVCC_APPEND_FLAGS = " --threads 4" }
141136
137+ [[tool .uv .dependency-metadata ]]
138+ name = " apex"
139+ version = " 0.1"
140+ requires-dist = [" packaging" ]
141+
142142[tool .ty .environment ]
143143python-version = " 3.11"
144144
0 commit comments