-
Notifications
You must be signed in to change notification settings - Fork 183
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
(experimental) Allow EMA on LoRA/Lycoris networks #1170
Merged
Merged
Conversation
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
Owner
bghira
commented
Nov 17, 2024
•
edited
Loading
edited
- Refactor EMAModel to handle LoRA/Lycoris type networks instead of full model
- Quantise the EMAModel at startup when the trained model is as well
- Load state dictionary in a way that is compatible with quantised EMA model
- Save state dictionary in a way that is compatible with quantised EMA model
- EMA validations overhaul
- lycoris support
- peft standard LoRA
- determine a reliable method for temporarily replacing LoRA with EMA for inference
- full model checkpoint training
- optional side-by-side validations
- optional EMA-only validations
- Model card details for EMA
- Save/load as safetensors file instead of pytorch raw export
- Ability to export EMA model at the end of training
- Export EMA model in a way that is compatible with typical adapter loading methods
- Full model export
- Standard PEFT LoRA export / loading
- Lycoris library export / loading
bghira
force-pushed
the
feature/ema-for-lora
branch
from
November 17, 2024 18:41
fd4de68
to
0fba5f6
Compare
…toring the lycoris weights during ema enable/disable
currently PEFT Standard LoRA has EMA validations forcibly disabled during startup. the validation class doesn't correctly load/unload the EMA weights from the model. more development is required for that. though now, Lycoris + EMA is working really nicely. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.