SuperAPI AI Directory

OpenLLM

Fine-tune, serve, deploy, and monitor any open-source LLMs in production. Used in production at BentoML for LLMs-based applications.

Open website

About this tool

OpenLLM is an open-source project whose goal is to enable developers to conveniently self-host large language models. It allows developers to run any open-source LLM (such as Llama 3.3, Qwen2.5, Phi3, DeepSeek, etc.) or custom models with a single command, and to serve them externally in an OpenAI-compatible API form. The project also provides a built-in chat UI, advanced inference backends, and a streamlined workflow for creating enterprise-grade cloud deployments via Docker, Kubernetes, and BentoCloud.

In terms of main capabilities, OpenLLM supports a wide range of open-source LLMs and can run custom models by adding model repositories. To start a local LLM server, you can use the openllm serve command and specify the model version. The server by default is at http://localhost:3000 provides an OpenAI-compatible API, which can be called by various frameworks and tools that support this interface, usually requiring specifying the API host address, model name, and optional API key. The server provides a chat UI at the /chat endpoint, namely http://localhost:3000/chat。此外,可用 The openllm run command starts a chat conversation in the CLI.

A model repository is a directory in OpenLLM for runnable LLMs. The project provides a default model repository containing the latest open-source LLMs such as Llama 3, Mistral, Qwen2, etc., hosted on GitHub. Commands can be used to view all available models, sync the local model list with the latest updates, and view model information. Users can also contribute new models to the default repository, which requires creating and submitting a Bento for that LLM; or set up a custom repository in the format of the default repository, place custom LLMs in the bentos directory, use BentoML to build Bentos and submit them, and then register the custom model repository. Note that currently OpenLLM only supports adding public repositories.

In terms of deployment, OpenLLM supports LLM cloud deployment through BentoML and BentoCloud. BentoCloud is an AI inference platform for enterprise AI teams, providing fully managed infrastructure optimized for LLM inference, with capabilities such as automatic scaling, model orchestration, and observability. After registering and logging in to BentoCloud, run openllm deploy to deploy the model; if deploying a gated model, you need to set HF_TOKEN in the environment variables. After deployment is complete, you can run model inference in the BentoCloud console.

In terms of usage, after installing OpenLLM you can explore interactively. OpenLLM does not store model weights; running gated models requires a Hugging Face token (HF_TOKEN): you need to create a token here, apply for access to the gated model (such as meta-llama/Llama-3.2-1B-Instruct), and set the environment variable via export HF_TOKEN=<your token>.

Applicable scenarios include: developers who need to self-host open-source LLMs with an OpenAI-compatible interface, teams that need to quickly launch and test multiple open-source models locally or in the cloud, and organizations that want enterprise-grade deployment via Docker, Kubernetes, or BentoCloud. The project is actively maintained by the BentoML team, using BentoML and vLLM as the production-grade model serving and LLM backend, chatgpt-lite as the web chat UI, and uv for quickly installing model dependencies. The project welcomes all kinds of contributions, including reporting bugs, submitting or reviewing pull requests, adding LLMs to the default model repository, etc.