MTP Speculative Decoding Version

#9
by apollo-mg - opened

Would you consider producing a version with MTP support?

Thanks,
Mark

Owner

Not at this time, as it is unclear if heretic/transformers/unsloth support it fully.
Each must fully support it ; then the model must be "re-heretic'ed", re-trained, and re-quanted/tested/benchmarked.

I've already seen a heretic version based on Qwen 3.6 27B on Huggingface that supports MTP, model address: https://huggingface.co/llmfan46/Qwen3.6-27B-uncensored-heretic-v2-Native-MTP-Preserved-GGUF, but I'm unsure how it's done and what the actual results are.

For anyone looking to just bolt on the Q8.0 MTP layers to the this model (regardless of quant), you can currently find the MTP weights and a convert.py that will bolt them on to this (or any Qwen3.6 27B model) here: https://huggingface.co/havenoammo/Qwen3.6-27B-MTP-UD-GGUF

If that repo disappears, just ping me. I have the weights and script backed up.

For clarity, I can only confirm that this works for making this model load with MTP and go zoom-zoom with the code. I have no idea what it does to the benchmarks. However, since the main model is supposed to reject any drafts it would not itself produce, there shouldn't be any impact other increased speed.

I have been seeing about an 80% to 100% increase TPS , but a 50% decrease in TTFT. This appears to be expected and known behavour with the MTP implementation in llama.cpp, which has taken a "stable deployment first, optimize later" stance on getting it out. I anticipate there will be refinements over the coming weeks.

I'm really looking forward to adding MTP on this model.This model is so wonderful.

Hoping for this release, too. Qwen models are powerful, but sadly, not very useful for creative purposes. We can only rely on finetunes, but unfortunately, they don't have MTP.

Holy, just tested it here with the regular Qwen 27b. 20 tokens/s on a 4060ti +2060 (22gb VRAM total) is a game changer. I don't care much about the lower PP speed. This finally makes the model usable for me. Hopefully this becomes the norm for all future models.

Owner

Still some time before MTP version.

As of this writing:

There are pipeline (issues as well as optimizations) issues still currently, and it is not widely supported in some AI Apps.

Specifically:

Ggufs:

  • Imatrix is not yet supported for MTP.
  • Not all AI apps have updated to support it -> result -> MTP ggufs do not work at all.
  • Misc issues with speed still being worked on.

Training:

  • Unknown if support has been merged into Transformers (previously stripped out/ignored MTP tensors)
  • Unsloth and BNB support. (unknown status)

As soon as the "pipeline" settles...

Remind me when MTB version comes.

Hi DavidAU, just wanted to give you props - this model has been absolutely amazing in my opinion even in comparison to using enterprise frontiers during the day. Really hoping you'll release an MTP version. Thanks!

Owner

@ai-henry Thanks so much.

any update on MTP version ?

Awaiting some pipeline issue - MTP Imatrix, LLamacpp; and in the process of tuning system upgrades atm.

Sign up or log in to comment