-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make torch available #520
Merged
+46
−138
Merged
Make torch available #520
Changes from 8 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
aba74b7
update(pytorch): remove virtual env
615dafb
update(pytorch): remove virtual env
d492f92
update(cpu, pytorch): mamba install pytorch to base
211896c
update(pytorch): adjust torch installation
bc43ff8
update(pytorch): add ipykernel and conda env
3230cfe
update(pytorch): remove CUDA
c24dcb8
update(pytorch): add ipykernel
fd3456e
update(pytorch): add gputil
1debe15
update(tensorflow): add cuda to mamba command
1126a63
update(tensorflow): add cuda to mamba command
ad4869f
update(tensorflow): remove tensorflow-gpu
4680033
update(gpu-notebooks): remove conda env
34fc30f
update(cpu, pytorch, tensorflow): consistency
4348cc3
update(test_tensorflow): use tensorflow env
a69f041
update(test_packages): add gputil to exclude list
92990db
update(test_packages): add cudnn, cudatoolkit to exclude list
39688b0
update(pytorch, tensorflow): ipykernel install
c3e888d
revert(cpu): fix cpu conda env
271649d
update(tests): gpu available
08b5969
update(makefile): restore tensorflow build
f369386
update(tests): remove GPU test
fbc9b7f
update(jupyterlab): jupyter-dash caused build fail
7ecd7c8
update(PR): based on comments
229e6a1
update(rstudio): remove pin on tidymodels
7d805db
update(get-nvidia-stuff): 1804 to 2204
2032b25
Merge branch 'update-base-image-to-22.04' into make-torch-available
bryanpaget 899728d
revert(2_tensorflow): prev working configuration
bryanpaget d184caf
update(0_Rocker): remove whitespace delta
bryanpaget cc1909d
update(2_tensorflow): new line
bryanpaget ab4100e
Update test_tensorflow.py: revert test
bryanpaget 3740283
Merge branch 'update-base-image-to-22.04' into make-torch-available
bryanpaget File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
# Create conda environment (CPU only) with many useful packages. | ||
|
||
RUN conda create -n pycpu --yes \ | ||
python==3.11.0 ipython==8.11.0 sphinx==6.1.3 \ | ||
boto==2.49.0 s3fs==2023.3.0 \ | ||
dos2unix==7.4.1 parallel==20230122 \ | ||
dask==2023.3.0 numpy==1.24.2 pandas==1.5.3 pyarrow==11.0.0 scipy==1.10.1 \ | ||
scikit-learn==1.2.2 xgboost==1.7.1 \ | ||
matplotlib==3.7.1 pillow==9.4.0 \ | ||
gdal==3.6.2 geopandas==0.12.2 rasterio==1.3.6 \ | ||
opencv==4.7.0 scikit-image==0.19.3 \ | ||
gensim==4.3.0 nltk==3.8.1 spacy==3.5.0 \ | ||
pytorch==1.13.1 torchaudio==0.13.1 torchvision==0.14.1 cpuonly==2.0 \ | ||
-c pytorch -c conda-forge && \ | ||
conda clean --all -f -y && \ | ||
RUN mamba install pytorch \ | ||
torchvision \ | ||
torchaudio \ | ||
cpuonly \ | ||
-c pytorch && \ | ||
mamba clean --all -f -y && \ | ||
fix-permissions $CONDA_DIR && \ | ||
fix-permissions /home/$NB_USER |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes are just to update the torch virtual environment, install the required pacakges including |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
#Install PyTorch | ||
RUN conda create -n torch python=3.9 && \ | ||
conda install -n torch --quiet --yes -c pytorch \ | ||
'pytorch==1.13.1' \ | ||
'torchvision==0.14.1' \ | ||
'ipykernel==6.21.3' \ | ||
'torchtext==0.14.1' \ | ||
&& \ | ||
conda clean --all -f -y && \ | ||
fix-permissions $CONDA_DIR && \ | ||
fix-permissions /home/$NB_USER | ||
# Install PyTorch GPU Packages and enable PyTorch IPyKernel | ||
RUN mamba create -n torch python=3.11 && \ | ||
mamba install -n torch --quiet --yes -c pytorch -c nvidia \ | ||
ipykernel \ | ||
pytorch \ | ||
torchvision \ | ||
torchaudio \ | ||
# gputil has nvidia-smi | ||
gputil \ | ||
# pytorch-cuda are the nvidia cuda drivers | ||
pytorch-cuda=11.8 \ | ||
&& \ | ||
conda clean --all -f -y && \ | ||
fix-permissions $CONDA_DIR && \ | ||
fix-permissions /home/$NB_USER && \ | ||
source activate torch && \ | ||
python -m ipykernel install --user --name torch --display-name "PyTorch" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the CUDA drivers from the PyTorch and Tensorflow Dockerbits because those are handled by
pytorch-cuda=11.8
inpytorch
.Also the rstudio-server docker-bit has been added due to rstudio-server being broken out into its own docker-bit.