mirror of
https://github.com/Stability-AI/generative-models.git
synced 2026-02-04 13:24:28 +01:00
Compare commits
2 Commits
helpers-fi
...
devcontain
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3167b358c0 | ||
|
|
ab11af1431 |
45
.devcontainer/devcontainer.json
Normal file
45
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "Python 3",
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers-contrib/features/hatch:2": {
|
||||
"version": "latest"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/pipx-package:1": {
|
||||
"package": "black",
|
||||
"version": "latest",
|
||||
"injections": "pylint pytest",
|
||||
"interpreter": "python3"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
|
||||
"packages": "libgl1-mesa-glx"
|
||||
},
|
||||
"ghcr.io/stability-ai/devcontainer-features/pytorch:1.0.1": {
|
||||
"version": "2.0.1",
|
||||
"cudaVersion": "cpu"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.black-formatter"
|
||||
],
|
||||
"settings": {
|
||||
"[python]": {
|
||||
"diffEditor.ignoreTrimWhitespace": false,
|
||||
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.wordBasedSuggestions": false
|
||||
},
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
"black-formatter.args": [
|
||||
"-l 88"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "git config --global --add safe.directory '*'",
|
||||
"postAttachCommand": "pip install -U -r requirements/pt2.txt;pip install -U -e ."
|
||||
}
|
||||
52
.devcontainer/pytorch-1.13+cu117/devcontainer.json
Normal file
52
.devcontainer/pytorch-1.13+cu117/devcontainer.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "Python 3",
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.8-bullseye",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/nvidia-cuda:1": {
|
||||
"cudaVersion": "11.7"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/hatch:2": {
|
||||
"version": "latest"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/pipx-package:1": {
|
||||
"package": "black",
|
||||
"version": "latest",
|
||||
"injections": "pylint pytest",
|
||||
"interpreter": "python3"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
|
||||
"packages": "libgl1-mesa-glx"
|
||||
},
|
||||
"ghcr.io/stability-ai/devcontainer-features/pytorch:1.0.1": {
|
||||
"version": "1.13.1",
|
||||
"cudaVersion": "cu117"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.black-formatter"
|
||||
],
|
||||
"settings": {
|
||||
"[python]": {
|
||||
"diffEditor.ignoreTrimWhitespace": false,
|
||||
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.wordBasedSuggestions": false
|
||||
},
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
"black-formatter.args": [
|
||||
"-l 88"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"runArgs": [
|
||||
"--gpus",
|
||||
"all"
|
||||
],
|
||||
"postCreateCommand": "git config --global --add safe.directory '*'",
|
||||
"postAttachCommand": "pip install -U -r requirements/pt13.txt;pip install -U -e ."
|
||||
}
|
||||
52
.devcontainer/pytorch-2.0+cu118/devcontainer.json
Normal file
52
.devcontainer/pytorch-2.0+cu118/devcontainer.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "Python 3",
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/nvidia-cuda:1": {
|
||||
"cudaVersion": "11.8"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/hatch:2": {
|
||||
"version": "latest"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/pipx-package:1": {
|
||||
"package": "black",
|
||||
"version": "latest",
|
||||
"injections": "pylint pytest",
|
||||
"interpreter": "python3"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
|
||||
"packages": "libgl1-mesa-glx"
|
||||
},
|
||||
"ghcr.io/stability-ai/devcontainer-features/pytorch:1.0.1": {
|
||||
"version": "2.0.1",
|
||||
"cudaVersion": "cu118"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.black-formatter"
|
||||
],
|
||||
"settings": {
|
||||
"[python]": {
|
||||
"diffEditor.ignoreTrimWhitespace": false,
|
||||
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.wordBasedSuggestions": false
|
||||
},
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
"black-formatter.args": [
|
||||
"-l 88"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"runArgs": [
|
||||
"--gpus",
|
||||
"all"
|
||||
],
|
||||
"postCreateCommand": "git config --global --add safe.directory '*'",
|
||||
"postAttachCommand": "pip install -U -r requirements/pt2.txt;pip install -U -e ."
|
||||
}
|
||||
Reference in New Issue
Block a user