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 can I run the project without using Apex? #349

Closed
JamesTensor opened this issue Apr 29, 2024 · 2 comments
Closed

How can I run the project without using Apex? #349

JamesTensor opened this issue Apr 29, 2024 · 2 comments

Comments

@JamesTensor
Copy link

JamesTensor commented Apr 29, 2024

The Git homepage mentions that the project can be run without using Apex.

#set enable_layernorm_kernel=False in config to avoid using Apex

What is the specific command for this?

I added --enable_layernorm_kernel=False after the inference command, but it reported an error that the parameter was unrecognized.
I also modified the 'enable_layernorm_kernel': False under the script opensora/configs/opensora/inference/16x256x256.py, but it still doesn't work.

@jiayueru
Copy link

jiayueru commented May 2, 2024

Hi, you need to navigate to the file "configs/opensora-v1-1/train/stage2.py" and make the following modifications:
model = dict(
type="STDiT2-XL/2",
from_pretrained=None,
input_sq_size=512, # Note: the pretrained model is trained on 512x512
qk_norm=True,
enable_flashattn=True,
enable_layernorm_kernel=False,
)

@zhengzangw
Copy link
Collaborator

That's correct. You need to manually modify the config file.

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

3 participants