nanochat/.devcontainer/devcontainer.json
2025-10-26 02:42:50 +00:00

23 lines
661 B
JSON

// For format details, see https://aka.ms/devcontainer.json.
{
"name": "Ubuntu",
"image": "mcr.microsoft.com/devcontainers/base:noble",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
// CUDA support with GPU passthrough
"ghcr.io/devcontainers/features/nvidia-cuda:2": {},
// Python
"ghcr.io/devcontainers/features/python:1": {
"version": "3.10" // sync with .python-version file
},
// (Optional) access to system's docker host
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
// Needed for GPU passthrough for CUDA in the container
"runArgs": ["--gpus=all"]
}