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

2X training speed improvement: prefetch next batch from the data loader while running current batch #1987

Closed
wants to merge 6 commits into from

Conversation

koush
Copy link

@koush koush commented May 10, 2024

This improves my training speed by 2x. This fetches the next batch of images while processing the current batch. Results may vary based on system.

My setup:
2x NVIDIA 4090
10900k
64GB RAM
M.2 Storage for coco dataset

Epoch time: 34 minutes to 14 minutes.

@BloodAxe
Copy link
Contributor

It seems your build fails due to code formatting issues. Please check https://github.com/Deci-AI/super-gradients/blob/master/CONTRIBUTING.md to learn how to configure pre-commit hooks and signed commits.

@koush
Copy link
Author

koush commented May 10, 2024

It seems your build fails due to code formatting issues. Please check https://github.com/Deci-AI/super-gradients/blob/master/CONTRIBUTING.md to learn how to configure pre-commit hooks and signed commits.

fixed with the precommit hook and black

@koush
Copy link
Author

koush commented May 10, 2024

I think this is failing due to my force push. I'll recreate the pull request.

@koush koush closed this May 10, 2024
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