ADD FAST-dLLM mode for more speed

#9
by VaLtEc-BoY - opened

good

How would this work, or if it is relevant at all when we also have DFlash/DDTree types + Nemotron's Diffusion systems?

Unfortunately, I don't know how they work, but I think it would be equivalent to MTP (multiple token predictions)....I believe anything that accelerates this model architecture should be studied, considering that today many tokens are used and artificial intelligence uses quite a lot, taking longer to display a response... I believe that any diffusion model is better with some kind of TURBO, as happens in video and image creators... it must be something equivalent to that.

For now I've been trying to quantize this model https://huggingface.co/nvidia/Nemotron-Labs-Diffusion-VLM-8B/ because it already has VL and would obviously run on weaker cards... if you want to try using it, it even fits a 16GB GPU.. well, unfortunately quantizing these models is a bit difficult. I'm trying to create a cell in Colab to make some quantized versions to release to the community, including a heretical, uncensored version... however, I don't know when I'll be able to do it... I tried to do it with the help of mradermacher, but unfortunately I believe it won't work. Nvidia is difficult to quantize diffusion text models; you have to know how to quantize them because it's equivalent to quantizing an image or video model. It's not a simple process, and I'm not the most qualified. Even so, with the help of opencode/glm5.2 and antigravity, I'm figuring out a way to make it viable, maybe even here on HF. I'll study the best and cheapest way...

@VaLtEc-BoY please help out in general with parsers/templates if you can. If there are already issues with AR models then dLLMs are practically unreachable for anyone (yes this goes for nvidia models as well) https://github.com/raullenchai/Rapid-MLX/discussions/1062#discussioncomment-17598198

I’m going to look into that; the models really do have flaws in their templates. One thing that’s particularly annoying about Gemma 12b is that, despite being powerful, it can't maintain a simple footnote without needing a lot of reinforcement—something that doesn't happen with Qwen 3.5/3.6. I'll see if I can add something to address that.

https://drive.google.com/drive/folders/1Ci-7BVBP6XTARRYk8zcXmFWsQFogtV4P?usp=drive_link ,Okay, I’ve redone the Jinja templates with corrections for various models; you just need to rename the file to chat_template.jinja for the specific model you're using. I don't know if it will work, but it's worth a try. You'll need to replace the original when running with Safetensors or call the Jinja template according to the execution parameters of the engine being used (like Llama, etc.). I can't guarantee it will work, but it's better than waiting for Google's fixes, which take a long time to arrive.

Sign up or log in to comment