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

adapted pretrained model to training #371

Merged
merged 1 commit into from May 7, 2024
Merged

adapted pretrained model to training #371

merged 1 commit into from May 7, 2024

Conversation

FrankLeeeee
Copy link
Contributor

No description provided.

@budzianowski
Copy link

budzianowski commented May 6, 2024

Does this allows to use pretrained model
models--hpcai-tech--OpenSora-STDiT-v2-stage3/snapshots/3074d7cc95aca24ae12b685e07fab7d3e2570667/model.safetensors for finetuning? This does not work:
torchrun --nnodes=1 --nproc_per_node=8 scripts /train.py ... -load /home/pawelx/.cache/huggingface/hub/models--hpcai-tech--OpenSora-STDiT-v2-stage3/snapshots/3074d7cc95aca24ae12b685e07fab7d3e2570667/model.safetensors I assume lack of ema will be a problem as well?

@FrankLeeeee
Copy link
Contributor Author

We have updated the config to support huggingface's from_pretrained, you can specify from pretrained like this https://github.com/hpcaitech/Open-Sora/blob/main/configs/opensora-v1-1/inference/sample.py#L10.

@ver217 ver217 merged commit 4eaaa6c into main May 7, 2024
@ver217 ver217 deleted the feature/train-ckpt branch May 7, 2024 02:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants