forked from livepeer/ai-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(T2I): add Black Forrest Labs Flux 1 support (livepeer#147)
This commit adds support for the [Black Forrest Labs Flux 1 Schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell) model to the T2I pipeline. It is important to note that this model can only run on GPUs with more than 33 GB or VRAM.
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
diffusers==0.29.2 | ||
diffusers==0.30.0 | ||
accelerate==0.30.1 | ||
transformers==4.43.1 | ||
fastapi==0.111.0 | ||
|
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,12 @@ | ||
from app.pipelines.utils.utils import split_prompt | ||
|
||
if __name__ == "__main__": | ||
input_prompt = "A photo of a cat.|" | ||
test = split_prompt(input_prompt) | ||
|
||
input_prompt2 = "" | ||
test2 = split_prompt(input_prompt2) | ||
|
||
input_pormpt3 = "A photo of a cat.|A photo of a dog.|A photo of a bird." | ||
test3 = split_prompt(input_pormpt3) | ||
|