Practical overview
When it fits
Use OpenLLM when you want to run an open-source model yourself and expose it through an API compatible with OpenAI-style clients.
Who it is for
- Developers building applications that need an API connection to a self-hosted open-source language model.
- Teams setting up local or cloud inference services and able to meet the selected model’s compute requirements.
Documented uses
- Serve a supported open-source model behind an OpenAI-compatible API.
- Connect compatible client libraries to a locally launched model server.
- Try a served model through the browser chat UI or the command line.
Requirements & limits
- GPU requirements depend on the model; the repository lists examples ranging from 12 GB to several 80 GB GPUs.
- OpenLLM does not store model weights.
- Gated models require Hugging Face access and a token set as
HF_TOKEN. - The API key for client authentication is described as optional.
- The repository describes Docker, Kubernetes and BentoCloud deployment workflows in addition to its local server example.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Start a local server for a supported model
Launch the documented Llama 3.2 1B model as a local OpenAI-compatible API service.
Before you start
- OpenLLM installed with pip.
- Compute that meets the listed requirement for the selected model; the repository lists 24 GB GPU memory for llama3.2:1b.
- For a gated model, a Hugging Face token and access to that model.
Steps
Install OpenLLM with the command below.
pip install openllmFor a gated model, request access and set the Hugging Face token as the
HF_TOKENenvironment variable.Run
openllm serve llama3.2:1b.
Expected outcome
The local server is documented at http://localhost:3000 and exposes OpenAI-compatible APIs.
Guide limitations
- OpenLLM does not store model weights.
- Model compute requirements vary; the cited GPU requirement is specific to the selected model.
- The repository notes that model names can differ depending on the client tool.
Connect an OpenAI Python client to the local server
Send a chat-completion request to an OpenLLM server already running locally.
Before you start
- A running OpenLLM server at http://localhost:3000.
- The OpenAI Python client.
Steps
Set the client base URL to
http://localhost:3000/v1.Use the model name expected by the client and server.
Submit a chat-completion request; the README example enables streaming.
Expected outcome
The client sends a chat request to the local OpenLLM API and can receive streamed response content.
Guide limitations
- This recipe covers client use after the server is running; it does not install the client.
- The API key is optional for OpenLLM client authentication, though the README example supplies a placeholder value.
- The repository notes that model names may vary by client.
Compare options for Model inference and serving
These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.
| Project | Documented purpose | Platform | Access and requirements |
|---|---|---|---|
| Openllm | Serve a supported open-source model behind an OpenAI-compatible API. | Cloud, Self-hosted, Server | |
| Morphingdb | Import a libtorch model and create predictions from values in a PostgreSQL table. | Docker, Linux, Self-hosted, Server | The README documents a Docker image and a build-from-repository option, followed by connecting to PostgreSQL and enabling the pgdl extension. |
| Gateway — pyadav | Send chat-completion requests to a provider through a common server endpoint. | Server | The repository is public and identifies the project as Apache-2.0 licensed. README installation instructions include binaries, platform package managers and Docker. |
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 7 October 2026
- Original website title
- bentoml/OpenLLM · Official homepage title · retained in its source language

