Qwen 3 8B Runs takes about one hour per step
When I train using the GRPO algorithm, switching from Qwen 2.5 7B to Qwen 3 8B causes a huge slowdown in generation speed. With Qwen 2.5 7B each training step took only a few minutes, but with Qwen 3 8B it now takes about one hour per step under the same setup. Could you help me understand why Qwen 3 is so much slower and whether there are any recommended settings or fixes? Even with enable_thinking=true, the actual response lengths don’t seem long enough to explain such a huge slowdown. (I’ve already switched to the latest Docker image.) 用qwen3 8b进行GRPO训练的时候,为什么generate的速度会慢特别多,原来qwen2.5 7b大概几分钟一个step,换成qwen3一小时一个step。虽然说有enable_thinking=true,但看实际回答长度,会带来这么大差距吗(已经换了最新的镜像)。有人遇到类似的问题或者有什么建议吗,非常感谢!!!
What are the values for all timing_s/* ?
What are the values for all timing_s/* ?
Thank you for your reply!~ here are the other curves:
try upgrade vllm version? previous vllm may not support Qwen3
一样的问题
it is slow in generate stage. Can you attach your console log?
it is slow in generate stage. Can you attach your console log?
Sure! here’s my log file
try upgrade vllm version? previous vllm may not support Qwen3
I’ve already updated to the vLLM 0.8.4 image and even tried 0.8.5, but the issue persists.
我也遇到相似的问题,在某一次rollout的时候会卡住很久不动,卡住的时候查看gpu_computation_utilization一直是100%,改了vllm的各种参数也没效果
it is slow in generate stage. Can you attach your console log?
Sure! here’s my log file
what is your "perf/throughput" value for each step?
it is slow in generate stage. Can you attach your console log?
Sure! here’s my log file qwen3output_.log
what is your "perf/throughput" value for each step?
@chenhaiq here is mine
it is slow in generate stage. Can you attach your console log?
Sure! here’s my log file qwen3output_.log
what is your "perf/throughput" value for each step?
[@chenhaiq](https://github.com/chenhaiq) here is mine
- console log
- which version of vllm?
- when you pull verl source?
it is slow in generate stage. Can you attach your console log?
Sure! here’s my log file qwen3output_.log
what is your "perf/throughput" value for each step? Sure—here are the perf/throughput curves.
try upgrade vllm version? previous vllm may not support Qwen3
I’ve already updated to the vLLM 0.8.4 image and even tried 0.8.5, but the issue persists.
I suggest you pull the lastst version of verl and try again. The perf/throughput for Qwen3 is 459.418 in our A800.
@chenhaiq
-
vllm==0.8.5.post1
-
commit 5b24e01d5693c022d8e3fa2360fca509d83bffc0 (origin/main, origin/HEAD, main) Author: Hongpeng Guo [email protected] Date: Sun May 18 22:08:32 2025 -0700
[misc] use lazy import on megatron utils components (#1551)
- tmp.log
- vllm==0.8.5.post1
- commit 5b24e01 (origin/main, origin/HEAD, main) Author: Hongpeng Guo [email protected] Date: Sun May 18 22:08:32 2025 -0700 [misc] use lazy import on megatron utils components ([misc] use lazy import on megatron utils components #1551)
@zwhe99 Can you please test again with option: data.max_response_length=512? I guest it is because most gpus have to wait the slowest one with max prompt length.
@chenhaiq I need to reproduce a long reasoning model. I think 512 it's not enough.
@chenhaiq I need to reproduce a long reasoning model. I think 512 it's not enough.
Yes, I know it. Just want to confirm where is the slowness coming from.
In your task, there are 96 gpus with very different response_length in each step, for example:
response_length/mean:947.701 response_length/max:10240.000 response_length/min:3.000
I guest it is because few GPUs hit problem with 10240 length while the rest of GPUs have response with very short length.
I am not sure where it is this case. If max_response_length 512 can have much better performance, it should be this case.
ok, will give a try soon
If this is indeed the case, are there recommended solutions?
If this is indeed the case, are there recommended solutions?
The partial-rollout feature could resolve this, but it still under developping. cc @zyzshishui @zhaochenyang20
You can find info from: https://github.com/zhaochenyang20/Awesome-ML-SYS-Tutorial/blob/ef9bad32ba58aa873f51c9af4e7aa6c04e672afe/rlhf/partial-rollout/readme.md
[@chenhaiq](https://github.com/chenhaiq) here is mine