Maple-Preview: Ternary 20B MoE runs fast on CPUs and small GPUs

Deepgrove has released "Maple-Preview" as GGUF, a ternary reasoning model with 20B parameters but only about 1B active. It weighs in under 6 GiB and hits over 250 tokens per second on an Apple M5 Pro CPU. A second ternary MoE release reportedly manages 368K context on a 12 GB GPU.

Model releases Try it yourself Oct 26, 2026 4 min read Source: r/LocalLLaMA
Illustrative image, AI-generated

What it's about

The Deepgrove team has published the Maple-Preview-GGUF collection of files on Hugging Face. Maple-Preview is a reasoning model (it "thinks" in intermediate steps before answering) with 20 billion parameters, of which only about 1 billion are active per token (hence the name 20B-A1B). According to the authors, it was designed from the start to run efficiently on your own device, and it is released under the MIT license. The preview is an interim release; a full version is due after further training.

The trigger for this report was a post on r/LocalLLaMA about another ternary model that refers to Maple (see below).

Architecture and ternary technique

Maple is a Mixture-of-Experts (MoE) model: instead of using the whole network for every token, a router picks a small share of specialized sub-networks ("experts"). Here there are 24 layers and 256 experts, of which 8 are active. That saves compute, but memory still has to hold all the weights.

For attention, Maple uses a 3:1 ratio of sliding-window attention (window size 512) to global attention. In other words, three out of four layers only look at the last 512 tokens, while one looks at the entire context. That keeps memory use lower for long texts.

Ternary means the weights can take only three values (-1, 0, +1), roughly 1.58 bits per weight. This shrinks the model dramatically. The source mentions two packing schemes: TQ1_0 (more compact) and TQ2_0 (slightly larger, but generally faster). The output layer ("LM head") stays at higher precision, either Q4_K or FP16.

Variants and speed

Matrix weights LM head Size Prefill (pp512) Decode (tg128)
TQ1_0 FP16 5.06 GiB 515.41 tok/s 161.06 tok/s
TQ1_0 Q4_K 4.64 GiB 513.33 tok/s 231.13 tok/s
TQ2_0 FP16 5.91 GiB 618.57 tok/s 169.81 tok/s
TQ2_0 Q4_K 5.50 GiB 610.48 tok/s 252.74 tok/s

The benchmarks ran on an M5 Pro, CPU only, 16 threads, 512 prompt tokens, 128 generated tokens, three repetitions. "Prefill" is reading in the prompt; "decode" is generating the answer. Notably, the Q4_K head speeds up generation considerably compared with FP16.

Quality, according to the maker

Deepgrove claims Maple-Preview sets a new point on the Pareto frontier, both for memory versus performance and for speed versus performance. The source gives no concrete benchmark numbers, so this is an unsubstantiated vendor claim. The team does concede that the preview focuses on pure reasoning and may score lower on agent benchmarks.

The second ternary model

The Reddit post presents "Ternary Nemotron 30B-A3B", a ternary (1.58-bit) MoE with 30B parameters, 3B active. The author reports 368K context on a 12 GB GPU, 172 tok/s decode and over 7,000 tok/s prefill. One file reportedly runs on both stock llama.cpp (validated from b11555 and b11796 respectively) and the PrismML fork (b10793). According to an update, it is the second ternary MoE after Maple-Preview that works with stock llama.cpp. The author is still looking for CPU-only numbers and results for cards around 10 GB. These figures come from the uploader and have not been independently verified. The main source's Hugging Face page, however, covers Maple.

What you need to try it

  • Memory: The files are 4.6 to 5.9 GiB. With context, plan on 8 GB of free RAM or VRAM as a comfortable minimum (an estimate).
  • Processor: Per the measurements, it runs on the CPU alone, including on Apple Silicon (M5 Pro tested). You don't need a GPU.
  • Disk: Around 6 GB per variant.
  • Software: A custom Deepgrove llama.cpp fork (github.com/deepgrove-ai/llama.cpp) with setup instructions is referenced. The page also lists Ollama, LM Studio, vLLM and other tools, but it's unclear whether they support the ternary types.
  • Google Colab: Possible in principle given the small size, but not confirmed in the source.

Our take

Ternary MoE models are interesting because they combine a large store of knowledge with very small memory and compute demands. Over 250 tokens/s on a laptop CPU is impressive. On the downside, there are no independent benchmarks, the preview is explicitly unfinished, and its usefulness for agent tasks is limited. It's worth a look for tinkerers, edge applications and anyone testing ternary quantization. For production agents, it's probably not there yet.

Sources

#maple-preview#ternary#moe#gguf#llama.cpp#local-llm
Read the original source

Try it yourself: Maple-Preview

Explained step by step, no prior knowledge needed – on your own computer or free in your browser.

What can I do with it?

Maple-Preview is a small, very fast reasoning model that answers questions locally and works through tricky problems step by step, running briskly even on a CPU alone. It's well suited to experimenting with ternary models.

Who is it worth it for?

Interesting for tinkerers and testers of efficient models on laptops or weak hardware. Less suitable for agent workflows, where the maker itself admits weaknesses.

Size20.2 B parameters (1 billion active)
Download12 GB (about 16 min at 100 Mbit/s)
Licensemit
TypeLanguage model (text chat)

What your computer needs

Graphics card (NVIDIA), fully in VRAM at least 14 GB VRAMe.g. RTX 4060 Ti 16 GB, RTX 4080, RTX 5080, RX 7800 XT – fastest; with less VRAM, see the next line
Graphics card + system memory (MoE offloading) from approx. 6 GB VRAM + 32 GB RAMdie Experten liegen im Arbeitsspeicher, nur der Kern auf der Grafikkarte (llama.cpp/LM Studio). Langsamer als komplett im VRAM, aber auf normalen PCs machbar
Mac (Apple Silicon M1–M5) from 24 GB unified memoryThe GPU and CPU share the memory – the model can use about 70% of it
CPU only (no graphics card) Runs smoothly without a graphics cardan estimated 38 words per second on a current desktop PC (MoE: only 1 billion parameters active per word). This requires at least 32 GB of RAM.
Storage approx. 14 GB freeModel download plus programs
Google Colab runs for freeThe free Tesla T4 GPU with 15 GB is enough

TQ2_0 with the Q4_K head (5.50 GiB) was fastest in the measurements (252.74 tok/s). TQ1_0 with Q4_K (4.64 GiB) is the smallest file with only slightly lower speed. FP16-head variants need more memory and are slower at generating.

  • File sizes: 4.64 to 5.91 GiB per variant, plus room for context.
  • Measurements were CPU only (M5 Pro, 16 threads); a GPU isn't required.
  • TQ2_0 is generally faster but needs slightly more memory than TQ1_0.
  • A custom Deepgrove llama.cpp fork is listed for setup.
How do I find out what my computer has?
  • Windows: Press Ctrl + Shift + Esc → Task Manager → Performance tab → click GPU on the left. At the bottom you'll see Dedicated GPU memory (that's your VRAM). You'll find system memory under Memory.
  • Mac: Apple menu at the top left → About This Mac. You'll see your chip (e.g. M2) and memory (e.g. 16 GB). On Apple chips, graphics and processor share this memory.
  • Linux: Type nvidia-smi in the terminal (shows your graphics card and its memory) and free -h for system memory.

Guide

Google Colab (in your browser, no installation)

Google Colab is a free service from Google. It gives you a computer with a graphics card in your browser for a few hours. All you need is a Google account. For this model: runs for free – The free Tesla T4 GPU with 15 GB is enough.

  1. Download the notebook. Click the button and save the file.

    Download colab.ipynb

  2. Open Colab. Go to colab.research.google.com and sign in with your Google account.
  3. Upload the notebook. In the window that appears, click Upload on the left (or choose File → Upload notebook at the top) and select the file colab.ipynb.
  4. Turn on the GPU. In the top menu, go to Runtime → Change runtime type → under Hardware accelerator, select T4 GPU → Save.
  5. Start everything. Runtime → Run all (keyboard shortcut Ctrl + F9). If you see the warning “This notebook was not authored by Google,” click Run anyway.
  6. Wait. The cells run one after another. A green checkmark appears to the left of each cell when it's done. Installation and download take about 8 minutes here.
  7. Try it out. The result appears below the last cell. To test something else, change the text in the cell and run it again with Shift + Enter. The last cell starts a proper chat with an input field.
  8. Clean up. When you're done: Runtime → Disconnect and delete runtime. This saves your free quota.

Good to know: The free GPU is limited (usually a few hours per day). After about 90 minutes of inactivity, Colab disconnects, and you'll have to start everything over.

Windows 10 / 11

The easiest way is Ollama, a free program that launches AI models with a single command.

  1. Update your graphics driver (NVIDIA cards only): Install the NVIDIA app or the latest driver. For AMD cards, use the latest Adrenalin driver.
  2. Install Ollama. Download the file OllamaSetup.exe from ollama.com/download/windows, double-click it, and choose Install. Afterward, a small llama icon appears in the taskbar at the bottom right.
  3. Open a terminal window. Press the Windows key, type PowerShell and press Enter. A blue or black window opens.
  4. Start the model. Copy this command ("Copy" button), paste it into the window with a right-click, and press Enter:
    ollama run hf.co/deepgrove/maple-preview-GGUF:F16
    The first time, Ollama downloads the model (12 GB (about 16 min at 100 Mbit/s)). After that, it's instant.
  5. Start typing. Once >>> Send a message appears, type your question and press Enter. Type /bye to end the chat.
Prefer automatic? A script that picks the right variant for you
  1. Download both files into the same folder: try_windows.ps1 demo.py
  2. Open the folder in File Explorer, right-click an empty spot and choose Open in Terminal.
  3. Paste this command and press Enter:
    powershell -ExecutionPolicy Bypass -File try_windows.ps1

If needed, the script installs Ollama via winget, measures your VRAM (video memory) and downloads the matching variant.

macOS

Macs with an Apple chip (M1 to M5) are ideal. Older Intel Macs are very slow.

  1. Install Ollama. Download it from ollama.com/download/mac, open the file, and drag Ollama into your Applications folder. Launch Ollama once – a llama appears in the menu bar at the top.
  2. Open Terminal. Press Cmd + Space, type Terminal, and press Enter.
  3. Start the model. Paste the command (Cmd + V) and press Enter:
    ollama run hf.co/deepgrove/maple-preview-GGUF:F16
    The first time, the model is downloaded (12 GB (about 16 min at 100 Mbit/s)).
  4. Start typing. Type your question and press Enter. Quit with /bye.
Pick the right variant automatically

try_mac.sh

cd ~/Downloads
bash try_mac.sh

Linux

  1. Check your GPU. nvidia-smi should show your card. If it doesn't, install the driver on Ubuntu and restart:
    sudo ubuntu-drivers install
  2. Install Ollama:
    curl -fsSL https://ollama.com/install.sh | sh
  3. Start the model:
    ollama run hf.co/deepgrove/maple-preview-GGUF:F16
    Exit with /bye. Use ollama ps to check whether the model is running on the GPU.
  4. Or let it pick the right variant automatically:

    try_linux.sh

    bash try_linux.sh
    # mit Python/transformers statt Ollama:
    MODE=hf bash try_linux.sh

Try it

Solve step by step: A train travels for 2.5 hours at 96 km/h, then for 1.5 hours at 120 km/h. How far has it traveled in total?
Explain the difference between a mixture-of-experts model and a regular language model in simple terms.
Write a short Python function that checks whether a word is a palindrome, and explain it.

If something goes wrong

The ternary types TQ1_0/TQ2_0 may require Deepgrove's llama.cpp fork (github.com/deepgrove-ai/llama.cpp); depending on the version, regular builds can't load them.

The preview is weaker at agent tasks, so don't expect too much from tool use.

The command in the source uses the tag :F16, but the available variants are named TQ1_0/TQ2_0; pick the variant that fits.

“out of memory,” a crash, or your computer freezes

The model is too big for your VRAM (video memory). Pick a smaller variant from the table above and close other programs, especially games and browsers with lots of tabs.

It runs, but extremely slowly

Your CPU is probably doing the work instead of your graphics card. In Ollama, the PROCESSOR column of ollama ps shows how much runs on the GPU. If it says "100% CPU", update your graphics driver or pick a smaller variant that fits entirely into VRAM (video memory).

“ollama” or “python” is not found

Close the terminal window and open it again so it recognizes the newly installed program. For Python on Windows: reinstall it and check Add python.exe to PATH.

Windows: "Running scripts is disabled on this system"

Run the script with exactly the command above: powershell -ExecutionPolicy Bypass -File try_windows.ps1. This allows execution for this one time only.

Error message when loading the model (version, "trust_remote_code", unknown architecture)

Brand-new models often need the latest software version. With Ollama: update Ollama. With Python: pip install -U transformers in the activated environment. The Model Card usually lists the exact version.

Tokenstrom generates the scripts and notebook automatically. Please take a quick look before running them – they're plain, readable text. Mind the model's license: mit.

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.