Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,如何使用 fastapi 部署微调后的模型。就像官方的一样,如何修改api.py的脚本??? #51

Open
cristianohello opened this issue Apr 4, 2023 · 1 comment

Comments

@cristianohello
Copy link

你好,如何使用 fastapi 部署微调后的模型
就像官方的一样。如何修改api.py的脚本???
官方的如下:
首先需要安装额外的依赖 pip install fastapi uvicorn,然后运行仓库中的 api.py
python api.py
默认部署在本地的 8000 端口,通过 POST 方法进行调用

curl -X POST "http://127.0.0.1:8000"
-H 'Content-Type: application/json'
-d '{"prompt": "你好", "history": []}'

@hikariming
Copy link
Owner

不好意思哈,我们没有做过web化相关的研究,只拿来做了学术上的测试和验证,你可以去chatglm的issue那边问问?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants