bert icon indicating copy to clipboard operation
bert copied to clipboard

How long for training models with RTX 2080 8G

Open ntson2002 opened this issue 7 years ago • 5 comments

I got problems with out-of-memory issues when running experiments on SQUAD v1.1 (GPU config: RTX 2080 8GB). Thefore, I changed the batch_size=6, and the max_seq_length=256. Do you know the estimated time for training with 2.0 in num_train_epochs?

ntson2002 avatar Jan 15 '19 04:01 ntson2002

I got problems with out-of-memory issues when running experiments on SQUAD v1.1 (GPU config: RTX 2080 8GB). Thefore, I changed the batch_size=6, and the max_seq_length=256. Do you know the estimated time for training with 2.0 in num_train_epochs?

On RTX2070, with batch_size = 8, max_seq_length = 320, num_train_epochs = 2, it took around 2 hours 30 minutes to complete the training.

bcbcbcbcbcl avatar Jan 15 '19 07:01 bcbcbcbcbcl

I got problems with out-of-memory issues when running experiments on SQUAD v1.1 (GPU config: RTX 2080 8GB). Thefore, I changed the batch_size=6, and the max_seq_length=256. Do you know the estimated time for training with 2.0 in num_train_epochs?

On RTX2070, with batch_size = 8, max_seq_length = 320, num_train_epochs = 2, it took around 2 hours 30 minutes to complete the training.

Thank you for the promptly reply

ntson2002 avatar Jan 15 '19 09:01 ntson2002

@bcbcbcbcbcl Is batch_size=8 max_seq_length = 320 the best possible for 8GB? or can we go higher with the sequence length?

asafarevich avatar Mar 09 '19 21:03 asafarevich

@bcbcbcbcbcl Is batch_size=8 max_seq_length = 320 the best possible for 8GB? or can we go higher with the sequence length?

With these parameters, the GPU memory usage is already near to 8GB during training. You can try decrease the batch_size if you want to try with higher sequence length or vice versa.

bcbcbcbcbcl avatar Mar 12 '19 10:03 bcbcbcbcbcl

HAve you anyone been able to get mirrored strategy to work?

On Mar 12, 2019, at 3:24 AM, Jason [email protected] wrote:

@bcbcbcbcbcl Is batch_size=8 max_seq_length = 320 the best possible for 8GB? or can we go higher with the sequence length?

With these parameters, the GPU memory usage is already near to 8GB during training. You can try decrease the batch_size if you want to try with higher sequence length or vice versa.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

rkchee avatar Mar 12 '19 12:03 rkchee