-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes and quality improvements, compile support
- Loading branch information
matatonic
committed
Sep 9, 2024
1 parent
4f87f4a
commit 3e77c5a
Showing
25 changed files
with
870 additions
and
119 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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"pipeline": { | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-schnell", | ||
"torch_dtype": "bfloat16", | ||
"FluxTransformer2DModel": { | ||
"quantize": "fp8", | ||
"pretrained_model_link_or_path_or_dict": "https://huggingface.co/drbaph/FLUX.1-schnell-dev-merged-fp8-4step/blob/main/FLUX.1-schnell-dev-merged-fp8-4step.safetensors", | ||
"torch_dtype": "bfloat16" | ||
}, | ||
"T5EncoderModel": { | ||
"quantize": "fp8", | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-schnell", | ||
"torch_dtype": "bfloat16", | ||
"subfolder": "text_encoder_2" | ||
} | ||
}, | ||
"options": { | ||
"compile": ["transformer", "vae"], | ||
"enable_vae_slicing": true, | ||
"enable_vae_tiling": true, | ||
"to": { | ||
"device": "cuda" | ||
} | ||
}, | ||
"generation_kwargs": { | ||
"standard": { | ||
"guidance_scale": 0.0, | ||
"num_inference_steps": 4, | ||
"max_sequence_length": 256 | ||
}, | ||
"hd": { | ||
"guidance_scale": 0.0, | ||
"num_inference_steps": 8, | ||
"max_sequence_length": 256 | ||
} | ||
} | ||
} |
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,35 @@ | ||
{ | ||
"pipeline": { | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-schnell", | ||
"torch_dtype": "bfloat16", | ||
"FluxTransformer2DModel": { | ||
"quantize": "fp8", | ||
"pretrained_model_link_or_path_or_dict": "https://huggingface.co/drbaph/FLUX.1-schnell-dev-merged-fp8/blob/main/FLUX.1-schnell-dev-merged-fp8.safetensors", | ||
"torch_dtype": "bfloat16" | ||
}, | ||
"T5EncoderModel": { | ||
"quantize": "fp8", | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-schnell", | ||
"torch_dtype": "bfloat16", | ||
"subfolder": "text_encoder_2" | ||
} | ||
}, | ||
"options": { | ||
"compile": ["transformer", "vae"], | ||
"enable_vae_slicing": true, | ||
"enable_vae_tiling": true, | ||
"to": { | ||
"device": "cuda" | ||
} | ||
}, | ||
"generation_kwargs": { | ||
"standard": { | ||
"guidance_scale": 3.5, | ||
"num_inference_steps": 12 | ||
}, | ||
"hd": { | ||
"guidance_scale": 3.5, | ||
"num_inference_steps": 25 | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"pipeline": { | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-dev", | ||
"torch_dtype": "bfloat16" | ||
}, | ||
"options": { | ||
"compile": ["transformer", "vae"], | ||
"enable_vae_slicing": true, | ||
"enable_vae_tiling": true, | ||
"to": { | ||
"device": "cuda" | ||
} | ||
}, | ||
"generation_kwargs": { | ||
"standard": { | ||
"guidance_scale": 3.5, | ||
"num_inference_steps": 25 | ||
}, | ||
"bfl": { | ||
"guidance_scale": 3.5, | ||
"num_inference_steps": 50 | ||
}, | ||
"hd": { | ||
"guidance_scale": 5.5, | ||
"num_inference_steps": 50 | ||
}, | ||
"xhd": { | ||
"guidance_scale": 7.0, | ||
"num_inference_steps": 50 | ||
} | ||
} | ||
} |
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,44 @@ | ||
{ | ||
"pipeline": { | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-dev", | ||
"torch_dtype": "bfloat16", | ||
"FluxTransformer2DModel": { | ||
"quantize": "qint8", | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-dev", | ||
"subfolder": "transformer", | ||
"torch_dtype": "bfloat16" | ||
}, | ||
"T5EncoderModel": { | ||
"quantize": "qint8", | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-dev", | ||
"torch_dtype": "bfloat16", | ||
"subfolder": "text_encoder_2" | ||
} | ||
}, | ||
"options": { | ||
"compile": ["transformer", "vae"], | ||
"enable_vae_slicing": true, | ||
"enable_vae_tiling": true, | ||
"to": { | ||
"device": "cuda" | ||
} | ||
}, | ||
"generation_kwargs": { | ||
"standard": { | ||
"guidance_scale": 3.5, | ||
"num_inference_steps": 25 | ||
}, | ||
"bfl": { | ||
"guidance_scale": 3.5, | ||
"num_inference_steps": 50 | ||
}, | ||
"hd": { | ||
"guidance_scale": 5.5, | ||
"num_inference_steps": 50 | ||
}, | ||
"xhd": { | ||
"guidance_scale": 7.0, | ||
"num_inference_steps": 50 | ||
} | ||
} | ||
} |
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,19 @@ | ||
{ | ||
"pipeline": { | ||
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-schnell", | ||
"torch_dtype": "bfloat16" | ||
}, | ||
"options": { | ||
"compile": ["transformer", "vae"], | ||
"enable_vae_slicing": true, | ||
"enable_vae_tiling": true, | ||
"to": { | ||
"device": "cuda" | ||
} | ||
}, | ||
"generation_kwargs": { | ||
"guidance_scale": 0.0, | ||
"num_inference_steps": 4, | ||
"max_sequence_length": 256 | ||
} | ||
} |
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
Oops, something went wrong.