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

Out-of-memory for default config. #409

Open
chehx opened this issue May 17, 2024 · 4 comments
Open

Out-of-memory for default config. #409

chehx opened this issue May 17, 2024 · 4 comments

Comments

@chehx
Copy link

chehx commented May 17, 2024

Many thanks for open-sourcing this great project.

Currently, I meet the out-of-memory error when training.

I use the default training config in stage3.py and I have 2 A100 80G.

However, it raises the error, but in report 1.1, it says the default config is for 80G memory usage.

Currently, when I use 480p with 48 frames, it takes around 73GB.

@JamesTensor
Copy link

JamesTensor commented May 19, 2024

I read report 1.1 and it does not state that only 80G of memory is required for training. Where did you see that?

@chehx
Copy link
Author

chehx commented May 20, 2024

I read report 1.1 and it does not state that only 80G of memory is required for training. Where did you see that?

#344 (comment)

Honestly, I saw this response. Did I misunderstand something?

Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label May 28, 2024
@chehx
Copy link
Author

chehx commented May 30, 2024

I found the problem!

When I wanna use the pre-trained weight via huggingface, it will load the config file:

https://huggingface.co/hpcai-tech/OpenSora-STDiT-v2-stage3/blob/main/config.json

where, the

"enable_flash_attn": false,
"enable_layernorm_kernel": false,

is forbidden!

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

2 participants