-
Install as wheel & carry it around
pip uninstall -y triton git clone https://github.com/OpenAI/triton cd triton/python python3 setup.py bdist_wheel --dist-dir=dist pip install dist/*.whl // the *.whl can be saved for re-use
-
vs-code minimal debug config
{ "version": "0.2.0", "configurations": [ { "name": "PyDebug: file with args", "type": "debugpy", "request": "launch", "python": "/opt/conda/envs/py_3.9/bin/python", "program": "${file}", // or "<python_script_path>.py", "console": "integratedTerminal", "env": {"AWESOME_ENV":"0"}, "justMyCode": false, "args": [ "--test", "dequantize" ] } ] }
{ "version": "0.2.0", "configurations": [ { "name": "PyDebug: torchrun", "type": "debugpy", "request": "launch", "python": "/opt/conda/envs/py_3.9/bin/python", "program": "/opt/conda/envs/py_3.9/bin/torchrun", "console": "integratedTerminal", "env": {"AWESOME_ENV":"0"}, "justMyCode": false, "args": [ "/path/to/my_script.py", "--arg1", "val1" ] } ]
}
```
3. Use reset
command if terminal shows weird characters on mouse clicks. They results from mouse tracking left on & session disconnects
3.1 Press `Enter`, `~`, `.` one after the other to disconnect from a frozen session.
4. `"debug.inlineValues": "on"` in the settings.json. To show inline values of variables next to it while debugging.
5. Docker:
-
docker cp <source_path> <container_id>:<destination_path> docker cp container_id:/path/in/container /path/on/host
- asdf
- Kill all bg processes by using '%':
kill -9 %