# NVIDIA’s Dory 1.0 4B runs at four compute budgets via llama.cpp loops

Digest AI · Generative AI & Models · published 2026-11-07T19:22:44Z

Canonical: https://digestai.news/story/nvidias-dory-1-0-4b-runs-at-four-compute-budgets-via-llama-cpp-loops

## Summary

The guide shows how to run NVIDIA’s Dory 1.0 4B reasoning model with the llama.cpp server, exploiting the model’s shared recurrent block that can be applied one to four times per token. First, the tutorial builds the exact llama.cpp fork pinned by NVIDIA’s model card (commit 98a74c97ea09), selects the appropriate backend (Metal on macOS, CUDA on a GPU, or CPU), and verifies the environment.

Next, it downloads the 3.67 GB Q5KM GGUF from Hugging Face at a fixed revision, confirms the SHA‑256 checksum, and reads the GGUF header to expose the layer layout: 16 input, 40 recurrent, and 16 output layers, with a built‑in loop count of 4 (the card recommends 2). Using these numbers the guide predicts per‑token parameter and weight‑byte costs for each loop count and estimates KV‑cache memory under two allocation modes. Finally, it launches the server with different loop settings, measures decode speed, and runs a GSM8K benchmark to see how accuracy, answer length, and latency change as loops increase.

The tutorial demonstrates that each additional loop roughly multiplies parameters per token by 2.51 and weight reads by 2.28, while KV‑cache grows from 306 MiB at one loop to 816 MiB at four loops under the per‑loop mode. These findings help developers balance speed, memory, and quality when deploying Dory.

## Key points

- The GGUF file is 3.67 GB and matches the published SHA‑256 checksum exactly
- Dory’s architecture has 16 input, 40 recurrent, and 16 output layers, with a built‑in 4‑loop count
- Four loops increase parameters per token by 2.51×, weight reads by 2.28×, and KV‑cache from 306 MiB to 816 MiB

## Why it matters

Understanding Dory’s loop‑based compute scaling lets developers choose memory‑speed trade‑offs, making the model usable on a wider range of hardware.

## Sources

1. [How to Run NVIDIA Dory 4B with llama.cpp: Loop by Loop Guide](https://marktechpost.com/2026/11/07/coding-guide-nvidia-dory-4b-llama-cpp) (MarkTechPost, 2026-11-07)

Part of the developing story: [Rise of Efficient Local AI Models](https://digestai.news/thread/nvidias-dory-1-0-4b-runs-at-four-compute-budgets-via-llama-cpp-loops) (2 stories)

## Cite

Digest AI, "NVIDIA’s Dory 1.0 4B runs at four compute budgets via llama.cpp loops", 7 November 2026, https://digestai.news/story/nvidias-dory-1-0-4b-runs-at-four-compute-budgets-via-llama-cpp-loops

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/nvidias-dory-1-0-4b-runs-at-four-compute-budgets-via-llama-cpp-loops.json
