1. 配置

vscode launch.json中按下面配置

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "name": "Python 调试程序: 当前文件",
            "type": "debugpy",
            "request": "launch",
            // "program": "4_vllm_demo.py",

            "module": "vllm.entrypoints.openai.api_server",
            "args": [
                "--model", "/data1/huf/Qwen2.5-1.5B-Instruct"
            ],

            "console": "integratedTerminal",
            "justMyCode": false,
            "env": {
                "CUDA_VISIBLE_DEVICES": "7"
            }
        }
    ]
}
Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐