Repository navigation
Releases
v0.5.2
dlm 0.5: models far bigger than the card. Qwen3.6-35B-A3B, a 22 GB file, decodes at 2.5–2.9 tok/s on a 4 GB GTX 1650 with 16 GB of RAM.
This is the first 0.5 release with every build attached. v0.5.0 and v0.5.1 have the same engine but shipped without their Windows CUDA build: the newest MSVC on GitHub's Windows runner crashes CUDA's compiler, and the fix for that then tripped over Git Bash's link.
Install
curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.sh | shirm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iexThe installer picks the CUDA build when it finds an NVIDIA GPU. Docs and the Can I run it? calculator: https://dlm-frontend.vercel.app
Highlights
New models
- Qwen3.5/3.6 MoE (text), including Qwen3.6-35B-A3B from safetensors or its GGUF. It streams on a 4 GB card.
- Gemma 4 E2B and E4B (text). E4B decodes at 18.6 tok/s on the GPU.
- Image input for Gemma 3 4B/12B/27B:
dlm generate --image, orimage_urlparts on the API. The vision tower comes from the checkpoint or a llama.cppmmprojfile. - DeepSeek-V3/R1 routing. V3 checkpoints were refused before.
Streaming, much faster (all measured on a GTX 1650, 4 GB)
- Streamed MoE, rebuilt: experts cached in RAM, fetched once per batch, evicted by routing frequency, and prefetched from the next layer's router. TinyMixtral int4 decode went from 0.28 to 12.8 tok/s.
dlm packquantizes a safetensors model once, ahead of time. Streamed Qwen3-1.7B int4 decode went from 0.06 to 1.0 tok/s, at half the disk.- Direct disk reads. Streamed weights arrive in one unbuffered read instead of through the memory map: 1,344 MB/s against 461 on NVMe.
- Partial RAM caches now hit. Every streaming cache evicts the most recently used layer, so a cache smaller than the model still serves its share.
Speculative decoding
--speculative mtpdrafts with Qwen3.5/3.6's own multi-token-prediction head: Qwen3.6-35B went from 1.5–1.6 to 2.1–2.6 tok/s.- An EAGLE-3 head works as
--draft-model-pathon a resident GPU model. - Hybrid models speculate too. Greedy output is unchanged.
API
- Tool calling for Llama 3.1/3.2 and Mistral v0.3, alongside ChatML.
--embedding-pooling auto|last|mean, and--prefix-cache-dirto keep cached prompt prefixes across restarts.
Upgrading from 0.4
--kv-quant int4on the GPU is now int4. It used to fall back to int8. It holds 1.8x the context but costs real accuracy; the default stays int8.- DeepSeek-V2 output changes. Its RoPE rotated the wrong pairs of dimensions, so every attention score was off; it now matches
transformersto 1e-6. - Gemma GGUF files now load, with a fixed tokenizer and norms.
- Streamed weights are read directly from disk.
DLM_MMAP_READS=1restores the old memory-map copies. - JSON keeps the client's key order, so tool definitions and schema properties reach the prompt as sent.
Known gaps
The GPU code has still only run on Turing (a GTX 1650). Gemma 4 runs resident only. Qwen3.6 is text only, and its XML tool calls are refused. DeepSeek-V3 routing has been checked on a tiny random checkpoint, not a real V3. The Llama 3 and Mistral tool formats are checked against their templates, not on the models. The full ledger is in RELEASING.md. If you have newer hardware, a test run would help.
Everything else, with the measurements behind each item, is in CHANGELOG.md.
Full Changelog since 0.4.1: v0.4.1...v0.5.2
v0.5.1
Use v0.5.2: the same engine, with every build attached, including Windows CUDA.
dlm 0.5: models far bigger than the card. Qwen3.6-35B-A3B, a 22 GB file, decodes at 2.5–2.9 tok/s on a 4 GB GTX 1650 with 16 GB of RAM.
The same engine as v0.5.0. This release was meant to restore the Windows CUDA build 0.5.0 lost, but that build failed again, so on Windows the installer still falls back to the CPU build. Linux, macOS and the Linux CUDA build are all attached. A fixed build will follow.
Install
curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.sh | shirm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iexThe installer picks the CUDA build when it finds an NVIDIA GPU. Docs and the Can I run it? calculator: https://dlm-frontend.vercel.app
Highlights
New models
- Qwen3.5/3.6 MoE (text), including Qwen3.6-35B-A3B from safetensors or its GGUF. It streams on a 4 GB card.
- Gemma 4 E2B and E4B (text). E4B decodes at 18.6 tok/s on the GPU.
- Image input for Gemma 3 4B/12B/27B:
dlm generate --image, orimage_urlparts on the API. The vision tower comes from the checkpoint or a llama.cppmmprojfile. - DeepSeek-V3/R1 routing. V3 checkpoints were refused before.
Streaming, much faster (all measured on a GTX 1650, 4 GB)
- Streamed MoE, rebuilt: experts cached in RAM, fetched once per batch, evicted by routing frequency, and prefetched from the next layer's router. TinyMixtral int4 decode went from 0.28 to 12.8 tok/s.
dlm packquantizes a safetensors model once, ahead of time. Streamed Qwen3-1.7B int4 decode went from 0.06 to 1.0 tok/s, at half the disk.- Direct disk reads. Streamed weights arrive in one unbuffered read instead of through the memory map: 1,344 MB/s against 461 on NVMe.
- Partial RAM caches now hit. Every streaming cache evicts the most recently used layer, so a cache smaller than the model still serves its share.
Speculative decoding
--speculative mtpdrafts with Qwen3.5/3.6's own multi-token-prediction head: Qwen3.6-35B went from 1.5–1.6 to 2.1–2.6 tok/s.- An EAGLE-3 head works as
--draft-model-pathon a resident GPU model. - Hybrid models speculate too. Greedy output is unchanged.
API
- Tool calling for Llama 3.1/3.2 and Mistral v0.3, alongside ChatML.
--embedding-pooling auto|last|mean, and--prefix-cache-dirto keep cached prompt prefixes across restarts.
Upgrading from 0.4
--kv-quant int4on the GPU is now int4. It used to fall back to int8. It holds 1.8x the context but costs real accuracy; the default stays int8.- DeepSeek-V2 output changes. Its RoPE rotated the wrong pairs of dimensions, so every attention score was off; it now matches
transformersto 1e-6. - Gemma GGUF files now load, with a fixed tokenizer and norms.
- Streamed weights are read directly from disk.
DLM_MMAP_READS=1restores the old memory-map copies. - JSON keeps the client's key order, so tool definitions and schema properties reach the prompt as sent.
Known gaps
The GPU code has still only run on Turing (a GTX 1650). Gemma 4 runs resident only. Qwen3.6 is text only, and its XML tool calls are refused. DeepSeek-V3 routing has been checked on a tiny random checkpoint, not a real V3. The Llama 3 and Mistral tool formats are checked against their templates, not on the models. The full ledger is in RELEASING.md. If you have newer hardware, a test run would help.
Everything else, with the measurements behind each item, is in CHANGELOG.md.
Full Changelog since 0.4.1: v0.4.1...v0.5.1
v0.5.0
Use v0.5.2: the same engine, with every build attached, including Windows CUDA.
dlm 0.5: models far bigger than the card. Qwen3.6-35B-A3B, a 22 GB file, decodes at 2.5–2.9 tok/s on a 4 GB GTX 1650 with 16 GB of RAM.
Install
curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.sh | shirm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iexThe installer picks the CUDA build when it finds an NVIDIA GPU. Docs and the Can I run it? calculator: https://dlm-frontend.vercel.app
No Windows CUDA build in this release. CUDA 13.2's compiler crashed building it on GitHub's Windows runner. On Windows the installer falls back to the CPU build; Linux, macOS and the Linux CUDA build are all attached. A fixed build will follow.
Highlights
New models
- Qwen3.5/3.6 MoE (text), including Qwen3.6-35B-A3B from safetensors or its GGUF. It streams on a 4 GB card.
- Gemma 4 E2B and E4B (text). E4B decodes at 18.6 tok/s on the GPU.
- Image input for Gemma 3 4B/12B/27B:
dlm generate --image, orimage_urlparts on the API. The vision tower comes from the checkpoint or a llama.cppmmprojfile. - DeepSeek-V3/R1 routing. V3 checkpoints were refused before.
Streaming, much faster (all measured on a GTX 1650, 4 GB)
- Streamed MoE, rebuilt: experts cached in RAM, fetched once per batch, evicted by routing frequency, and prefetched from the next layer's router. TinyMixtral int4 decode went from 0.28 to 12.8 tok/s.
dlm packquantizes a safetensors model once, ahead of time. Streamed Qwen3-1.7B int4 decode went from 0.06 to 1.0 tok/s, at half the disk.- Direct disk reads. Streamed weights arrive in one unbuffered read instead of through the memory map: 1,344 MB/s against 461 on NVMe.
- Partial RAM caches now hit. Every streaming cache evicts the most recently used layer, so a cache smaller than the model still serves its share.
Speculative decoding
--speculative mtpdrafts with Qwen3.5/3.6's own multi-token-prediction head: Qwen3.6-35B went from 1.5–1.6 to 2.1–2.6 tok/s.- An EAGLE-3 head works as
--draft-model-pathon a resident GPU model. - Hybrid models speculate too. Greedy output is unchanged.
API
- Tool calling for Llama 3.1/3.2 and Mistral v0.3, alongside ChatML.
--embedding-pooling auto|last|mean, and--prefix-cache-dirto keep cached prompt prefixes across restarts.
Upgrading from 0.4
--kv-quant int4on the GPU is now int4. It used to fall back to int8. It holds 1.8x the context but costs real accuracy; the default stays int8.- DeepSeek-V2 output changes. Its RoPE rotated the wrong pairs of dimensions, so every attention score was off; it now matches
transformersto 1e-6. - Gemma GGUF files now load, with a fixed tokenizer and norms.
- Streamed weights are read directly from disk.
DLM_MMAP_READS=1restores the old memory-map copies. - JSON keeps the client's key order, so tool definitions and schema properties reach the prompt as sent.
Known gaps
The GPU code has still only run on Turing (a GTX 1650). Gemma 4 runs resident only. Qwen3.6 is text only, and its XML tool calls are refused. DeepSeek-V3 routing has been checked on a tiny random checkpoint, not a real V3. The Llama 3 and Mistral tool formats are checked against their templates, not on the models. The full ledger is in RELEASING.md. If you have newer hardware, a test run would help.
Everything else, with the measurements behind each item, is in CHANGELOG.md.
Full Changelog: v0.4.1...v0.5.0
v0.4.1
dlm 0.4: run models bigger than your VRAM, now faster, with a much wider API. This is the first 0.4 release with every build attached. v0.4.0 has the same code but shipped without its Apple Silicon and Linux CUDA builds, because two GitHub runner images had changed underneath the release workflow.
Install
curl -fsSL https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.sh | shirm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iexThe installer picks the CUDA build when it finds an NVIDIA GPU. Docs and the Can I run it? calculator: https://dlm-frontend.vercel.app
Highlights since 0.3.0
Bigger models on smaller cards
- GGUF files, the format local models ship in, including 2- and 3-bit types (Q2_K, Q3_K, IQ2/IQ3).
dlm search --ggufanddlm pullfind and fetch them. - A model too big for the card streams on its own.
--gpu-layers Nruns the layers that don't fit on the CPU instead. - The KV cache can live in host RAM when the context won't fit on the card.
- Mixture-of-Experts models run on the resident GPU path.
Speed (all measured on a GTX 1650, 4 GB)
- GPU prefill is 4.6–6x faster, and decode is up to 1.7x faster.
- Prefix caching on the GPU, on by default. A repeated 1,590-token system prompt went from 14.1 s to 0.27 s, with identical output.
- Chunked prefill. A long prompt arriving no longer freezes other streams: their longest pause went from 13.9 s to 0.41 s.
- Batched decode with a paged KV pool, and speculative decoding without a draft model, on by default where it helps.
Memory
- The GPU's KV cache is int8 by default: 1.76x the context in the same VRAM, at fp16 speed, and within 0.005 nats/token of fp16 on every model measured.
Models
- Phi-3 / Phi-3.5 and GPT-2 are verified. Gemma 3 runs as a text model (270M–27B). Falcon is config-verified only: no Falcon checkpoint has been run yet.
- The chat template is now detected from the checkpoint.
API (OpenAI- and Anthropic-compatible)
- Tool calling (ChatML models),
/v1/embeddings,logprobs,n,logit_bias, frequency and presence penalties, DRY sampling. - Constrained output: JSON mode, JSON Schema, and GBNF grammars.
--loraserves a model with a PEFT adapter merged in.--cors-originlets browser UIs call the API.
Running it
- A Docker image (165 MB, needs only the NVIDIA driver).
- Load gauges on
/metrics, a bounded request queue (--queue-timeout, requestpriority), graceful shutdown, and HTTP keep-alive. dlm pullchecks downloads against the hub's SHA-256.
Upgrading from 0.3.0
- Model ids: responses and
/v1/modelsnow report the checkpoint's own name (e.g.qwen2.5-0.5b), notdlm. max_tokens: a request without it now runs to end-of-sequence instead of stopping at 128 tokens. It is still capped by the context window.- KV cache: the GPU's cache is int8 by default.
--kv-quant f16restores the old one. Comparedlm benchresults against an older baseline with the same flag.
Known gaps
The GPU code has only run on Turing (a GTX 1650). The kernels for Ampere and newer compile but have never executed. AMD (ROCm) has never run on real hardware, multi-GPU is untested, and Gemma 2 hasn't been tested past 4,096 tokens. DeepSeek-V2 has only run on the CPU path. The full ledger is in RELEASING.md. If you have newer hardware, a test run would help.
Everything else, with the measurements behind each item, is in CHANGELOG.md.
What's Changed
- Release 0.4.1: move the release builds off two retired runner images by @vedantnimbarte in #126
Full Changelog since 0.3.0: v0.3.0...v0.4.1
v0.4.0
Warning
Use v0.4.1 instead. It's the same code. This release is missing its Apple Silicon and Linux CUDA builds, because two of GitHub's release runners changed underneath the workflow (macos-14 was retired, and ubuntu-latest moved to Ubuntu 26.04, which has no CUDA 13.2). The install scripts already pick v0.4.1.
What's Changed
- Add a real config + tokenizer fixture per model family to CI by @vedantnimbarte in #82
- Enforce rustfmt, verify the MSRV, and close the CI gaps around it by @vedantnimbarte in #83
- 0.4.0: model-family coverage (Phi-3, GPT-2, Falcon), audit fixes, and CI hardening by @vedantnimbarte in #84
- style: cargo fmt by @vedantnimbarte in #92
- Speed up GPU inference, fix speculative decoding and GPT-2, add Gemma 3 by @vedantnimbarte in #93
- Add dlm bench, a speed harness, and record GTX 1650 baselines by @vedantnimbarte in #94
- Phase 1 quick wins: KV planning fix, CPU thread pool, faster sampling, streamed buffer reuse by @vedantnimbarte in #95
- Phase 2 (part 1): faster GPU kernels and fp16 device KV by @vedantnimbarte in #96
- fp16 KV default, batched decode, paged KV and admission control for concurrent requests by @vedantnimbarte in #97
- Phase 4 (part 1): faster streaming for models bigger than VRAM by @vedantnimbarte in #98
- Share cached prompt prefixes' KV blocks on the GPU (on by default) by @vedantnimbarte in #99
- Chunked prefill: long prompts no longer stall other streams by @vedantnimbarte in #100
- Fix byte-level tokenization: split with the model's own regex by @vedantnimbarte in #101
- Phase 6.0 correctness: act on ignored config keys, and check against transformers by @vedantnimbarte in #102
- Run Mixture-of-Experts models on the resident GPU path by @vedantnimbarte in #103
- Read each weight once per batch, and reduce with warp shuffles by @vedantnimbarte in #104
- Read GGUF files, the format local models ship in by @vedantnimbarte in #105
- Decode ggml's blocks in the kernels, and expand them only where it pays by @vedantnimbarte in #109
- Find and fetch GGUF files from the hub by @vedantnimbarte in #107
- Answer the clients that dlm was turning away by @vedantnimbarte in #108
- Faster decode and prefill on small GPUs, better low-bit quality, constrained sampling by @vedantnimbarte in #114
- Batched decode: share the LM head and attention, multi-row GEMVs for every format by @vedantnimbarte in #115
- Phase 1: GPU sampling, int8 GPU KV, tiled long-prompt prefill, fused batched launches by @vedantnimbarte in #116
- Phase 2: GPU speculation, batch-1 kernel fixes, --lm-head-int4, fewer attention launches by @vedantnimbarte in #117
- Re-measure dlm against vLLM after the batched, phase 1 and phase 2 work by @vedantnimbarte in #118
- Phase 3: 2-3-bit GGUF formats, faster streaming, KV in host RAM, auto-streaming by @vedantnimbarte in #119
- Phase 4 accuracy: balance key channels, int8 KV by default on the GPU by @vedantnimbarte in #120
- Phase 4 API: logprobs, n, embeddings, tool calling, LoRA by @vedantnimbarte in #121
- Phase 4 operations: queue timeout and priority, load gauges, soak test, Dockerfile by @vedantnimbarte in #122
- Measure tokens per joule and cost per token against vLLM by @vedantnimbarte in #123
- Answer a timed-out streamed /v1/messages with 503, and fix --api-key/--speculative help by @vedantnimbarte in #124
- Close the 0.4.0 changelog: fold July's untagged section into this release by @vedantnimbarte in #125
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- Add Mixture-of-Experts (MoE) support: Mixtral + Qwen, CPU and GPU streaming by @vedantnimbarte in #50
- MoE launch-readiness: expert budget, CPU expert streaming, per-session GPU KV by @vedantnimbarte in #51
- A1: batch-aware KV planning + --max-batch + oversubscription guard by @vedantnimbarte in #52
- A2: sliding-window attention (Mistral) by @vedantnimbarte in #53
- A3: keep MoE router in native precision under --quant by @vedantnimbarte in #54
- A4: prefix-cache repetition penalty covers the cached prefix by @vedantnimbarte in #55
- B4: SentencePiece Unigram tokenizer (Gemma / Llama-spm) by @vedantnimbarte in #56
- B1: Gemma (v1) support — (1+w) RMSNorm, GeGLU, embedding scaling by @vedantnimbarte in #57
- B2: Qwen3-dense support (per-head Q/K RMSNorm) by @vedantnimbarte in #58
- B3: GPTQ act-order + AWQ (experimental, f32 decode) by @vedantnimbarte in #59
- C1: YaRN RoPE scaling (DeepSeek / Qwen2.5-1M) by @vedantnimbarte in #60
- C2: DeepSeek MLA — CPU oracle by @vedantnimbarte in #61
- C3: MLA on GPU (dlm_mla_attn + dlm_dense_ffn, resident dense-FFN) by @vedantnimbarte in #62
- D4: host-RAM expert cache (skip re-dequant on VRAM eviction) by @vedantnimbarte in #63
- D3: streaming-GPU keeps hidden resident across the stack by @vedantnimbarte in #64
- D5: KvLayerCache::truncate (speculative rollback hook) by @vedantnimbarte in #65
- D1: real multi-GPU compute (MultiGpuKernel) by @vedantnimbarte in #66
- D2: run_block_batched seam + generate_batch by @vedantnimbarte in #67
- E: AMD ROCm/HIP compute (backend-agnostic GPU stack) by @vedantnimbarte in #68
- F1: signed releases (minisign) + installer verification by @vedantnimbarte in #69
- G2: router-history expert prefetch (streaming MoE, GPU) by @vedantnimbarte in #70
- Fix stale router-quantization comment in load_moe_ffn by @vedantnimbarte in #71
- MLA on GPU: streaming kernel, including MLA + MoE (DeepSeek-V2/V3) by @vedantnimbarte in #72
- Point AMD users at rocm-kernels instead of claiming AMD GPU compute is missing by @vedantnimbarte in #73
- Gemma2 support (CPU + GPU) by @vedantnimbarte in #74
- Support --prefix-cache-size on the GPU path by @vedantnimbarte in #75
- G1 + D2: grouped expert GEMM and batched decode block by @vedantnimbarte in #76
- Close out the ponytail debt ledger by @vedantnimbarte in #77
- Make Gemma, Mistral and DeepSeek actually run on real checkpoints by @vedantnimbarte in #78
- Harden the release path: resumable pulls, honest installer, deflaked tests by @vedantnimbarte in #79
- Release 0.3.0: bump version, refresh the verified/unverified ledger by @vedantnimbarte in #80
- Release v0.3.0 by @vedantnimbarte in #81
Full Changelog: v0.2.1...v0.3.0
v0.2.1
What's Changed
- Harden distributed serving and fix install/UX honesty gaps by @vedantnimbarte in #48
- release: prepare v0.2.1 by @vedantnimbarte in #49
Full Changelog: v0.2.0...v0.2.1
v0.2.0
What's Changed
- chore: pin *.sh to LF via .gitattributes by @vedantnimbarte in #46
- feat(vram): --safety-margin-gb + frame dlm for all card sizes by @vedantnimbarte in #47
Full Changelog: v0.1.4...v0.2.0
v0.1.4
What's Changed
- fix(gpu): CUDA 13.2 toolkit for Windows/Linux release builds; bump v0.1.4 by @vedantnimbarte in #45
Full Changelog: v0.1.3...v0.1.4
v0.1.3
What's Changed
- fix(install): request the checksum at its real name, not .sha256 by @vedantnimbarte in #42
- feat: ship static-CUDA GPU builds (driver-only) for Linux + Windows by @vedantnimbarte in #43
- fix(gpu): build the Windows static-CUDA binary (nvcc host-compiler guard) by @vedantnimbarte in #44
Full Changelog: v0.1.2...v0.1.3