Skip to content

Commit 16d4546

Browse files
author
Ruinong Tian
committed
fix pytorch unit tests
1 parent 0196b32 commit 16d4546

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

test/test_artifacts/v2/pytorch.examples.Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ RUN git clone --recursive https://github.com/pytorch/examples
88
# But libcuda.so.1 exists. Adding this resolves, but also adding `2>/dev/null` to ignore if not needed.
99
RUN sudo ln -s /usr/lib/x86_64-linux-gnu/libcuda.so.1 /usr/lib/x86_64-linux-gnu/libcuda.so 2>/dev/null
1010

11-
WORKDIR "examples"
11+
RUN micromamba install --freeze-installed -y conda-forge::uv
1212

13-
RUN ./run_python_examples.sh install_deps
13+
WORKDIR "examples"
1414

15-
# We skip `imagenet` because it requires a lot of resources and so aren't a good fit for us.
16-
CMD ["./run_python_examples.sh", "dcgan,fast_neural_style,distributed,mnist,mnist_forward_forward,mnist_hogwild,mnist_rnn,regression,reinforcement_learning,siamese_network,super_resolution,time_sequence_prediction,vae,word_language_model,fx"]
15+
CMD ./run_python_examples.sh

test/test_artifacts/v3/pytorch.examples.Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ RUN git clone --recursive https://github.com/pytorch/examples
88
# But libcuda.so.1 exists. Adding this resolves, but also adding `2>/dev/null` to ignore if not needed.
99
RUN sudo ln -s /usr/lib/x86_64-linux-gnu/libcuda.so.1 /usr/lib/x86_64-linux-gnu/libcuda.so 2>/dev/null
1010

11-
WORKDIR "examples"
11+
RUN micromamba install --freeze-installed -y conda-forge::uv
1212

13-
RUN ./run_python_examples.sh install_deps
13+
WORKDIR "examples"
1414

15-
# We skip `imagenet` because it requires a lot of resources and so aren't a good fit for us.
16-
CMD ["./run_python_examples.sh", "dcgan,fast_neural_style,distributed,mnist,mnist_forward_forward,mnist_hogwild,mnist_rnn,regression,reinforcement_learning,siamese_network,super_resolution,time_sequence_prediction,vae,word_language_model,fx"]
15+
CMD ./run_python_examples.sh

0 commit comments

Comments
 (0)