VSCode:deepspeed调试【.vscode/launch.json配置】

在控制台利用

which deepspeed

找到 deepspeed路径:

/home/wyr/anaconda3/envs/rlhf/bin/deepspeed

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "step1_sft",
            "type": "python",
            "request": "launch",
            "program": "/home/wyr/anaconda3/envs/rlhf/bin/deepspeed", //"${file}",
            "console": "integratedTerminal",
            "justMyCode": true,
            "args": [
                "--num_

你可能感兴趣的:(图神经网络,#,LLM/训练,vscode,ide,编辑器)