Yingte Shu, Yuchuan Tian, Chao Xu, Yunhe Wang, Hanting Chen
This is the official codebase for our work Deferred Commitment Decoding for Diffusion Language Models.
To reproduce the LLaDA-8B-Instruct, Dream-v0-Base-7B and Fast-dLLM-v2-7B results, install neccessary libraries (generally in requirements.txt, better with Linux and python 3.10) and adapt run_all.sh to your environment.
To reproduce the NBDiff results:
-
Clone opencompass from Github
-
Generate ['gsm8k_0shot_gen_a58960', 'humaneval_gen_8e312c', 'math_500_gen_my', 'sanitized_mbpp_mdblock_0shot_nocot_gen_a2e416', 'IFEval_gen_353ae7'] five jsonl files (or what you want to evaluate) to ./opencompass/data
-
Adapt eval2.sh (i.e. change dataset_local_path to one of the jsonl files and local_save your save path) and run it based on run_nbdiff.sh
-
Move process.py to opencompass base directory and run: python process.py [your save path] [any model name, like NBDiff]
This repository contains parts of Fast-dLLM and DAEDAL. We thank them for their helpful code.

