How can I run mmproj + draft acceleration together on the model?

#2
by VaLtEc-BoY - opened

Hello, how can I run mmproj + draft acceleration together on the model? For example, running GEMMA-4-E4B-gguf + draft assistant + mmproj (vision) + turbo quant Q3. Tks! I like the project atomic-llama-cpp-turboquant !!

Atomic Chat org

Hey, thanks for the kind words! πŸ™

Unfortunately, mmproj + speculative decoding cannot run together β€” llama-server force-disables any draft pipeline as soon as a multimodal projector is loaded (image chunks expand to multiple KV tokens and the draft path doesn't handle them yet). This is an upstream llama.cpp limitation, not specific to this fork.

You can pick any two of three:

Vision + turbo3 KV β€” drop --mtp-head
Draft + turbo3 KV β€” drop --mmproj (this is what our scripts/run-gemma4-e4b-mtp-server.sh does)
We're putting mmproj + draft support on the roadmap and will look into it β€” it needs the draft pipeline to step over mtmd image chunks. Will share updates once we have something to test!

Atomic Chat org

Quick update β€” turned out simpler than expected, just merged it: https://github.com/AtomicBot-ai/atomic-llama-cpp-turboquant/pull/14

You can now load --mmproj together with --spec-type mtp / nextn / eagle3 on the same llama-server, so your GEMMA-4-E4B + assistant + mmproj + turbo3 combo works out of the box.

Small honest caveat: draft acceleration kicks in on text-only turns. When a turn actually contains an image, that turn falls back to plain target decoding (image still recognised correctly). Lifting that for vision turns is on the follow-up list.

Tested on M4 Max with Qwen 3.6 + NextN and Gemma 4 + MTP β€” both happy. Enjoy! πŸ™Œ

Thank you very much for your reply, your project is very good. I've been using Kobold, but I need maximum efficiency. Turbo Quant will help me a lot... I believe that Llama, or any version of it, is important, especially because I don't want anything online, which is what I'm currently aiming for!! Offline agents and chats, your project is perfect for that!TKS!!

Sign up or log in to comment