LlamaFactory Debug Vscode 配置

47 阅读1分钟
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "console": "integratedTerminal",
            "module": "torch.distributed.run",
            "justMyCode": false,
            "env": {
                "CUDA_VISIBLE_DEVICES": "6,7"
            },
            "args": [
                "--nnodes", "1",
                "--node_rank","0",
                "--nproc_per_node", "2",
                "--master_addr","127.0.0.1",
                "--master_port","20088",
                "src/llamafactory/launcher.py",
                "examples/debug.yaml"
            ]
        }
    ]
}