-
Notifications
You must be signed in to change notification settings - Fork 457
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
Error when Importing Cosmos-1.0 VAE Model Using AutoencoderKLVAE Due to .jit File Format #53
Comments
@lith0613 the branch of NeMo inside the container |
Thanks ! how can I download the NeMo repository inside the container |
@lith0613 NeMo comes pre-installed in the container. You can find the NeMo code in |
I am not familiar with docker operation. Can you provide a |
hi @lith0613 using docker is highly recommended. we haven't tested the code outside of container. |
I am also interested in running this outside of docker. Unfortunately, there are no good cloud GPU providers (RunPod, Vast, etc.) that will let you run your own docker commands. |
When executing
python cosmos1/models/diffusion/nemo/post_training/prepare_dataset.py
there is an issue with the line of code
from nemo.collections.diffusion.models.model import DiT7BConfig
.Specifically, during the initialization of
DiT7BConfig
with the line:The problem is traced to the VAE initialization, which executes
in line 183, https://github.com/NVIDIA/NeMo/blob/main/nemo/collections/diffusion/models/model.py.
dynamic_import(self.vae_module)
essentially executes the initialization ofnemo.collections.diffusion.vae.diffusers_vae.AutoencoderKLVAE
self.vae_path
isCosmos-1.0-Tokenizer-CV8x8x8
.However, the open-source VAE model Cosmos-1.0-Tokenizer-CV8x8x8, https://huggingface.co/nvidia/Cosmos-1.0-Tokenizer-CV8x8x8/tree/main, only consists of parameters ending with .jit, which cannot be properly imported using
self.vae = AutoencoderKL.from_pretrained(path, torch_dtype=torch.bfloat16)
in line 36, https://github.com/NVIDIA/NeMo/blob/main/nemo/collections/diffusion/vae/diffusers_vae.py. How should this issue be handled?Besides, about nemo, I installed from source using the main branch, is there any difference between this and the environment version installed by Docker?
Looking forward to your reply
The text was updated successfully, but these errors were encountered: