Debian Codegraph @

.devcontainer/devcontainer.json

raw
1 // File only needed for VSCode users to have proper Docker based interpreters
2 {
3 "name": "accelerate_dev_environment",
4 "build": {
5 // ACTION NEEDED: comment/uncomment the relevant line depending on whether you are in a CPU/GPU environment
6 "dockerfile": "../docker/accelerate-cpu/Dockerfile"
7 // "dockerfile": "../docker/accelerate-gpu/Dockerfile"
8 },
9 "runArgs": [
10 // ACTION NEEDED: uncomment the next line if your local machine has GPUs available
11 // "--gpus", "all",
12 // Enable the docker container to access system resources
13 "--ipc", "host"
14 ],
15 "remoteEnv": {
16 "PYTHONPATH": "${containerEnv:PATH}:${containerWorkspaceFolder}"
17 },
18 "customizations": {
19 "vscode": {
20 "extensions": [
21 // Ensure we have IntelliSense in VSCode when running inside container
22 "ms-python.python"
23 ]
24 }
25 },
26 "workspaceFolder": "/workspaces/accelerate",
27 // Need git for VSCode to color code modifications. Only runs when building environment.
28 "onCreateCommand": "apt-get update && apt-get install -y git && pip install -e '.[dev]'"
29 }