求助帖:autodl算力服务器实例使用ssh隧道后,本地配置oneapi渠道后测试报错 #596

Open
opened 2025-03-04 13:07:18 +08:00 by xp719xhhmm · 2 comments

我在autodl算力服务器上建立实例,在服务器上运行了
(chinese_llama_alpaca_3) root@autodl-container-0ddb47b5b1-759c79d0:~/Chinese-LLaMA-Alpaca-3-3.0/scripts/oai_api_demo# python openai_api_server.py --gpus 0 --base_model /root/.cache/modelscope/hub/models/ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3
这样一个服务,通过autodl自带的工具建立了ssh隧道,代理服务器端口19327到本地19327,,然后本地配置oneapi渠道,
base url地址为 http://127.0.0.1:19327/v1/chat/completions(或者http://127.0.0.1:19327 http://localhost:19327 等等),然后进行测试都报错,这是什么原因呢?在python运行测试代码测试访问url = "http://localhost:19327/v1/chat/completions",又能给我响应。

我在autodl算力服务器上建立实例,在服务器上运行了 (chinese_llama_alpaca_3) root@autodl-container-0ddb47b5b1-759c79d0:~/Chinese-LLaMA-Alpaca-3-3.0/scripts/oai_api_demo# python openai_api_server.py --gpus 0 --base_model /root/.cache/modelscope/hub/models/ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3 这样一个服务,通过autodl自带的工具建立了ssh隧道,代理服务器端口19327到本地19327,,然后本地配置oneapi渠道, base url地址为 http://127.0.0.1:19327/v1/chat/completions(或者http://127.0.0.1:19327 http://localhost:19327 等等),然后进行测试都报错,这是什么原因呢?在python运行测试代码测试访问url = "http://localhost:19327/v1/chat/completions",又能给我响应。
xp719xhhmm changed title from autodl算力服务器实例使用ssh隧道后,本地配置oneapi渠道后测试报错 to 求助帖:autodl算力服务器实例使用ssh隧道后,本地配置oneapi渠道后测试报错 2025-03-04 13:26:52 +08:00

image 你可以先测试下命令行的教程,映射到6006看看。

<img width="223" alt="image" src="/attachments/21bf3b33-fd5b-44c9-828d-ff6d899aaef8"> 你可以先测试下命令行的教程,映射到6006看看。

我也是同样的报错,我觉得跟隧道没关系,我在本机跑和隧道跑都是connection refused,请问你解决了吗?

我也是同样的报错,我觉得跟隧道没关系,我在本机跑和隧道跑都是connection refused,请问你解决了吗?
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#596
No description provided.