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

fix(runner): update img2img to do sequential processing of batch request #95

Merged

Conversation

ad-astra-video
Copy link
Collaborator

This PR updates the image-to-image router in runner to process the batch requests sequentially. Similar to text-to-image, this will stabilize GPU memory usage and allow for some GPUs to run multiple instances of lighter weight models.

@ad-astra-video
Copy link
Collaborator Author

Reserving comment: Will test when have some time. Papabear has some test data from running batches that provides that there is no significant efficiency gain running the requested images in parallel.

@rickstaa rickstaa marked this pull request as ready for review June 5, 2024 21:24
@rickstaa
Copy link
Collaborator

rickstaa commented Jun 5, 2024

@ad-astra-video I made some small changes to make the I2I code more similar to the T2I pipeline code. The change looks good to me feel free to merge this and release it under version v0.0.7.

ad-astra-video and others added 2 commits June 5, 2024 23:26
This commit enhances the consistency between the I2I and T2I pipelines,
making them easier to compare.
@rickstaa rickstaa force-pushed the av-img2img-sequential-processing branch from 798953b to 21b8d4f Compare June 5, 2024 21:26
@rickstaa rickstaa merged commit 0f2ead8 into livepeer:main Jun 8, 2024
1 check passed
eliteprox pushed a commit to eliteprox/ai-worker that referenced this pull request Jun 9, 2024
…est (livepeer#95)

* update img2img to do sequential processing of batch request

* refactor(runner): improve consistency between I2I and T2I pipelines

This commit enhances the consistency between the I2I and T2I pipelines,
making them easier to compare.

---------

Co-authored-by: Rick Staa <[email protected]>
@ad-astra-video ad-astra-video deleted the av-img2img-sequential-processing branch July 25, 2024 01:59
eliteprox pushed a commit to eliteprox/ai-worker that referenced this pull request Jul 26, 2024
…est (livepeer#95)

* update img2img to do sequential processing of batch request

* refactor(runner): improve consistency between I2I and T2I pipelines

This commit enhances the consistency between the I2I and T2I pipelines,
making them easier to compare.

---------

Co-authored-by: Rick Staa <[email protected]>
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