Skip to content

Commit

Permalink
[training] CogVideoX Lora (huggingface#9302)
Browse files Browse the repository at this point in the history
* cogvideox lora training draft

* update

* update

* update

* update

* update

* make fix-copies

* update

* update

* apply suggestions from review

* apply suggestions from reveiw

* fix typo

* Update examples/cogvideo/train_cogvideox_lora.py

Co-authored-by: YiYi Xu <[email protected]>

* fix lora alpha

* use correct lora scaling for final test pipeline

* Update examples/cogvideo/train_cogvideox_lora.py

Co-authored-by: YiYi Xu <[email protected]>

* apply suggestions from review; prodigy optimizer

YiYi Xu <[email protected]>

* add tests

* make style

* add README

* update

* update

* make style

* fix

* update

* add test skeleton

* revert lora utils changes

* add cleaner modifications to lora testing utils

* update lora tests

* deepspeed stuff

* add requirements.txt

* deepspeed refactor

* add lora stuff to img2vid pipeline to fix tests

* fight tests

* add co-authors

Co-Authored-By: Fu-Yun Wang <[email protected]>

Co-Authored-By: zR <[email protected]>

* fight lora runner tests

* import Dummy optim and scheduler only wheh required

* update docs

* add coauthors

Co-Authored-By: Fu-Yun Wang <[email protected]>

* remove option to train text encoder

Co-Authored-By: bghira <[email protected]>

* update tests

* fight more tests

* update

* fix vid2vid

* fix typo

* remove lora tests; todo in follow-up PR

* undo img2vid changes

* remove text encoder related changes in lora loader mixin

* Revert "remove text encoder related changes in lora loader mixin"

This reverts commit f8a8444.

* update

* round 1 of fighting tests

* round 2 of fighting tests

* fix copied from comment

* fix typo in lora test

* update styling

Co-Authored-By: YiYi Xu <[email protected]>

---------

Co-authored-by: YiYi Xu <[email protected]>
Co-authored-by: zR <[email protected]>
Co-authored-by: Fu-Yun Wang <[email protected]>
Co-authored-by: bghira <[email protected]>
  • Loading branch information
5 people authored Sep 19, 2024
1 parent d13b0d6 commit 2b443a5
Show file tree
Hide file tree
Showing 11 changed files with 2,618 additions and 195 deletions.
228 changes: 228 additions & 0 deletions examples/cogvideo/README.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions examples/cogvideo/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
accelerate>=0.31.0
torchvision
transformers>=4.41.2
ftfy
tensorboard
Jinja2
peft>=0.11.1
sentencepiece
decord>=0.6.0
imageio-ffmpeg
Loading

0 comments on commit 2b443a5

Please sign in to comment.