verl icon indicating copy to clipboard operation
verl copied to clipboard

Validation performance inconsistent during critic warmup

Open Squidwarder opened this issue 1 year ago • 5 comments

Hello, I'm currently experiencing an issue with PPO training where during critic warmup (thus actor is frozen), the accuracy on validation test varies.

Image Image

Like the image shown here I've set my vLLM params for testing to be temperature=0, so in theory the accuracy should stay unchanged because the actor model is frozen during critic warmup (step=20). Instead, I'm observing changes in validation accuracy (my validation set is 125 data). Is this an issue with vLLM or something else?

My vLLM (v0 engine) config is as follows:

VLLM_ATTENTION_BACKEND=XFORMERS
# sampling parameters for validation
top_k: -1 # 0 for hf rollout, -1 for vllm rollout
top_p: 1.0
temperature: 0
n: 1
do_sample: False # default eager for validation

Squidwarder avatar Apr 23 '25 03:04 Squidwarder

can u reproduce this issue with main_generation and observe different outputs? If so that sounds like a non-deterministic behavior from vllm.

eric-haibin-lin avatar Apr 23 '25 19:04 eric-haibin-lin

@eric-haibin-lin Thank you so much for responding. By using main_generation, do you mean that I should run it multiple times with fixed model (as well as generation config) and input file, then compare the parquet files the script produces?

Squidwarder avatar Apr 24 '25 03:04 Squidwarder

Also, I'm currently experiencing issues where the validation accuracy is different after loading from a checkpoint, compared to the results from before the training.

Image

As you can see in the image, I stopped then resumed training at step 330 (without changing the stored .pt files in any way), however, the validation accuracy still differs. Is that just due to the nature of vLLM at the moment?

Squidwarder avatar Apr 24 '25 07:04 Squidwarder

On further investigation, it appears that the problem was due to mismatch in vLLM version for all nodes involved (two uses 0.8.2, and two uses 0.8.1). Once they are aligned, the validation accuracy becomes more closely matched (there are still a couple of small fluctuations here and there, but I assume that's just vLLM behavior and can't be helped).

Squidwarder avatar Apr 24 '25 11:04 Squidwarder

How many warmup steps are recommended?

Prathyusha-Guduru avatar Nov 25 '25 17:11 Prathyusha-Guduru