【求助帖】本地代码/命令行无法访问AutoDL云服务器 #767

Open
opened 2025-07-22 22:08:47 +08:00 by CharlieXie · 0 comments

在AutoDL上部署了DeepSeek_llm_7b模型,终端输入如下指令启动:
vllm serve /root/autodl-tmp/DeepSeek-Model --port 8000
并继续通过终端输入指令成功获得大模型响应:
curl http://localhost:8000/v1/chat/completions -d '{"model": "/root/autodl-tmp/DeepSeek-Model","messages": [{"role": "user", "content": "你好,请做个自我介绍"}]}' -H 'Content-Type: application/json'
59daa469297f681ecd54d32d7f97fe5
现在通过AutoDL官方ssh工具,已经可以在本机以http://127.0.0.1:6006/访问云服务器资源
a31466836c6972e2f140ce8e5b98528
在本地gitbash输入curl http://127.0.0.1:6006//v1/chat/completions -d '{"model": "/root/autodl-tmp/DeepSeek-Model","messages": [{"role": "user", "content": "你好,请做个自我介绍"}]}' -H 'Content-Type: application/json'
返回如下报错信息:
image

<html lang="en"> <head> </head>

Error response

Error code: 501

Message: Unsupported method ('POST').

Error code explanation: 501 - Server does not support this operation.

</html>
在AutoDL上部署了DeepSeek_llm_7b模型,终端输入如下指令启动: vllm serve /root/autodl-tmp/DeepSeek-Model --port 8000 并继续通过终端输入指令成功获得大模型响应: curl http://localhost:8000/v1/chat/completions -d '{"model": "/root/autodl-tmp/DeepSeek-Model","messages": [{"role": "user", "content": "你好,请做个自我介绍"}]}' -H 'Content-Type: application/json' <img width="1189" alt="59daa469297f681ecd54d32d7f97fe5" src="/attachments/6ade0b11-ed5b-41db-99a5-bfb29495193d"> 现在通过AutoDL官方ssh工具,已经可以在本机以http://127.0.0.1:6006/访问云服务器资源。 <img width="317" alt="a31466836c6972e2f140ce8e5b98528" src="/attachments/8a7965a9-b162-42fb-8672-c938cb0620c6"> 在本地gitbash输入curl http://127.0.0.1:6006//v1/chat/completions -d '{"model": "/root/autodl-tmp/DeepSeek-Model","messages": [{"role": "user", "content": "你好,请做个自我介绍"}]}' -H 'Content-Type: application/json' 返回如下报错信息: <img width="1079" alt="image" src="/attachments/4c9c4e57-fc14-4746-8542-1ce492038db1"> <html lang="en"> <head> <meta charset="utf-8"> <title>Error response</title> </head> <body> <h1>Error response</h1> <p>Error code: 501</p> <p>Message: Unsupported method ('POST').</p> <p>Error code explanation: 501 - Server does not support this operation.</p> </body> </html>
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#767
No description provided.