The readme has most of the info as well as the sample workflows, though I'll try and expand it a bit more to include a step by step when I get the time. For now, here's a quick rundown:
Install ComfyUI as well as the NetDist custom node (from the manager or manually) on all the PCs you intend to use.
If you're using different PCs, make sure you have the same models/controlnets/LoRAs/custom nodes present on both.
Start the instances. If you have two GPUs in the same PC, then you'll have to start your second instance with --port 8288 --cuda-device 1 so it uses your second GPU on a different port. If you're running on a separate computer, you'll want to add --listen and note down the IP address of this second computer (type ipconfig in a command prompt and look for the right IPv4 Address).
Load a workflow you want to use, or just grab one of the simple example ones from the GitHub readme.
If you're using your own workflow then you'll want to add the Queue On Remote(single) node and connect the seed/batch to your (initial) KSampler and Empty Latent Image nodes respectively. The remote_info output of this node should be connected to a Fetch from remote node. Whatever image you connect to this node will be the your "final" image that gets fetched from the other instance(s).
Set the remote_url to that of your other instance. Make sure it's reachable first! (e.g. just open the URL in a browser).
Set the batch size if your second GPU is stronger/weaker than your main one.
That's about it for a simple dual-GPU setup. There's some fancy nodes for scaling past that but I imagine most people will only be using two for a start. The readme should get you up to speed if you do want to add more GPUs though.
Got a ping about this, for context, I did the gguf conversion for those model files.
GGUF just uses numpy as the underlying storage format (just like safetensors). While it's technically possible that there are unknown exploits in the llama.cpp code or numpy itself, there's too many steps and libraries involved for that to be a feasible attack vector in my opinion.
The current quantization pipeline is run on a temporary runpod host, and is done with the following steps:
Safetensors split files are merged into a single safetensors file (all headers are dropped here, and only the weights are kept)
Safetensors merged model weights are converted to GGUF (the loaded torch tensors are converted to numpy, i.e. passed through two different libraries)
GGUF base FP32 file is used to create the various quants (this uses the C++ llama.cpp codebase, so anything targeting specific python code would most likely be stripped here)
A post processing step is done which involves python/numpy again, this is due to the C++ code not handling some of the weights correctly by default.
The tokenizer isn't involved in this process, since GGUF files only store one model per file, which in this case is the main video model. If I do convert the text encoder (needs extra work), I'll use the base repo (google/umt5-xxl) since that's the ground truth, I did the same thing with the T5 for flux, which is based off of google/t5-v1_1-xxl, hence why it has the FP32 model despite model repos rehosting it only having FP16/BF16 encoder only versions.
Also, as a note, if anyone does find a reproducible exploit in any library involved, they should follow the proper disclosure policies. For llama.cpp it can be found here, for safetensor files, as they are considered a huggingface library, it would involve contacting the address listed here with information on the exploits and possible steps to reproduce it.
LMK if there are any questions or clarifications required. The conversion pipeline is open source and AFAIK gguf files should be hash reproducible between different hosts (this is the branch used for conversion). I can't vouch for the text encoder or tokenizer but the files from my repo at least should be safe due to the multi-step nature of the conversion process.
Ah, got it. I saw this a bit late so I didn't get to see the original youtube community post, but figured I'd give my 2c in case it helps explain which parts of the process involve the original files.
Unrelated but TinyWall can be useful for locking down incoming/outgoing connections at a per-process level. It can be a bit tedious to unblock/reblock processes when installing or updating things but it does give some peace of mind at least.
The readme has most of the info as well as the sample workflows, though I'll try and expand it a bit more to include a step by step when I get the time. For now, here's a quick rundown:
Install ComfyUI as well as the NetDist custom node (from the manager or manually) on all the PCs you intend to use.
If you're using different PCs, make sure you have the same models/controlnets/LoRAs/custom nodes present on both.
Start the instances. If you have two GPUs in the same PC, then you'll have to start your second instance with
--port 8288 --cuda-device 1so it uses your second GPU on a different port. If you're running on a separate computer, you'll want to add--listenand note down the IP address of this second computer (typeipconfigin a command prompt and look for the rightIPv4 Address).Load a workflow you want to use, or just grab one of the simple example ones from the GitHub readme.
If you're using your own workflow then you'll want to add the
Queue On Remote(single)node and connect the seed/batch to your (initial)KSamplerandEmpty Latent Imagenodes respectively. Theremote_infooutput of this node should be connected to aFetch from remotenode. Whatever image you connect to this node will be the your "final" image that gets fetched from the other instance(s).Set the
remote_urlto that of your other instance. Make sure it's reachable first! (e.g. just open the URL in a browser).Set the batch size if your second GPU is stronger/weaker than your main one.
That's about it for a simple dual-GPU setup. There's some fancy nodes for scaling past that but I imagine most people will only be using two for a start. The readme should get you up to speed if you do want to add more GPUs though.
Nope, just using ComfyUI. Every GPU has a separate instance running with one controlling the other 3.
That would be handy, but I'd imagine it would need a lot of changes to the main UI, especially the model loading/unloading code.
Got a ping about this, for context, I did the gguf conversion for those model files.
GGUF just uses numpy as the underlying storage format (just like safetensors). While it's technically possible that there are unknown exploits in the llama.cpp code or numpy itself, there's too many steps and libraries involved for that to be a feasible attack vector in my opinion.
The current quantization pipeline is run on a temporary runpod host, and is done with the following steps:
The tokenizer isn't involved in this process, since GGUF files only store one model per file, which in this case is the main video model. If I do convert the text encoder (needs extra work), I'll use the base repo (google/umt5-xxl) since that's the ground truth, I did the same thing with the T5 for flux, which is based off of google/t5-v1_1-xxl, hence why it has the FP32 model despite model repos rehosting it only having FP16/BF16 encoder only versions.
Also, as a note, if anyone does find a reproducible exploit in any library involved, they should follow the proper disclosure policies. For llama.cpp it can be found here, for safetensor files, as they are considered a huggingface library, it would involve contacting the address listed here with information on the exploits and possible steps to reproduce it.
LMK if there are any questions or clarifications required. The conversion pipeline is open source and AFAIK gguf files should be hash reproducible between different hosts (this is the branch used for conversion). I can't vouch for the text encoder or tokenizer but the files from my repo at least should be safe due to the multi-step nature of the conversion process.
Ah, got it. I saw this a bit late so I didn't get to see the original youtube community post, but figured I'd give my 2c in case it helps explain which parts of the process involve the original files.
Unrelated but TinyWall can be useful for locking down incoming/outgoing connections at a per-process level. It can be a bit tedious to unblock/reblock processes when installing or updating things but it does give some peace of mind at least.