mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
56 lines
1.6 KiB
JSON
56 lines
1.6 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Run current config",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/run.py",
|
|
"args": [
|
|
"${file}"
|
|
],
|
|
"env": {
|
|
"CUDA_LAUNCH_BLOCKING": "1",
|
|
"DEBUG_TOOLKIT": "1"
|
|
},
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Run current config (cuda:1)",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/run.py",
|
|
"args": [
|
|
"${file}"
|
|
],
|
|
"env": {
|
|
"CUDA_LAUNCH_BLOCKING": "1",
|
|
"DEBUG_TOOLKIT": "1",
|
|
"CUDA_VISIBLE_DEVICES": "1"
|
|
},
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Python: Debug Current File",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Python: Debug Current File (cuda:1)",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"console": "integratedTerminal",
|
|
"env": {
|
|
"CUDA_LAUNCH_BLOCKING": "1",
|
|
"CUDA_VISIBLE_DEVICES": "1"
|
|
},
|
|
"justMyCode": false
|
|
},
|
|
]
|
|
} |