Skip to content

Installation

The one-line installer downloads a prebuilt binary — no clone, no Rust toolchain, no build. Build from source only if you want to compile it yourself or hack on the engine.

Prebuilt binary

Prebuilt targets: Linux x86-64/arm64, macOS Apple Silicon, Windows x86-64. Every download is checksum-verified against a published .sha256 before it is unpacked or run. (Intel Macs: build from source with cargo install.)

Linux / macOS — installs into ~/.local/bin:

$curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.sh | sh

Windows — installs into %LOCALAPPDATA%\Programs\dlm and adds it to PATH:

$irm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iex

Update & uninstall

Updating just reinstalls the latest release (same DLM_INSTALL_DIR / DLM_CPU env as install); uninstalling removes the binary.

$curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/update.sh | sh
$curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/uninstall.sh | sh

Shell completions

dlm completions <shell> prints a completion script to stdout for bash, zsh, fish, elvish, or powershell. Redirect it to your shell’s completions directory — e.g. for bash:

$dlm completions bash > ~/.local/share/bash-completion/completions/dlm

Build from source

Rust users can build directly from the repo. Both of these compile the host-fallback build, which needs no GPU.

$cargo install --git https://github.com/vedantnimbarte/dlm
$git clone https://github.com/vedantnimbarte/dlm && cd dlm && cargo build --release

Prerequisites

RequirementNotes
Rust 1.75+2021 edition, via rustup. Required to build.
C toolchainbuild-essential (Linux) / Xcode CLT (macOS) / MSVC Build Tools (Windows) — usually already present.
GPU runtime (optional)CUDA Toolkit 12.x — only for the CUDA build; ROCm with hipcc only for the rocm-kernels build. The host fallback needs nothing, and the plain rocm feature needs no toolkit to build (it’s memory-only).

Install Rust, per OS

Linux and macOS use the rustup one-liner:

$curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

GPU builds

The GPU path is vendor-neutral behind a Cargo feature — everything above the backend is identical across vendors. See Build & config for the full feature matrix.

$CUDA_PATH=/usr/local/cuda cargo build --features cuda-kernels
$ROCM_PATH=/opt/rocm cargo build --features rocm-kernels
cuda-kernels compiles the CUDA run_block and enables the GPU kernel; it needs nvcc + a GPU to build a runnable binary. cargo check --features cuda-kernels type-checks the FFI without the toolkit.
AMD compute is rocm-kernels, and it is unverified. It compiles the same kernels.cu with hipcc, but has not yet been parity-checked on a real AMD card — run dlm doctor before trusting its output. NVIDIA (CUDA) is the only backend verified on real hardware against the CPU oracle. The plain rocm feature is memory management only — VRAM query and pinned host memory — so a rocm build still runs inference on the CPU.

Verify

dlm doctor reports the GPU backend and free VRAM, then runs a CPU inference self-check.

$dlm doctor