-
Notifications
You must be signed in to change notification settings - Fork 10.2k
GDS offloader #10258
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
base: master
Are you sure you want to change the base?
GDS offloader #10258
Conversation
…ching - limited to NVIDIA GPUs only
- need to work with tensorflow and other formats - afaik, almost all models shared now is in torch format - converting types should not be that big of a deal
Is this supported on Windows? |
@yamatazen I only tested on linux (ubuntu), feel free to test it out on windows and share feedback with us. |
requirements.txt
Outdated
pynvml>=11.4.1 | ||
cudf>=23.0.0 | ||
numba>=0.57.0 | ||
nvidia-ml-py>=12.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want anything cuda specific in the requirements.txt because we are supposed to support AMD, Mac, XPU, etc...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood, do I keep them in different requirements txt ?? Or how do we handle this? Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be using a script, just like cuda_malloc.py
(which is also cuda-specific) 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I have removed those from requirements.txt
and put it under readme.md
. Care to take a look again please?
Hi, I tried to set this up on Windows without success. I'm getting And I have a suggestion for a small refactor, to move the if hasattr(args, 'enable_gds') and args.enable_gds:
from comfy.gds_loader import GDSConfig, init_gds
config = GDSConfig( ... )
init_gds(gds_config) I'm rooting for this PR, feels like a nice feature! |
@bezo97 can you please check if the GDS settings is enabled on your windows machine or not? Maybe windows requires additional drivers sometimes or maybe you need to enable the SDK, afaik they should be there, but you need to enable them. Be careful, when you are working with SSD on windows now, the last month's update broke almost all SSDs. So I can't suggest you any direct solution but I will definetly try to debug the issue together. ![]() Also we need these deps:
Can you confirm please, that till this point everything is working till this point? And then can you please test with these following CLI commands for me?
And yes, I am trying to work based on your review now! ref: |
@maifeeulasad I made sure the feature is enabled on my Windows. It turns out that the problem is with |
- works only on linux and nvidia
@bezo97 thanks, I have pushed the changes! Care to take a look again? |
@maifeeulasad LGTM, hopefully others can test it |
closes #10257
for testing it on your system:
I was able to run wan 14b without any effort, generally it throws OOM in my GPU, and nearly hangs my CPU.
open for review, feel free to share your thoughts