Comments (3)
If you add the environment variable TORCH_CUDA_ARCH_LIST
I have been able to get it to load correctly. Eg,
version: "3.8"
services:
gpu-jupyter:
container_name: gpu-jupyter
build: .build
deploy:
resources:
reservations:
devices:
- capabilities:
- gpu
# # Set hardware limits: one GPU, max. 48GB RAM, max. 31 GPUs
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# capabilities: [gpu]
# device_ids: ["0"] # select one GPU
# limits:
# cpus: "31.0"
# memory: 48g
ports:
- 10000:8888
volumes:
- ./data:/home/jovyan/work
environment:
GRANT_SUDO: "yes"
JUPYTER_ENABLE_LAB: "yes"
NB_UID: ${JUPYTER_UID:-1000}
NB_GID: ${JUPYTER_GID:-1000}
JUPYTER_TOKEN: ${JUPYTER_TOKEN}
TORCH_CUDA_ARCH_LIST: 8.6
# enable sudo permissions
user:
"root"
restart: always
Hope that helps.
from gpu-jupyter.
Hi,
The problems origins from the torch installation routine that was suggested at the time. It updates the CUDA version and corrupts the installation. Now, pytorch suggests an installation with fixed cuda version (again) and I changed it in this commit: 2ac3181
It wonders me that it occurs now for this image, as it worked in the tests. Is this error fixed if you build the image based on the repository? If yes, I'll update the image tag.
@Layoric Thanks for the quick fix! As the origin is a corrupted cuda installation, I'll fix the origin.
from gpu-jupyter.
The commit 9982802 should provide a clear solution for this problem in version v1.6_cuda-11.8_ubuntu-22.04. For the pip install of Pytorch, the index-url is pinned for CUDA 11.8.
Please re-open if the issue still occurs.
from gpu-jupyter.
Related Issues (20)
- nvcc issue HOT 3
- Files are displayed empty after restart of the container HOT 1
- no 'latest' tag on docker hub HOT 1
- image build fails on Debian 11 when trying follow instructions to build for nvidia/cuda:12.1.0-base-ubuntu20.04 HOT 3
- Error when running your current image with host drivers cuda 12.1 : "Could not load dynamic library 'libnvinfer.so.7'" HOT 3
- jupyternbextension-not found HOT 9
- PyTorch 2 needs CUDA 11.7+ HOT 5
- How to add new packages into the image ? HOT 2
- Unable to change conda environment in kernel HOT 4
- Update CUDA to 11.8 HOT 17
- CUDA version incompatibility HOT 10
- TensorFlow throws missing libdevice errors
- Update to Jupyterlab 4.0.10 HOT 6
- Static Token HOT 1
- Upgrade to latest versions (e.g. CUDA 12.3) HOT 3
- Suggest way to use latest pytorch (2.2.2) HOT 4
- Container not accessible from the network with Podman instead of Docker HOT 1
- Use other servers like Jupyverse HOT 1
- tensorflow couldn't use nvidia GPU in v1.7_cuda-12.3_ubuntu-22.04 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpu-jupyter.