-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: learning rate scheduler fix for bert squad example [DET-2897] #711
fix: learning rate scheduler fix for bert squad example [DET-2897] #711
Conversation
max_seq_length: 384 | ||
doc_stride: 128 | ||
max_query_length: 64 | ||
n_best_size: 20 | ||
max_answer_length: 30 | ||
null_score_diff_threshold: 0.0 | ||
max_grad_norm: 1.0 | ||
num_training_steps: 15000 # This is the number of optimizer steps. Set it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the main fix to achieve parity. if this value is too low, we end up with a LR of zero pretty quickly, and this was causing the learning to basically stop (validation f1 flatlined at 60-something).
in the huggingface repo, they set this similarly to # batches times * epochs (assuming gradient accumulation is 1) -- see here and here.
with this fix we get closer to the expected validation f1: 89 after 150 steps, compared to 88.52.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
If the Slrum hpcPartitionDetails contains accelerator type set it for the resource pool.
Description
Test Plan
Commentary (optional)