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

Small bug fixes to bulk image generation #167

Merged

Conversation

coryMosaicML
Copy link
Collaborator

This PR fixes two minor bugs in generating images in bulk

  1. Model checkpoint was loaded on device, which can cause OOMs as the whole state is loaded into GPU memory rather than just the weights. Now it loads on CPU first.
  2. A small bug in how composer's get_device() should be called. This will be fixed in newer composer versions, but this will change our code to be compatible with current + older versions.

@coryMosaicML coryMosaicML merged commit ee934a4 into mosaicml:main Aug 26, 2024
5 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.

3 participants