Skip to content
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

How to train Stable Video Diffusion model? #239

Open
howardgriffin opened this issue Dec 10, 2023 · 10 comments
Open

How to train Stable Video Diffusion model? #239

howardgriffin opened this issue Dec 10, 2023 · 10 comments

Comments

@howardgriffin
Copy link

No description provided.

@ersanliqiao
Copy link

sorry,ask me

@Angelalilyer
Copy link

sorry,ask me
Hello! Do you have a training script for Stable Video Diffusion? Could you please contact me

@shijianjian
Copy link

find a non official one #267

@hadipash
Copy link

Our team has released the SVD training script:
https://github.com/mindspore-lab/mindone/tree/master/examples/svd
It's still under development, but you can use it for reference.

@bdytx5
Copy link

bdytx5 commented Mar 26, 2024

What are the GPU requirements for fine tuning @hadipash ?

@hadipash
Copy link

What are the GPU requirements for fine tuning @hadipash ?

Currently a lot (64 GB), but we're working on reducing VRAM usage.

@bdytx5
Copy link

bdytx5 commented Mar 27, 2024

@hadipash thats not bad really. You tested it with sharding across multiple GPU's (eg multiple GPU's with <64gb of VRAM)?

@hadipash
Copy link

@hadipash thats not bad really. You tested it with sharding across multiple GPU's (eg multiple GPU's with <64gb of VRAM)?

Currently, a sequence of 4 frames can be trained on a single 64GB GPU. We are working on 1) optimizing memory usage on a single device and 2) implementing distributed training to allow for longer sequences (e.g., 30+ frames).

@DataAIPlayer
Copy link

@hadipash hello,I tried using LoRA to fine-tune the U-Net with SVD, and even with a batch size of 1, memory overflow occurs on the A100 GPU when the dataset consists of 25-frame videos. Does this mean that model parallel training must be employed, distributing the model parameters across multiple GPUs?

@hadipash
Copy link

hadipash commented May 9, 2024

@DataAIPlayer Not sure about LoRA, haven't integrated it yet. However, for vanilla training - yes, need distributed training as a single 64GB GPU can only fit 4 frames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@ersanliqiao @shijianjian @hadipash @howardgriffin @DataAIPlayer @bdytx5 @Angelalilyer and others