dev-resources.site
for different kinds of informations.
nVidia 525 + Cuda 11.8 + Python 3.10 + pyTorch GPU Docker image
Published at
1/29/2023
Categories
ai
python
cuda
nvidia
Author
ordigital
Author
9 person written this
ordigital
open
It is a base environment for torch
with GPU support (including 3090Ti!) that can be used for working with AI models. This image requires nvidia-driver-525
and nvidia-docker2
installed on host. It needs 30GB on disk!
Dockerfile
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
ENV PYTHONUNBUFFERED=1
# SYSTEM
RUN apt-get update --yes --quiet && DEBIAN_FRONTEND=noninteractive apt-get install --yes --quiet --no-install-recommends \
software-properties-common \
build-essential apt-utils \
wget curl vim git ca-certificates kmod \
nvidia-driver-525 \
&& rm -rf /var/lib/apt/lists/*
# PYTHON 3.10
RUN add-apt-repository --yes ppa:deadsnakes/ppa && apt-get update --yes --quiet
RUN DEBIAN_FRONTEND=noninteractive apt-get install --yes --quiet --no-install-recommends \
python3.10 \
python3.10-dev \
python3.10-distutils \
python3.10-lib2to3 \
python3.10-gdbm \
python3.10-tk \
pip
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 999 \
&& update-alternatives --config python3 && ln -s /usr/bin/python3 /usr/bin/python
RUN pip install --upgrade pip
# ANACONDA
RUN wget -O /tmp/anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh \
&& bash /tmp/anaconda.sh -b -p /anaconda \
&& eval "$(/anaconda/bin/conda shell.bash hook)" \
&& conda init \
&& conda update -n base -c defaults conda \
&& conda create --name env \
&& conda activate env \
&& conda install -y pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch-nightly -c nvidia
Build
$ docker build -t nvidia-cuda .
Run
$ docker run --gpus all -it nvidia-cuda
Test
Run inside container:
$ conda activate env
$ python
>>> include torch
>>> torch.cuda.is_available()
cuda Article's
30 articles in total
Coalesced Memory Access in CUDA for High-Performance Computing
read article
Accelerating Data Processing with Grid Stride Loops in CUDA
read article
Running Nvidia COSMOS on A100 80Gb
read article
Accelerating Python with Numba - Introduction to GPU Programming
read article
OpenMP Data-Sharing Clauses: Differences Explained
read article
Global vs Static in C++
read article
"Learn HPC with me"ย kickoff
read article
Snooping on your GPU: Using eBPF to Build Zero-instrumentation CUDA Monitoring
read article
Qt error when opening ncu-ui
read article
Cuda help
read article
Using Polars/Tensorflow with NVIDIA GPU (CUDA), on Windows using WSL2
read article
Lattice Generation using GPU computing in realtime
read article
Tensorman: TensorFlow with CUDA made easy
read article
Simplifying PyTorch Installation: Introducing Install.PyTorch
read article
Setup Nx lib and EXLA to run NX/AXON with CUDA
read article
NVIDIA GPU & CUDA
read article
Deep Learning with โAWS Graviton2 + NVIDIA Tensor T4Gโ for as low as free* with CUDA 12.2
read article
My Experience Running HeadJobs: Generative AI at Home
read article
Why Your AWS Deep Learning AMI is Holding You Back and How toย Fix
read article
NVIDIA's $200B Overnight Gain: Trending CUDA Repos Revealed! โก๏ธ
read article
Trending CUDA repos of the week ๐
read article
Cheapest CUDA-Compatible Cloud GPU Options in 2023
read article
Dockerize CUDA-Accelerated Applications
read article
nVidia 525 + Cuda 11.8 + Python 3.10 + pyTorch GPU Docker image
currently reading
How to use GPU for Deep Learning
read article
Install NVIDIA CUDA on Linux
read article
Import error: cannot open shared object file:no such file or directory
read article
[BTY] Day 1: Install NVIDA Driver, CUDA, and CUDNN on Ubuntu 20.04
read article
Training ESRGAN: Seemingly impossible
read article
GPGPU-sim Day 1
read article
Featured ones: