Skip to content

Fixes high RAM usage Wan 2.1 LoRA model loading #442

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

Merged
merged 3 commits into from
Mar 14, 2025

Conversation

FurkanGozukara
Copy link
Contributor

@FurkanGozukara FurkanGozukara commented Mar 12, 2025

Fixes high RAM usage Wan 2.1 LoRA model loading

I tested with 480p Image to video produced exactly same video

Doesn't spike RAM usage

left original right new lora pipe

output.mp4

Fixes high RAM usage Wan 2.1
@FurkanGozukara FurkanGozukara changed the title Fixes high RAM usage Wan 2.1 Fixes high RAM usage Wan 2.1 LoRA model loading Mar 12, 2025
enable debug to see every message
@FurkanGozukara
Copy link
Contributor Author

@Artiprocher i have made it ultra fast. it was taking like 8 minute on powerful cpu now takes few seconds

@FurkanGozukara
Copy link
Contributor Author

image

@FurkanGozukara
Copy link
Contributor Author

i used this code to load even 3 LoRAs :D my app now supports up to 4 LoRAs - ultra fast takes like 3 seconds with 0 extra RAM

https://youtu.be/ueMrzmbdWBg

@Artiprocher Artiprocher merged commit 5c4d318 into modelscope:main Mar 14, 2025
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.

2 participants