Low Speed:when running inference_mmu.py, the text generation is too slow, averaging around 100 seconds per instance.
I notice this problem too. I think we can optimize the output generation speed by modifying the generation parameters. For instance, using these settings:
output_ids = model.mmu_generate(input_ids, max_new_tokens=512, steps=256, block_length=128)
which is consistent with the default inference settings on HuggingFace Demo, is much faster than the settings in inference_mmu.py. However, it is unclear what impact this will have on performance.
In addition, I have focused on the work of dLLM-Cache, which accelerates Diffusion LLM. It already supports LLaDA, Dream, and LLaDA-V. The thing is, we're not sure yet if it can work with MMaDA. I think this would be helpful since MMaDA is running pretty slowly right now during inference, even after modifying the generation parameters.
In addition, I have focused on the work of dLLM-Cache, which accelerates Diffusion LLM. It already supports LLaDA, Dream, and LLaDA-V. The thing is, we're not sure yet if it can work with MMaDA. I think this would be helpful since MMaDA is running pretty slowly right now during inference, even after modifying the generation parameters.
Hi, thanks for your attention. In fact, any acceleration method based on LLaDA is compatible with MMaDA, as we share the same generation process. dLLM-Cache, Fast-dLLM are all compatiable to MMaDA with little modifications
In addition, I have focused on the work of dLLM-Cache, which accelerates Diffusion LLM. It already supports LLaDA, Dream, and LLaDA-V. The thing is, we're not sure yet if it can work with MMaDA. I think this would be helpful since MMaDA is running pretty slowly right now during inference, even after modifying the generation parameters.
Hi, thanks for your attention. In fact, any acceleration method based on LLaDA is compatible with MMaDA, as we share the same generation process. dLLM-Cache, Fast-dLLM are all compatiable to MMaDA with little modifications
Thank you for your reply. I think I can try adopting these acceleration methods to MMaDA.