Result about dParallel-Dream on Humaneval Dataset
Hi! Thanks for sharing the repo.
I tried running the eval script at ./Dream/eval_instruct/eval.sh:
# our dParallel
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 PYTHONPATH=. accelerate launch --main_process_port 12334 -m lm_eval \
--model diffllm \
--model_args pretrained="Zigeng/dParallel_Dream_7B_Instruct",trust_remote_code=True,max_new_tokens=256,diffusion_steps=256,dtype="bfloat16",temperature=0.,alg="entropy_threshold",dParallel=True,threshold=0.5 \
--tasks humaneval_instruct \
--device cuda \
--batch_size 1 \
--num_fewshot 0 \
--output_path output_reproduce/humaneval \
--log_samples --confirm_run_unsafe_code \
--apply_chat_template
The run reports only 21.95% pass@1:
diffllm (pretrained=Zigeng/dParallel_Dream_7B_Instruct,trust_remote_code=True,max_new_tokens=256,diffusion_steps=256,dtype=bfloat16,temperature=0.,alg=entropy_threshold,dParallel=True,threshold=0.5), gen_kwargs: (None), limit: None, num_fewshot: 0, batch_size: 1
| Tasks |Version| Filter |n-shot|Metric| |Value | |Stderr|
|------------------|------:|-----------|-----:|------|---|-----:|---|-----:|
|humaneval_instruct| 2|create_test| 0|pass@1| |0.2195|± |0.0324|
This is much lower than the 54.3% reported in Table 2. I also tried postprocess_code_humaneval.py, but the result didn’t change.
Could you help me understand what might be causing the discrepancy? Thanks!
Hi @ZinYY , Your test results are indeed a bit unusual. The image below shows the results I just obtained using the code from GitHub without any modifications, where the accuracy is 0.5793. My testing environment consists of 8x A5000 GPUs, with torch=2.6, transformers=4.49.0, and lm-eval=0.4.9. Previously, when I ran the test using 4x A6000 GPUs, I had observed an accuracy of 54.3%.
Thanks for the response! It turned out the issue was caused by the transformers version — I was using 4.46.0. After upgrading to 4.49.0, everything works perfectly. Thanks again!