UniVLA icon indicating copy to clipboard operation
UniVLA copied to clipboard

Train time

Open DuckSQ-BIT opened this issue 1 year ago • 6 comments

Thanks for open-sourcing this great work! I saw that the time required in "Pre-Training" on the 'Bridge' subset is 200 GPU-hours. But I find that I need 800 hours to pre-train with 8 A100 GPU. So I want to know the meaning of "200 GPU-hours": "32 A100-->200h" or "32 A100-->200h/32"?

Image

DuckSQ-BIT avatar Jun 22 '25 03:06 DuckSQ-BIT

The training script will run for 50 epoches by default. But we've actually used the checkpoint at 20,000 optimization steps (approximately 5 epoches of training). '200 GPU-hours' means we trained on a 8 $\times$ A100 node for about one day.

retsuh-bqw avatar Jun 22 '25 05:06 retsuh-bqw

The training script will run for 50 epoches by default. But we've actually used the checkpoint at 20,000 optimization steps (approximately 5 epoches of training). '200 GPU-hours' means we trained on a 8 × A100 node for about one day.

Thanks for your reply. But I find that the epoches are set as 10 by default actually. And I just change "data_root_dir" before training and find that we need 800 hours only using bridge subset with 8 A100 GPU. So I want to know how to config when training on bridge subset.

Image

DuckSQ-BIT avatar Jun 22 '25 06:06 DuckSQ-BIT

If you're using bridge_orig, note that 20,000 optimization steps only equals about 2 epochs. The max_steps parameter might be calculated to be much larger than necessary, leading to an unexpectedly long training time. However, you only need to use the 20,000-step checkpoint anyway.

For reference, here's a screenshot of the training log from my setup with 8 A100 GPUs: Image

retsuh-bqw avatar Jun 23 '25 03:06 retsuh-bqw

If you're using bridge_orig, note that 20,000 optimization steps only equals about 2 epochs. The max_steps parameter might be calculated to be much larger than necessary, leading to an unexpectedly long training time. However, you only need to use the 20,000-step checkpoint anyway.

For reference, here's a screenshot of the training log from my setup with 8 A100 GPUs: Image

Thanks for your reply! And I want to know if the training of latent action tokenizer has similar problem? When we trained latent action tokenizer on stage-1 only using bridge subset with 8 A100 GPU, we found that it needed 9h per epoch.

Image

DuckSQ-BIT avatar Jun 23 '25 09:06 DuckSQ-BIT

For our release LAM trained collectively on 'Manipulation + Navigation + Human', we trained stage-1 for 150k steps and stage-2 for 200k steps. Given the full dataset size, 200k steps corresponds to roughly 1 epoch of training.

You may consider early stopping once the loss clearly stabilizes during training on custom datasets.

retsuh-bqw avatar Jul 03 '25 04:07 retsuh-bqw

For our release LAM trained collectively on 'Manipulation + Navigation + Human', we trained stage-1 for 150k steps and stage-2 for 200k steps. Given the full dataset size, 200k steps corresponds to roughly 1 epoch of training.

You may consider early stopping once the loss clearly stabilizes during training on custom datasets.

Thanks for your reply!!! We will try it out as you suggested. Thanks again for your great work!

DuckSQ-BIT avatar Jul 03 '25 06:07 DuckSQ-BIT