Comments (9)
python run_server.py --model_server http://127.0.0.1:7905/v1,这里把127.0.0.1改成你的服务器ip
from qwen-agent.
上面的启动Qwen那里用改吗
from qwen-agent.
还是拒绝连接,而且我发现在启动Qwen时返回的那个连接也上不去,不知道是不是这个原因
from qwen-agent.
启动Qwen那里的命令不用改,上不去的具体报错是什么?
from qwen-agent.
@iaoxuesheng 目前更新了一版代码,我这边测试可以比较好的支持远程服务的情况,你可以先用dashscope api访问qwen,来测试是否是qwen部署问题。
from qwen-agent.
python run_server.py --model_server http://127.0.0.1:7905/v1,这里把127.0.0.1改成你的服务器ip
能否出一个本地部署qwen-agent并使用的完整案例,我看网上本地部署的教程中,都有“启动模型服务 这一步骤,python openai_api.py --server-name 0.0.0.0 --server-port 7905 -c Qwen/Qwen-7B-Chat,但是现在的仓库中 并没有openai_api.py这个文件”?
from qwen-agent.
python run_server.py --model_server http://127.0.0.1:7905/v1,这里把127.0.0.1改成你的服务器ip
能否出一个本地部署qwen-agent并使用的完整案例,我看网上本地部署的教程中,都有“启动模型服务 这一步骤,python openai_api.py --server-name 0.0.0.0 --server-port 7905 -c Qwen/Qwen-7B-Chat,但是现在的仓库中 并没有openai_api.py这个文件”?
openai_api.py是Qwen1用的,不支持Qwen1.5。我们现在推荐大家参考 Qwen1.5 的文档部署一个 openai 兼容的 api,就能使用了。vllm、ollama等等框架都能提供这个 openai 兼容的api。
from qwen-agent.
python run_server.py --model_server http://127.0.0.1:7905/v1,这里把127.0.0.1改成你的服务器ip
能否出一个本地部署qwen-agent并使用的完整案例,我看网上本地部署的教程中,都有“启动模型服务 这一步骤,python openai_api.py --server-name 0.0.0.0 --server-port 7905 -c Qwen/Qwen-7B-Chat,但是现在的仓库中 并没有openai_api.py这个文件”?
openai_api.py是Qwen1用的,不支持Qwen1.5。我们现在推荐大家参考 Qwen1.5 的文档部署一个 openai 兼容的 api,就能使用了。vllm、ollama等等框架都能提供这个 openai 兼容的api。
谢谢,能否出一个完整的部署案例教程
from qwen-agent.
python run_server.py --model_server http://127.0.0.1:7905/v1,这里把127.0.0.1改成你的服务器ip
能否出一个本地部署qwen-agent并使用的完整案例,我看网上本地部署的教程中,都有“启动模型服务 这一步骤,python openai_api.py --server-name 0.0.0.0 --server-port 7905 -c Qwen/Qwen-7B-Chat,但是现在的仓库中 并没有openai_api.py这个文件”?
openai_api.py是Qwen1用的,不支持Qwen1.5。我们现在推荐大家参考 Qwen1.5 的文档部署一个 openai 兼容的 api,就能使用了。vllm、ollama等等框架都能提供这个 openai 兼容的api。
谢谢,能否出一个完整的部署案例教程
vllm参考 https://qwen.readthedocs.io/en/latest/deployment/vllm.html#openai-api-compatible-api-service ,启动 python -m vllm.entrypoints.openai.api_server --model Qwen/Qwen1.5-7B-Chat
后就能有 openai 兼容的服务了。
ollama参考 https://github.com/ollama/ollama/blob/main/docs/openai.md 。
我们近期找时间更新下文档补充下。如果您跑vllm、ollama遇到困难也可以随时提issues(vllm支持高吞吐、ollama则支持本地cpu&gpu部署)
from qwen-agent.
Related Issues (20)
- 使用本地部署的qwen1.5_1.8b,不能调用agent函数 HOT 10
- 模型判断不用调用工具,但依然进行调用工具的函数 HOT 4
- 请问Tools的每个parameter的type目前都支持什么类型 HOT 1
- 请问本项目的function call/agent能力与langchain框架中的流程区别大吗? HOT 3
- 增加异步调用支持 HOT 1
- 如何将一次对话的session_id传给工具使用呢? HOT 1
- lang参数设置语言无效 HOT 6
- 给出的例子大部分是qwen max接口的例子,能否对应本地运行的LLM给出一些例子。
- 本地文档浏览器打开添加后服务端无法读取文件 HOT 5
- 上下文如何把默认的readme去掉? HOT 1
- 调用Agent最终结果打印问题 HOT 2
- 可否考虑加入对GBNF Grammar 的支持? HOT 1
- FnCallAgent工具调用效果不如ReActChat HOT 5
- 为什么我的mac m1运行example的时候会报错 HOT 1
- 如何修改code interpreter工具生成图片的结果地址 HOT 1
- Tools should respect language as well HOT 4
- Reac调用本地部署的千问1.5与灵积API结果不一样 HOT 4
- FileNotFoundError: [Errno 2] No such file or directory: 'workspace/popup_url.jsonl' HOT 1
- 怎么把自己写的agent用run_server.py启动? HOT 5
- function call怎么添加system prompt和few-shot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qwen-agent.