Skip to content
Snippets Groups Projects
Commit 2cbfe8a7 authored by Quang tru HUYNH's avatar Quang tru HUYNH
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #99043 failed
image: registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
services:
- registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
stages:
- build
docker:
stage: build
script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
- export MY_TIME=`date +"%F-%H%M"`
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:$MY_TIME" . -f Dockerfile
- docker push "$CI_REGISTRY_IMAGE"
singularity:
stage: build
image:
name: quay.io/singularity/singularity:v3.11.0
entrypoint: [""]
script:
- singularity build singularity.sif Singularity
- ls -lh singularity.sif
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest
artifacts:
paths:
- singularity.sif
From continuumio/miniconda3
# update conda and the OS
RUN conda update conda && \
conda upgrade --all -y && \
apt-get update && \
apt-get -y install curl && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
RUN conda create --name py310-pytorch-nightly -y && \
eval "$(conda shell.bash hook)" && \
conda activate py310-pytorch-nightly && \
conda install -y pytorch pytorch-cuda=11.7 -c pytorch-nightly -c nvidia && \
conda list --explicit > /conda-list--explicit.yml
[![pipeline status](https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7-nightly/badges/main/pipeline.svg)](https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7-nightly/-/commits/main)
# miniconda3 based for python 3.10 and pytorch nightly, pytorch-cuda=11.7
Alternative to the regular command listed at https://pytorch.org/get-started/locally/
`conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch-nightly -c nvidia`
# Goals
- smaller foot print for python3.10/pytorch gpu/cuda 11.7
# removed on purpose from a plain installation
`conda create -n py310-pytorch python=3.10 && conda activate py310-pytorch && conda install pytorch pytorch-cuda=11.7 -c pytorch-nightly -c nvidia -y`
- cuda-nsight
- cuda-nsight-compute
- nsight-compute
- cuda-demo-suite
# usage
docker:
```
docker run -ti docker://registry-gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7-nightly:main
```
singularity/apptainer:
```
singularity build miniconda3-python310-pytorch-cuda11.7.sif oras://registry-gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7-nightly:latest
```
Bootstrap: docker
From: continuumio/miniconda3
%post
# update conda and the OS
conda update conda && \
conda upgrade --all -y && \
apt-get update && \
apt-get -y install curl && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
conda create --name py310-pytorch-nightly -y && \
eval "$(conda shell.bash hook)" && \
conda activate py310-pytorch-nightly && \
conda install -y pytorch pytorch-cuda=11.7 -c pytorch-nightly -c nvidia && \
conda list --explicit > /conda-list--explicit.yml
%post
eval "$(conda shell.bash hook)" && \
conda activate py310-pytorch-nightly && \
"$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment