【求助帖】本地代码/命令行无法访问AutoDL云服务器 #767
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#767
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
在AutoDL上部署了DeepSeek_llm_7b模型,终端输入如下指令启动:



<html lang="en"> <head> </head>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'
现在通过AutoDL官方ssh工具,已经可以在本机以http://127.0.0.1:6006/访问云服务器资源。
在本地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'
返回如下报错信息:
Error response
Error code: 501
Message: Unsupported method ('POST').
Error code explanation: 501 - Server does not support this operation.
</html>