CogVLM icon indicating copy to clipboard operation
CogVLM copied to clipboard

Can I run CogVLM using actual openai API

Open PhilipAmadasun opened this issue 1 year ago • 3 comments
trafficstars

Is it possible to run CogVLM with the actual openai API (client.chat.completions.create)? If this is not possible, how do we run CogVLM through an A100 server using the openai demo provided in this repo? Our team looked at the openai_api_request.py, and it isn't clear to us how we would keep CogVLM running indefinitely on the A100 server so that we can communicate with CogVLM via the baseurl endpoint we would create for the server. If someone could please explain this, it would be well appreciated.

PhilipAmadasun avatar Apr 06 '24 07:04 PhilipAmadasun

你只要启动api server.py就行,

zRzRzRzRzRzRzR avatar Apr 18 '24 03:04 zRzRzRzRzRzRzR

@zRzRzRzRzRzRzR I don't see any script called api server.py in this repo.

PhilipAmadasun avatar Apr 18 '24 05:04 PhilipAmadasun

https://github.com/THUDM/CogVLM/blob/main/openai_demo/openai_api.py try this

zRzRzRzRzRzRzR avatar Jun 02 '24 14:06 zRzRzRzRzRzRzR