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

Onediff #182

Closed
wants to merge 8 commits into from
Closed

Onediff #182

wants to merge 8 commits into from

Conversation

lukiod
Copy link

@lukiod lukiod commented Aug 29, 2024

As for What i did i added an onediff optimization support under which i made some changes in the following files
Issue Posted Upon
#livepeer/bounties#37

Previous Pr
#149

File Changes
DockerFile - Added onediff and now repo works on torch 2.3.0 with other libs on
pipelines/text-to-image.py
routes/text-to-image.py
bench.py - make it optimized for adding multiple optimization
How to run this

Download all the model as mention in readme.md under runner dir
Build the docker image
docker build -t ai-runner-benchmark .
Run the bench.py
docker run --gpus all -v ./models:/models ai-runner-benchmark:latest python bench.py --pipeline text-to-image --model_id SG161222/RealVisXL_V4.0_Lightning --runs 3 --batch_size 1 --num_inference_steps 10 --optimization onediff

@lukiod lukiod requested a review from rickstaa as a code owner August 29, 2024 05:22
@rickstaa rickstaa mentioned this pull request Aug 29, 2024
@lukiod lukiod closed this Aug 29, 2024
@lukiod lukiod deleted the onediff branch August 29, 2024 15:24
@lukiod lukiod restored the onediff branch August 29, 2024 15:24
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.

1 participant