14 GPU Development in Tercen Studio
GPU support is now available in Tercen Studio. Follow the steps below to enable and test GPU access in your local setup.
14.1 Setup Instructions
Pull the latest version of the Tercen Studio repository:
https://github.com/tercen/tercen_studio-
Configure Docker for GPU support. Modify the
docker-compose.yaml
file as described below:- Comment out the default runtime-docker image.
- Uncomment GPU-related configuration.
Under the
dind
service:image: tercen/nvidia-dind:12.1.0-runtime-ubuntu22.04 deploy: resources: reservations: devices: - driver: nvidia count: 1 capabilities: [ gpu ]
Under the VS Code service
code-server
:
Once the containers are up, you can access the GPU from Code Server.
14.2 Changes to operators
- The
Dockerfile
uses a GPU-enabled runtime:
- The
operator.json
declares GPU capability:
14.3 Verifying GPU Access
Once inside the container, verify GPU access using TensorFlow or PyTorch.
14.3.2 PyTorch
If GPU is not detected, you might need to install some drivers and dependencies on your machine. Please refer to Docker’s GPU support documentation:
https://docs.docker.com/desktop/features/gpu/