Spaces:
Runtime error
Runtime error
Adding deps
Browse files- Dockerfile +0 -8
- install_deps.sh +4 -0
Dockerfile
CHANGED
@@ -11,14 +11,6 @@ COPY ./environment_docker.yml /code/environment_docker.yml
|
|
11 |
# Create the environment using the environment.yml file
|
12 |
RUN conda env create -f /code/environment_docker.yml
|
13 |
|
14 |
-
# Activate the environment and install torch, torchvision, and torchaudio
|
15 |
-
RUN /bin/bash -c "source activate masaenv && conda install -n masaenv -c pytorch -c nvidia -c conda-forge \
|
16 |
-
pytorch==2.1.2 \
|
17 |
-
torchvision==0.16.2 \
|
18 |
-
torchaudio==2.1.2 \
|
19 |
-
pytorch-cuda==11.8 \
|
20 |
-
cudatoolkit==11.8"
|
21 |
-
|
22 |
COPY ./install_deps.sh /code/install_deps.sh
|
23 |
|
24 |
# Make the install_deps.sh script executable
|
|
|
11 |
# Create the environment using the environment.yml file
|
12 |
RUN conda env create -f /code/environment_docker.yml
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
COPY ./install_deps.sh /code/install_deps.sh
|
15 |
|
16 |
# Make the install_deps.sh script executable
|
install_deps.sh
CHANGED
@@ -3,6 +3,10 @@
|
|
3 |
# Exit script if any command fails
|
4 |
set -e
|
5 |
|
|
|
|
|
|
|
|
|
6 |
# Update pip and install openmim
|
7 |
echo "Updating pip and installing openmim..."
|
8 |
pip install -U pip
|
|
|
3 |
# Exit script if any command fails
|
4 |
set -e
|
5 |
|
6 |
+
#Install torch
|
7 |
+
|
8 |
+
pip install torch torchvision torchaudio
|
9 |
+
|
10 |
# Update pip and install openmim
|
11 |
echo "Updating pip and installing openmim..."
|
12 |
pip install -U pip
|