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 | shWindows — installs into %LOCALAPPDATA%\Programs\dlm and adds it to PATH:
irm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iex- On x86-64 Linux or Windows with an NVIDIA GPU the installer picks the CUDA (GPU) build and runs on the GPU by default. Everywhere else — no NVIDIA GPU, arm64, macOS — it installs the portable CPU build.
- An AMD GPU gets the CPU build — there is no prebuilt ROCm asset. The AMD compute path (
rocm-kernels) builds from source but has not yet been parity-verified on real AMD hardware; see GPU builds. - Force the CPU build with
DLM_CPU=1(before the curl, or before the Windows one-liner). If the GPU build won’t start — driver missing or too old — the installer says so and falls back to the CPU build on its own. - Set
DLM_INSTALL_DIRto change the install location. - Prefer a container? The repo has a
Dockerfile— see Docker.
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 | shcurl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/uninstall.sh | shShell 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/dlmBuild 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/dlmgit clone https://github.com/vedantnimbarte/dlm && cd dlm && cargo build --releasePrerequisites
| Requirement | Notes |
|---|---|
Rust 1.75+ | 2021 edition, via rustup. Required to build. |
| C toolchain | build-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- Linux — then
sudo apt install build-essential. - macOS — then
xcode-select --install. - Windows — run rustup-init.exe and install the Visual Studio C++ Build Tools (MSVC).
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-kernelsROCM_PATH=/opt/rocm cargo build --features rocm-kernelscuda-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.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