-
Notifications
You must be signed in to change notification settings - Fork 914
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 Support for Flex.1 Alpha #1891
Comments
This was also implemented into diffusion-pipe through this commit: tdrussell/diffusion-pipe@90ab3f9 |
I've created a minimal working example here: https://github.com/stepfunction83/sd-scripts/tree/sd3 I was able to quickly train a 1000 step finetune of flex and was able to test it in Comfy to validate that the training does take and the guidance module is not destroyed in the process. Additionally, the sampling was corrected as well and now works as expected. Just add the |
i use the GUI and it says bypass_flux_guidance unknown |
flux_train.py: error: unrecognized arguments: -bypass_flux_guidance |
Looks like you're missing a "-". It should be |
If it still doesn't work, in your kohya_ss folder, delete the sd-scripts folder and then navigate to the kohya_ss in a terminal and run this:
It will replace the sd-scripts folder with the version with the update. |
[--cpu_offload_checkpointing] |
Can you provide the full error please? |
19:21:11-815746 INFO Executing command: |
arning: LD_LIBRARY_PATH environment variable is not set. If you use WSL2 you may want to: export LD_LIBRARY_PATH=/usr/lib/wsl/lib/ 2025-01-22 19:19:53.640904: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 19:19:59-238859 INFO Submodule initialized and updated.
To create a public link, set |
Let me try it with a fresh install... |
Creating an Issue from the related discussion: #1882
Ostris has created a new Flux model that is both distilled to a lower parameter count and has a custom trained guidance module which allows the model to be much more easily and flexibly finetuned.
https://huggingface.co/ostris/Flex.1-alpha
From my experience so far creating a few LoRAs, the hype is 100% real and this is trainable in a way that base Flux Dev is simply not.
To train this, the newly created guidance module needs to be bypassed during training and then restored afterwards. This is currently implemented in ai-toolkit and would need to be implemented in sd-scripts to be able to support training of the model.
This seems to be the key snippet of code to bypass the guidance block in ai-toolkit:
bypass_flux_guidance
is applied before noise prediction, whilerestore_flux_guidance
is applied after noise prediction and also before sampling.The text was updated successfully, but these errors were encountered: