Skip to content

About

One-command open source inference stack: LiteLLM + Lens + llm-d + vLLM with a launcher and Grafana

Resources

Stars

31 stars

Watchers

1 watching

Forks

Repository files navigation

Inference Stack

Everything you need to own your inference. Deploy with one command.

Hugging Face    vLLM    llm-d    LiteLLM    Grafana    Lens

Set up with Docker   ·   Set up with Kubernetes   ·   Launch on AWS

Apps send requests to LiteLLM for model routing, then llm-d selects a vLLM replica. Hugging Face supplies model weights; Lens shows traces and Grafana shows metrics collected by Prometheus.

Quickstart

Use AWS to rent GPUs in your own account, Docker Compose on one machine, or Kubernetes with Helm on an existing cluster. Real models need NVIDIA GPUs; simulation works without one.

Docker Compose

curl -fsSL https://github.com/BerriAI/inference-stack/releases/download/v0.4.2/install.sh | bash -s -- docker

Kubernetes

curl -fsSL https://github.com/BerriAI/inference-stack/releases/download/v0.4.2/install.sh | bash -s -- kubernetes

Open localhost:8080 and sign in as admin. The installer tells you where to find the generated password.

Deployments → choose a model → Deploy → Try in LiteLLM. Sign in to LiteLLM with the same password, select your model, and send a prompt.

No GPU? Enable Simulate without a GPU in the model's Settings for canned responses.

AWS

Start with 0 models and 0 GPUs in your own account. Requires a paid AWS account with deployment permissions. AWS bills for the launcher from setup and for GPU machines when you add them. Review GPU choices and prices in the UI.

  1. Launch on AWS. Enter an Admin password of at least 20 characters, keep the other defaults, acknowledge IAM permissions, and choose Create stack.
  2. Wait for CREATE_COMPLETE, then open Outputs → OpenInferenceStack. Sign in as admin with that password.
  3. Open Deployments, choose a model, select an AWS GPU, and choose Add GPU and deploy after reviewing its price.
  4. When Ready, choose Try in LiteLLM. Sign in with the same password, select the model in Chat, and send a message.

GPUs are removed after four hours by default; the launcher stays billable until you delete the stack. New accounts may need a GPU quota increase. Setup, quotas, and cleanup.

Send OTLP to LiteLLM with a LiteLLM key. Open Lens for agent traces and Grafana for health and traffic. Connect your agent.

Setup and prerequisites · Deploy with your agent

The stack

vLLM

Runs models from Hugging Face on your GPUs.

Search the Hugging Face catalogue and compare estimated GPU memory before deployment

LiteLLM

Manage models and send requests through one API or Chat.

LiteLLM Model Hub showing example models served through vLLM

llm-d

Picks a vLLM replica for each request using cache and queue data.

Routing across two simulated replicas, with optional cache and queue weight settings

Grafana

Shows model health, request traffic, and response times.

Grafana stack overview showing the local simulation's model servers and request traffic

Lens

Shows agent traces and logs.

Lens showing example agent runs, including the model and tool calls in a trace


Setup and configuration · Releases · Development · MIT license

About

One-command open source inference stack: LiteLLM + Lens + llm-d + vLLM with a launcher and Grafana

Resources

Stars

31 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages