Skip to content

Troubleshooting

Most issues are a model that won’t fit, an unsupported checkpoint, or a GPU build that can’t find its runtime. Start with dlm doctor, then match your symptom below.

First: run doctor

It reports the GPU backend and free VRAM, runs a CPU inference self-check, and — with --model-path — confirms the checkpoint loads and tokenizes.

$dlm doctor --model-path /path/to/model

Common errors

SymptomFix
Won’t fit / slow because it streamsOn the GPU a model whose weights don’t fit now streams on its own (the startup placement line says so), and a resident model whose full context doesn’t fit keeps some layers’ KV in host RAM (kv offload). To make it faster, start with --quant int4 — it shrinks each layer 4x at load and often removes streaming entirely. Or try --gpu-layers N, which runs the layers after N on the CPU instead of streaming them — measure both with dlm bench. Still refused: weights that don’t fit with --gpu-layers or a draft model, and a --max-batch whose KV leaves no room — lower --max-batch or --context-length, or --safety-margin-gb (default a tenth of VRAM, 0.25–1.5 GiB). See Quantization and Performance tuning.
PyTorch-only repo rejecteddlm loads safetensors and GGUF, not PyTorch .bin. Pull a safetensors variant, or a GGUF one with dlm pull <repo> --file q4_k_m. Some GGUF types (IQ1, MoE .gguf files) are still refused. See Model support.
401 / gated or private repo on pullPass --token or set $HF_TOKEN.
CUDA runtime can't load at startupdlm warns and falls back to CPU on its own. Check cudart is on the library path and CUDA_PATH is set.
--device gpu errors on a CPU buildA CPU-only build can’t use the GPU. Rebuild with --features cuda-kernels. See Build & features.
nvcc not found when building cuda-kernelsInstall the CUDA Toolkit 12.x (nvcc). cargo check type-checks the FFI without it, but building a runnable kernel needs nvcc + a GPU.
Model directory not recognizedThe path needs config.json and one or more *.safetensors shards — or, for GGUF, point it at the .gguf file itself. dlm pull fetches the right files.

FAQ

Do I need a GPU to try dlm?

No. The profiler and the CPU path run on any machine — the host fallback needs no GPU. A GPU build adds the CUDA/ROCm kernels.

Can I run a model bigger than my VRAM?

Yes — that’s the point. Streaming holds a bounded window of layers and materializes the rest on demand, so a model can exceed the resident budget. Output is identical to a fully-resident run.

Which quantization formats load?

Float safetensors (F32/F16/BF16), GGUF files from Q2_K and IQ2_XXS up (IQ1 is refused), and 4-bit GPTQ (desc_act: false, validated). Act-order GPTQ and AWQ load as experimental, with a warning. To quantize a float checkpoint, use --quant int4 or --quant int8 — dlm quantizes it itself at load. See Quantization and Model support.

Is the output deterministic?

With temperature 0 (greedy), yes — and speculative decoding, batching, and multi-GPU splits are all designed to produce identical output to a plain single-stream run.

Report a bug

Still stuck? File a bug and we’ll take a look. The form prefills a GitHub issue in the dlm repo — include your dlm doctor output. You can also browse existing issues first.