Skip to content

Instantly share code, notes, and snippets.

@ALEXOTANO
Last active March 23, 2024 02:22
Show Gist options
  • Save ALEXOTANO/576de6145e34a2325088c5f7feb555f1 to your computer and use it in GitHub Desktop.
Save ALEXOTANO/576de6145e34a2325088c5f7feb555f1 to your computer and use it in GitHub Desktop.
Devcontainer json confing file with arguments to run with GPUs and needed extensions
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "AudioGen",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
// GPUs disponibles
"--gpus=all",
// pytorch preformance
"--ipc=host"
],
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"github.copilot",
"eamodio.gitlens",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.isort",
"ms-toolsai.jupyter",
"ms-toolsai.vscode-jupyter-cell-tags",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.vscode-jupyter-slideshow",
"christian-kohler.path-intellisense",
"mutantdino.resourcemonitor",
"redhat.vscode-yaml"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment