-
Notifications
You must be signed in to change notification settings - Fork 29
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 Code -9 #9
Comments
I believe this means you are running out of memory (RAM, not VRAM) when loading the text encoder, and the process gets killed. I took a look, the official HunyuanVideo code loads the text encoder in float32 precision then casts it to the configured dtype. I just pushed a patch that avoids this by directly loading it in the correct dtype (e.g. bfloat16). So it should use half the RAM while loading now. Pull the latest code and it might work now. I'm assuming you probably have 32GB of RAM. Do note, the transformer model alone is 13b parameters, meaning 26GB in bfloat16. I think that the loading code loads it directly into fp8 though, if you have that configured? My point is though, there may be places where RAM usage is tight. The change I just pushed should fix the text encoder part but other parts might still OOM. |
Still getting it, and yea 32GBs. Guess I'll have to upgrade to 64GB to run it. |
on wsl right? try assign more rams modifying .wslconfig. or increasing swap. |
It's works fine on my 32GB PC. [wsl2] |
Getting a error code -9? I have all the model files / folders in the right location.
The text was updated successfully, but these errors were encountered: