Skip to content
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

use s3 boto3 Adaptive retry as default retry mode #3543

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

bigning
Copy link
Contributor

@bigning bigning commented Aug 11, 2024

use adaptive retry as default retry mode. user reported uploading error boto3.exceptions.S3UploadFailedError: Failed to upload /tmp/tmpn7sa44l2/26aecfcf-aa70-4385-951a-0ab28f00bf8c to data-force-one-datasets/mosaicml-internal-checkpoints/jacob/lora/atnmlp-r16-lr0.0001-mlp-ep-4-a-32-sd-17/ep1-ba193-rank0.pt: An error occurred (SlowDown) when calling the CreateMultipartUpload operation (reached max retries: 4): Please reduce your request rate.

adaptive retry also introduces client-side rate limiting https://boto3.amazonaws.com/v1/documentation/api/latest/guide/retries.html,
image

Thanks @snarayan21 for testing:
1b-bf16-baseline-lr-0-00042-wd-0-0008-dRoKZX

@bigning bigning changed the title enable s3 boto3 Adaptive retry use s3 boto3 Adaptive retry as default retry method Aug 12, 2024
@bigning bigning changed the title use s3 boto3 Adaptive retry as default retry method use s3 boto3 Adaptive retry as default retry mode Aug 12, 2024
@bigning bigning marked this pull request as ready for review August 12, 2024 16:44
@bigning bigning requested review from snarayan21, mvpatel2000 and a team August 12, 2024 16:44
Copy link
Contributor

@snarayan21 snarayan21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Would like to note that we don't know if this helped solve the issue or not -- run 1b-bf16-baseline-lr-0-00042-wd-0-0008-KoQLcO also succeeded but did not use adaptive retry.

But this should be an improvement for retry behavior anyways, increasing reliability, so approving.

@snarayan21 snarayan21 merged commit 1320825 into mosaicml:main Aug 12, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants