File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ RUN uv pip install --no-build-isolation --system "git+https://github.com/Kaggle/
35
35
# b/408281617: Torch is adamant that it can not install cudnn 9.3.x, only 9.1.x, but Tensorflow can only support 9.3.x.
36
36
# This conflict causes a number of package downgrades, which are handled in this command
37
37
RUN uv pip install --system --force-reinstall --extra-index-url https://pypi.nvidia.com "cuml-cu12==25.2.1" \
38
- "nvidia-cudnn-cu12==9.3.0.75"
38
+ "nvidia-cudnn-cu12==9.3.0.75" "nvidia-cublas-cu12==12.5.3.2" "nvidia-cusolver-cu12==11.6.3.83" \
39
+ "nvidia-cuda-cupti-cu12==12.5.82" "nvidia-cuda-nvrtc-cu12==12.5.82" "nvidia-cuda-runtime-cu12==12.5.82" \
40
+ "nvidia-cufft-cu12==11.2.3.61" "nvidia-curand-cu12==10.3.6.82" "nvidia-cusparse-cu12==12.5.1.3" \
41
+ "nvidia-nvjitlink-cu12==12.5.82"
39
42
RUN uv pip install --system --force-reinstall "pynvjitlink-cu12==0.5.2"
40
43
41
44
# b/385145217 Latest Colab lacks mkl numpy, install it.
@@ -46,7 +49,7 @@ RUN uv pip install --system "tbb>=2022" "libpysal==4.9.2"
46
49
47
50
# b/404590350: Ray and torchtune have conflicting tune cli, we will prioritize torchtune.
48
51
# b/415358158: Gensim removed from Colab image to upgrade scipy
49
- RUN uv pip install --system --force-reinstall --no-deps torchtune gensim
52
+ RUN uv pip install --system --force-reinstall --no-deps torchtune gensim "scipy<=1.15.3"
50
53
51
54
# Adding non-package dependencies:
52
55
ADD clean-layer.sh /tmp/clean-layer.sh
Original file line number Diff line number Diff line change @@ -121,19 +121,18 @@ qtconsole
121
121
ray
122
122
rgf-python
123
123
s3fs
124
+ # b/302136621: Fix eli5 import for learntools
124
125
scikit-learn==1.2.2
125
126
# Scikit-learn accelerated library for x86
126
127
scikit-learn-intelex>=2023.0.1
127
128
scikit-multilearn
128
129
scikit-optimize
129
130
scikit-plot
130
131
scikit-surprise
131
- # b/415358158: Gensim removed from Colab image to upgrade scipy to 1.14.1
132
- scipy==1.15.1
133
132
# Also pinning seaborn for learntools
134
133
seaborn==0.12.2
135
134
git+https://github.com/facebookresearch/segment-anything.git
136
- # b/329869023 shap 0.45.0 breaks learntools
135
+ # b/329869023: shap 0.45.0 breaks learntools
137
136
shap==0.44.1
138
137
squarify
139
138
tensorflow-cloud
Original file line number Diff line number Diff line change 3
3
4
4
class TestTorchtune (unittest .TestCase ):
5
5
def test_help (self ):
6
- result = subprocess .run (["tune" , "--help" ], stdout = subprocess .PIPE )
6
+ result = subprocess .run (
7
+ ["tune" , "--help" ],
8
+ capture_output = True ,
9
+ text = True
10
+ )
7
11
8
12
self .assertEqual (0 , result .returncode )
9
- self .assertIsNone (result .stderr )
10
- self .assertIn ("Download a model from the Hugging Face Hub or Kaggle Model Hub." , result .stdout .decode ("utf-8" ))
13
+ self .assertIn (
14
+ "Download a model from the Hugging Face Hub or Kaggle" ,
15
+ result .stdout
16
+ )
You can’t perform that action at this time.
0 commit comments