#166 · Primary category: Inference & Local Deploy

api-for-open-llm

baichuan chatglm code-llama docker internlm langchain llama llama2 llms nlp openai qwen sqlcoder xverse

Openai style api for open large language models, using LLMs just as chatgpt! Support for LLaMA, LLaMA-2, BLOOM, Falcon, Baichuan, Qwen, Xverse, SqlCoder, CodeLLaMA, ChatGLM, ChatGLM2, ChatGLM3 etc.

Project last updated:09/26/24

GitHub Stars

2.5K

Forks

271

Contributors

16

License

Apache-2.0

Why we included this project

Self-hosting an open LLM usually means wiring it into your stack yourself, but this project gives you a ready-made OpenAI-compatible endpoint instead. It serves LLaMA, Qwen, ChatGLM, Baichuan, Yi and other checkpoints through the familiar chat-completions format, so apps and LangChain tools can switch from a commercial API to a local model by changing environment variables rather than rewriting code. It also covers the practical bits: streaming responses, text embeddings for retrieval, loading your own LoRA-tuned weights, and optional vLLM acceleration when you need higher concurrency. If you want to test open models as a cheaper or more controllable backend, this is a fast way to get them behind a standard interface.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category