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

Add FLUX e2e example #3619

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions examples/diffusion/python_flux/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Setup

Make sure python interpreter can find migraphx. Default location:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some instructions on setting up a python virtual environment?

```
export PYTHONPATH=/opt/rocm/lib:$PYTHONPATH
```

Install dependencies
```
pip install -r torch_requirements.txt -r requirements.txt
```

Login to Huggingface:
```
huggingface-cli login
```

## Generate Image
```
python3 txt2img.py -p "A cat holding a sign that says hello world" -o ./
```

## Benchmark
Ex. 10 full executions:
```
python3 txt2img.py -b 10 --fp16
```
Loading
Loading