dLLM-RL
dLLM-RL copied to clipboard
Training Implementation
Hello, great work! I have a question:
- When training the SDAR model for the code task using RL with eight H200 GPUs, I noticed the GPUs are operating at a relatively low Memory-Usage. To ensure fair training and increase Memory-Usage while keeping num_task_per_step: 64 and num_response_per_task: 16 unchanged, would increasing gradient_accumulation_steps: 32->16 batch_size_lm: 1->2.
- Why are the values in the multinode config.yaml
num_task_per_step: 128 num_response_per_task: 32
set to double those of a single node 64 &16? Regardless of the number of nodes, shouldn't we ensure that num_task_per_step and num_response_per_task match the single-node values?
I would be most grateful for any advice you might offer. @yinjjiew
- Yeah you can try that, I think this modification will not change the performance
- num_task_per_step is the number of tasks you sample per step, if you have 4 nodes, then each node has 128 / 4 = 32 tasks. num_response_per_task is the number of response per task you can sample, this remains unchanged across different nodes. If you only use a single node, to achieve the same performance, you should keep these values unchanged. If you want to accelerate training, you should decrease them. But don't make them too small, otherwise the training is not stable.