-
Notifications
You must be signed in to change notification settings - Fork 37
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 a shortfin pipeline for flux #876
Open
KyleHerndon
wants to merge
17
commits into
main
Choose a base branch
from
kyle-flux
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6f148c2
Create the Flux Pipeline and tests
KyleHerndon af6e9d7
More updates
KyleHerndon b58cb11
Add dynamo exports for flux.1
eagarvey-amd 0dff3e5
Add README
eagarvey-amd ec92d2f
Remove commented code.
eagarvey-amd 58fa0f1
Initial commit of flux server.
eagarvey-amd c75adda
Remove breakpoints.
eagarvey-amd a45383c
Fixup model exports and service.
eagarvey-amd a7592c0
dtype flexibility for flux.
eagarvey-amd 62d552d
Add onnx export of mmdit and rename dynamo_exports dir to torch_exports
eagarvey-amd cfd3519
Update README
eagarvey-amd 0e65537
Updates that get everything but VAE working
KyleHerndon 04c1a0e
Simplify export code to one file
KyleHerndon f6e4a81
Refactor
KyleHerndon 7fe1c1d
Fix up everything. BF16 still failing though
KyleHerndon 53bf17a
Fix grayscale bug and allow mixing different types of decoders with t…
KyleHerndon 63d46f4
Latest fixes
KyleHerndon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,15 +74,6 @@ def forward( | |
"latent_embeds": latent_embeds, | ||
}, | ||
) | ||
if not self.hp.use_post_quant_conv: | ||
sample = rearrange( | ||
sample, | ||
"b (h w) (c ph pw) -> b c (h ph) (w pw)", | ||
h=math.ceil(1024 / 16), | ||
w=math.ceil(1024 / 16), | ||
ph=2, | ||
pw=2, | ||
) | ||
Comment on lines
-77
to
-85
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this removal intentional? |
||
sample = sample / self.hp.scaling_factor + self.hp.shift_factor | ||
|
||
if self.hp.use_post_quant_conv: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Flux text-to-image generation pipeline.""" | ||
|
||
from .flux_pipeline import FluxPipeline | ||
|
||
__all__ = [ | ||
"FluxPipeline", | ||
] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you put a type hint for the new dtype argument?
I think they are important even if the assumption is that everyone should know what dtype should be.
They also improve code navigation as parsers could do a better job. They can determine types of resulting expressions.