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

Adding command line option to move model sampling to cpu #6502

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dave-juicelabs
Copy link

The work being done on the GPU is minimal but requires a full round trip to the GPU and back for each iteration being done. Regular GPUs dont show this as much because of the fast PCIe interconnect. Juice (juicelabs.co) on the other hand, uses ethernet as it's bus and this back and forth turned 139ms to 7s. By moving the model sampling to the CPU, the 7s disappeared.

Hidden behind a command line option to preserve current functionality.

@comfyanonymous
Copy link
Owner

Does this slowdown happen when you use the euler sampler?

@dave-juicelabs
Copy link
Author

Yes, it does.

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