-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(runner): update dev container and docs
This commit updates the dev container so that developers know which run argument to enable when using GPU parallelism. It also adds a debug config example to the developer docs.
- Loading branch information
Showing
2 changed files
with
74 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,35 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "ai-runner", | ||
// Image to use for the dev container. More info: https://containers.dev/guide/dockerfile. | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
// "dockerfile": "../docker/Dockerfile.text_to_speech", | ||
"context": ".." | ||
}, | ||
"runArgs": [ | ||
"--gpus=all" | ||
], | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.black-formatter" | ||
] | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
8000 | ||
], | ||
// Use 'mounts' to make a list of local folders available inside the container. | ||
"mounts": [ | ||
// "source=${localWorkspaceFolder}/models,target=/models,type=bind" | ||
"source=${localEnv:HOME}/.lpData/models,target=/models,type=bind" | ||
] | ||
"name": "ai-runner", | ||
// Image to use for the dev container. More info: https://containers.dev/guide/dockerfile. | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
// "dockerfile": "../docker/Dockerfile.text_to_speech", | ||
"context": ".." | ||
}, | ||
"runArgs": [ | ||
"--gpus=all" | ||
// "--shm-size=1g" // Increase shared memory size to 1GB for GPU parallelism. | ||
], | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.black-formatter" | ||
] | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
8000 | ||
], | ||
// Use 'mounts' to make a list of local folders available inside the container. | ||
"mounts": [ | ||
// "source=${localWorkspaceFolder}/models,target=/models,type=bind" | ||
"source=${localEnv:HOME}/.lpData/models,target=/models,type=bind" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters