Validation performance inconsistent during critic warmup
Hello, I'm currently experiencing an issue with PPO training where during critic warmup (thus actor is frozen), the accuracy on validation test varies.
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
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 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?
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.
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?
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).
How many warmup steps are recommended?