Documentation
dlm (Dynamic LLM) is a Rust inference engine that streams transformer layers in and out of VRAM as it computes — so a 70B model runs on 16 GB of consumer VRAM. This is the reference: the CLI, the HTTP API, the build options, and the architecture underneath.
Quickstart
One line installs a prebuilt binary. Then pull a model from the Hugging Face hub and serve it — no Python runtime, no clone, no build.
curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.sh | shdlm pull Qwen/Qwen2.5-0.5B-Instructdlm serve --model-path ./models/Qwen2.5-0.5B-Instruct --port 8000The Installation page covers per-OS and per-GPU-backend details, or follow the guided Get started walkthrough.
Explore the docs
CLI reference
Every subcommand — search, pull, profile, serve, generate, tokenize, doctor — with flags, examples, and output.
HTTP API
The OpenAI-compatible server: chat/completions with SSE streaming, sampling parameters, auth, and usage fields.
Build & config
Cargo features for CUDA / ROCm / host fallback, environment variables, device selection, and chat templates.
Architecture & math
The three VRAM zones, the A/B schedule, the LayersToLoad formula, the compute kernels, and distributed serving.