launch.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "Python Debugger: Current File",
  9. "type": "python",
  10. "request": "launch",
  11. "program": "${file}",
  12. "console": "integratedTerminal",
  13. "justMyCode": false,
  14. "env": {
  15. "CUDA_VISIBLE_DEVICES": "1",
  16. "LD_LIBRARY_PATH": "/home/karl/faster-auto-subtitle/venv/lib/python3.11/site-packages/nvidia/cublas/lib:/home/karl/faster-auto-subtitle/venv/lib/python3.11/site-packages/nvidia/cudnn/lib"
  17. },
  18. "args": [
  19. "--model",
  20. "base"
  21. ]
  22. },
  23. {
  24. "name": "Current (withenv)",
  25. "type": "debugpy",
  26. "request": "launch",
  27. "program": "${workspaceFolder}/run_with_env.sh",
  28. "console": "integratedTerminal",
  29. "justMyCode": false,
  30. "args": [
  31. "${file}",
  32. "--model",
  33. "base"
  34. ]
  35. }
  36. ]
  37. }