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

Running multiple processes/threads for the same prompt #73

Open
varshith15 opened this issue Feb 19, 2025 · 1 comment
Open

Running multiple processes/threads for the same prompt #73

varshith15 opened this issue Feb 19, 2025 · 1 comment

Comments

@varshith15
Copy link
Collaborator

From initial tests we noticed that CPU is the blocker and GPU is usually free. So in embedded comfy client, if we can use processpool instead of threadpool and run the same prompt twice, i think we can optimize the GPU even more and get higher FPS

@varshith15
Copy link
Collaborator Author

varshith15 commented Feb 19, 2025

To test this hypothesis i add a 50ms delay to a basic video passthrough workflow in loadtensor and when i run the prompt once i get 18 FPS and when i run it twice i get 30 FPS. (this is with threadpool)

Now the issue with workflows like dreamshaper etc that the checkpoint loading functions are not threadsafe, so need to figure that out

@varshith15 varshith15 changed the title Running multiple processes for the same prompt Running multiple processes/threads for the same prompt Feb 19, 2025
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

No branches or pull requests

1 participant