Skip to content

Releases

v0.5.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 10:04
a3a0fa4

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 | sh
irm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iex

The 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, or image_url parts on the API. The vision tower comes from the checkpoint or a llama.cpp mmproj file.
  • 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 pack quantizes 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 mtp drafts 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-path on 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-dir to keep cached prompt prefixes across restarts.

Upgrading from 0.4

  • --kv-quant int4 on 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 transformers to 1e-6.
  • Gemma GGUF files now load, with a fixed tokenizer and norms.
  • Streamed weights are read directly from disk. DLM_MMAP_READS=1 restores 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

Choose a tag to compare

@github-actions github-actions released this 23 Nov 09:17
a073ce1

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 | sh
irm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iex

The 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, or image_url parts on the API. The vision tower comes from the checkpoint or a llama.cpp mmproj file.
  • 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 pack quantizes 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 mtp drafts 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-path on 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-dir to keep cached prompt prefixes across restarts.

Upgrading from 0.4

  • --kv-quant int4 on 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 transformers to 1e-6.
  • Gemma GGUF files now load, with a fixed tokenizer and norms.
  • Streamed weights are read directly from disk. DLM_MMAP_READS=1 restores 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

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:20
424ca21

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 | sh
irm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iex

The 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, or image_url parts on the API. The vision tower comes from the checkpoint or a llama.cpp mmproj file.
  • 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 pack quantizes 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 mtp drafts 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-path on 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-dir to keep cached prompt prefixes across restarts.

Upgrading from 0.4

  • --kv-quant int4 on 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 transformers to 1e-6.
  • Gemma GGUF files now load, with a fixed tokenizer and norms.
  • Streamed weights are read directly from disk. DLM_MMAP_READS=1 restores 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

Choose a tag to compare

@github-actions github-actions released this 12 Nov 16:42
457c47c

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 | sh
irm https://raw.githubusercontent.com/vedantnimbarte/dlm/main/install.ps1 | iex

The 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 --gguf and dlm pull find and fetch them.
  • A model too big for the card streams on its own. --gpu-layers N runs 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.
  • --lora serves a model with a PEFT adapter merged in. --cors-origin lets 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, request priority), graceful shutdown, and HTTP keep-alive.
  • dlm pull checks downloads against the hub's SHA-256.

Upgrading from 0.3.0

  • Model ids: responses and /v1/models now report the checkpoint's own name (e.g. qwen2.5-0.5b), not dlm.
  • 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 f16 restores the old one. Compare dlm bench results 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

v0.4.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 12 Nov 15:49
fa266b4

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

Choose a tag to compare

@github-actions github-actions released this 30 Jul 13:35
36b65bb

What's Changed

Full Changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 17 Jul 15:59
26b117a

What's Changed

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 10:34

What's Changed

Full Changelog: v0.1.4...v0.2.0

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 15 Jul 15:22
348984b

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

Choose a tag to compare

@github-actions github-actions released this 15 Jul 13:20
c4f7bcd

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