OpenAI API Compatibility
Most inferencing packages have their own REST API, but having an OpenAI compatible API is useful for using a variety of clients, or to be able to easily switch between providers.
https://github.com/abetlen/llama-cpp-python
- General llama.cpp Python wrapper
- Has a good enough OpenAI API server as well
https://github.com/c0sogi/llama-api
- Python
- llama.cpp and exllama compatibility
- on-demand model loading
- Docker-focused
- Runs its own llama.cpp
https://github.com/hyperonym/basaran
- Docker-focused
- For HF models
https://github.com/xorbitsai/inference
- Python
- Uses various backends (CTransformers, llama-cpp-python, not well documented)
Some clients provide an OpenAI API compatibility layer:
https://github.com/oobabooga/text-generation-webui
- Uses conda
- Mac or Windows GUI App
- But w/ an OpenAI API layer
- Not open source but free to use
No Comments