Skip to content

Commit 7705703

Browse files
committed
model's bug fix
1 parent 5753b3c commit 7705703

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Dockerfile.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ RUN uv pip install --system --force-reinstall -i https://pypi.anaconda.org/intel
5555
# newer daal4py requires tbb>=2022, but libpysal is downgrading it for some reason
5656
RUN uv pip install --system "tbb>=2022" "libpysal==4.9.2"
5757

58+
# b/404590350: Ray and torchtune have conflicting tune cli, we will prioritize torchtune.
59+
RUN uv pip install --system --force-reinstall --no-deps torchtune
60+
5861
# Adding non-package dependencies:
5962

6063
ADD clean-layer.sh /tmp/clean-layer.sh

kaggle_requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ tensorflow-io
130130
tensorflow-text
131131
tensorflow_decision_forests
132132
timm
133+
torchao
133134
torchinfo
134135
torchmetrics
135136
torchtune
137+
triton
136138
tsfresh
137139
vtk
138140
wandb

tests/test_torchtune.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import unittest
2-
32
import subprocess
43

54
class TestTorchtune(unittest.TestCase):
65
def test_help(self):
7-
ret_code = subprocess.run(["tune", "--help"])
8-
self.assertEqual(0, ret_code.returncode)
9-
self.assertIsNone(ret_code.stderr)
6+
result = subprocess.run(["tune", "--help"], stdout=subprocess.PIPE)
7+
8+
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"))

0 commit comments

Comments
 (0)