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

yolov3: reduce batch size due to cudagraphs OOM #2008

Closed
wants to merge 1 commit into from

Conversation

xmfan
Copy link
Member

@xmfan xmfan commented Oct 23, 2023

@xmfan xmfan temporarily deployed to docker-s3-upload October 23, 2023 20:24 — with GitHub Actions Inactive
@xmfan xmfan temporarily deployed to docker-s3-upload October 23, 2023 20:24 — with GitHub Actions Inactive
@xmfan xmfan marked this pull request as ready for review October 23, 2023 20:30
Copy link
Contributor

@xuzhao9 xuzhao9 left a comment

Choose a reason for hiding this comment

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

We got to be careful here because the original code repo uses 16 as the default batch size (https://github.com/ultralytics/yolov3/blob/master/train.py#L449), and we don't know how bs=8 will affect the E2E training accuracy.

I am leaning to keep the default batch size to be consistent with upstream, and only customize it in the dynamo runner or other userbenchmarks that test CUDAGraph.

@xmfan
Copy link
Member Author

xmfan commented Oct 24, 2023

Moved the implementation to pytorch/benchmark/dynamo/torchbench.py: pytorch/pytorch#111959

@xmfan xmfan closed this Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants