ChatGLM-6B icon indicating copy to clipboard operation
ChatGLM-6B copied to clipboard

[Feature] <api.py能不能支持多进程>

Open liaoweiguo opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

uvicorn.run("api:app", host='0.0.0.0', port=7860, workers=2)

目前的全局变量不支持多进程

Solutions

建议支持uvicorn workers > 1

Additional context

No response

liaoweiguo avatar Apr 19 '23 09:04 liaoweiguo

放在服务器上,不就是多线程了吗

ZXStudio avatar Apr 20 '23 09:04 ZXStudio