2026-10-16

ComfyUI GGUF: Run Flux and Wan 2.2 on 8GB VRAM (Tested)

Open desktop PC with a glowing graphics card beside a laptop generating a product photo, with external drives on the bench

Yes, an 8GB card can run Flux.1-dev and Wan 2.2 in ComfyUI. GGUF is how you do it. In my test on an RTX 3070 Ti, Flux.1-dev at Q4_K_S produced a clean 1024×1024 image in 61 seconds. Wan 2.2 5B rendered a 49-frame clip in about a minute at both Q4 and Q8.

GGUF is a compressed model format that stores weights at 2 to 8 bits instead of 16. A custom node, ComfyUI-GGUF, loads those files into ComfyUI's native workflows. The result is a Flux model that fits on consumer cards without special launch flags.

This guide covers what GGUF is, how to install the node, which quant level to pick, and what you give up. All numbers come from one machine, one seed, and the same prompts. I also compared GGUF against the full fp16 file for Wan 2.2. That comparison had a surprise.

Most Valuable Takeaways

  • Flux.1-dev Q4_K_S (6.8 GB) ran at 1024×1024 on 8GB in 51 s of sampling, 61 s wall-clock, with a 7,160 MiB peak. No launch flags were needed.
  • Wan 2.2 TI2V-5B at 832×480, 49 frames: Q4_K_M took 67 s, Q8_0 took 59 s, and the 10 GB fp16 file took 60 s. GGUF was not faster than fp16 on this model.
  • Q8_0 was the sweet spot for Wan 2.2. It used the least VRAM (7,124 MiB), sampled fastest, and matched fp16 composition at the same seed.
  • Q4_K_M changed the Wan 2.2 composition (different camera placement) but stayed coherent. The Flux Q4_K_S output showed no visible quant artifacts.
  • GGUF's real wins on 8GB are disk space, system RAM, and headroom. The fp16 Wan run staged 9.5 GB in system RAM and pushed a 30 GB machine to its limit.
  • The loader nodes hide under a category called "bootleg" in the node search. Many people cannot find them for this reason.
  • LoRA loading on GGUF models is still marked experimental by the project.

What GGUF Is and Why It Works for Flux and Wan

GGUF started as the file format used by llama.cpp to run language models on modest hardware. The ComfyUI-GGUF project by city96 brings that format to ComfyUI's native diffusion models. The transformer weights load at 2 to 8 bits per weight instead of the usual 16. A smaller file means less VRAM, less disk, and less system RAM traffic during a run.

Why did this take off with Flux and not SD1.5 or SDXL? The ComfyUI-GGUF README explains that transformer and DiT models tolerate quantization much better than older UNet models. Flux, SD3.5, Wan 2.2 and Qwen-Image all use that newer architecture. You can squeeze them down to 4 bits and still get usable output. That is why nearly every GGUF file on Hugging Face targets these models.

Install ComfyUI-GGUF

There are two routes. The ComfyUI Manager route is the easiest. If you do not have the Manager yet, see the ComfyUI Manager guide first.

Manager route: Open the Nodes Manager (the Extensions button in the top bar on current builds, or the Manager menu on older ones) and search for "GGUF." The first result should be ComfyUI-GGUF by city96. Install it and restart ComfyUI.

ComfyUI Manager's Nodes Manager searched for GGUF, with ComfyUI-GGUF by city96 first in the list

Git route: Per the ComfyUI-GGUF README, clone the repo into your custom_nodes/ folder and install the gguf Python package:

cd ComfyUI/custom_nodes
git clone https://github.com/city96/ComfyUI-GGUF
pip install --upgrade gguf

On the Windows portable build, the README gives this command instead, run from the ComfyUI root:

.\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-GGUF\requirements.txt

If you use the portable build, the ComfyUI Portable guide covers where that embedded Python lives. In my test, cloning plus pip install -r requirements.txt pulled gguf 0.19.0 and worked on the first try.

After a restart, double-click the canvas and type "GGUF." You should see Unet Loader (GGUF), DualCLIPLoader (GGUF) and CLIPLoader (GGUF). They sit under a category named "bootleg." That is the project's own joke, not a warning. If you browse by category instead of searching, that is where to look.

ComfyUI node search for GGUF showing Unet Loader (GGUF), DualCLIPLoader (GGUF) and the other loaders under the bootleg category

For other must-have nodes that pair well with this one, see the essential ComfyUI custom nodes list.

Where the Files Go

The ComfyUI-GGUF README says model files go in ComfyUI/models/unet/. Text-encoder GGUFs go in ComfyUI/models/clip/. That is what I used, and it worked.

Newer ComfyUI builds also use models/diffusion_models/ and models/text_encoders/. I checked the node source during the test. The loaders in ComfyUI-GGUF's nodes.py register both folder names for each loader. So either location works on a current install. Pick one and stay consistent so you can find things later.

For Flux, you need four files:

  1. The Flux GGUF itself, such as flux1-dev-Q4_K_S.gguf, in models/unet/.
  2. A T5 text encoder. The city96 account publishes a t5-v1_1-xxl encoder in GGUF. I used the Q5_K_M version (3.4 GB) in models/clip/.
  3. clip_l.safetensors, also in models/clip/.
  4. The Flux VAE, ae.safetensors, in models/vae/.

The T5 encoder matters more than people expect. At fp16 it is a large file on its own. A GGUF version of it is what makes the full stack fit on 8GB alongside the model.

For Wan 2.2, the GGUF goes in models/unet/ too. The text encoder, VAE and the rest of the workflow are the same as the standard Wan setup. The companion Wan 2.2 in ComfyUI guide walks through that full workflow.

Pick a Quant: Q8_0 vs Q6_K vs Q5_K_M vs Q4_K_M

The name tells you most of what you need. The number is bits per weight. A "K" means k-quantization, which keeps extra precision for the layers that matter most. S, M and L mean small, medium and large within that level. Q8_0 is treated as near-lossless. Q4_K_M is the usual "fits on 8GB" compromise.

Here are the file sizes for Flux.1-dev from the city96/FLUX.1-dev-gguf repo:

QuantFile size
Q2_K4.03 GB
Q3_K_S5.23 GB
Q4_06.79 GB
Q4_K_S6.81 GB
Q5_K_S8.29 GB
Q6_K9.86 GB
Q8_012.7 GB
F1623.8 GB

And for Wan 2.2 TI2V-5B from the QuantStack Wan2.2-TI2V-5B-GGUF repo:

QuantFile size
Q2_K1.85 GB
Q3_K_M2.55 GB
Q4_K_M3.43 GB
Q5_K_M3.81 GB
Q6_K4.21 GB
Q8_05.4 GB

A rule of thumb for picking by VRAM:

  • 24 GB: Q8_0. You are mostly saving disk and RAM at this point.
  • 16 GB: Q6_K or Q5_K_M for Flux. Q8_0 for Wan 2.2 5B.
  • 12 GB: Q5_K_M or Q4_K_M for Flux. Q8_0 still fits for Wan 2.2 5B.
  • 8 GB: Q4_K_S or Q4_K_M for Flux. Q8_0 or Q4_K_M for Wan 2.2 5B. Treat Q3 as a last resort.

Those are starting points, not hard limits. ComfyUI will offload part of a model to system RAM when it has to. My own test shows the 8GB tier is more flexible than the file sizes suggest.

One more practical note. Per the ComfyUI-GGUF repo's dequant.py, the common types have fast dequantization paths. That list covers Q8_0, Q6_K, Q5_K, Q4_K, Q4_0, Q4_1, Q5_0, Q5_1, Q3_K, Q2_K and BF16. Rarer types fall back to a slower NumPy path. Stick to the common ones in the tables above and you will not hit that.

Flux on 8GB, Measured

The test rig: an RTX 3070 Ti with 8,192 MiB of VRAM, of which the desktop idles at about 740 MiB. The machine has 30 GB of RAM and runs Arch Linux. Software was ComfyUI v0.41.0, Python 3.13, PyTorch 2.14.1 with CUDA 13.0, and ComfyUI-GGUF at commit 6ea2651. I launched ComfyUI with no flags. No --lowvram, nothing.

The workflow is the standard Flux graph with the two loaders swapped. Unet Loader (GGUF) replaces the normal Load Diffusion Model node. DualCLIPLoader (GGUF) replaces the standard DualCLIPLoader. Everything else stays the same. If you need the base Flux workflow explained, the ComfyUI Flux workflow guide covers it in full. I will not repeat it here.

Flux.1-dev GGUF workflow in ComfyUI: Unet Loader (GGUF), DualCLIPLoader (GGUF), Load VAE, prompt, FluxGuidance, latent, KSampler, decode and save

Files loaded: flux1-dev-Q4_K_S.gguf (6.8 GB), t5-v1_1-xxl-encoder-Q5_K_M.gguf (3.4 GB), clip_l.safetensors and ae.safetensors.

Close-up of the GGUF loader nodes with flux1-dev-Q4_K_S.gguf, t5-v1_1-xxl-encoder-Q5_K_M.gguf, clip_l and ae.safetensors selected

Settings: 1024×1024, 20 steps, euler sampler with the simple scheduler, FluxGuidance 3.5, CFG 1, seed 42.

Results:

  • Sampling took 51 seconds, or 2.56 seconds per step.
  • Wall-clock including model loads was 61 seconds.
  • Peak VRAM was 7,160 MiB.

nvidia-smi during the Flux Q4_K_S generation on the RTX 3070 Ti

One detail worth knowing. Even at Q4, ComfyUI partially offloaded the model. The log said "Unloaded partially: 3568 MB freed, 1968 MB remains loaded." So 8GB is tight for Flux at 1024² with the T5 encoder resident. But it ran without flags and without errors. That is the point.

The output was a clean editorial product shot: a matte black mug on a walnut desk in window light. I looked for the usual quant tells, such as smeared text, mushy edges or odd color banding. I did not see any.

The Flux.1-dev Q4_K_S output: a matte black mug on a walnut desk in window light, 1024 by 1024

Wan 2.2 Video on 8GB, Measured

This is where the picture got more interesting. I ran the Wan 2.2 TI2V-5B model three ways: Q4_K_M GGUF, Q8_0 GGUF, and the official 10 GB fp16 file. Same template, same prompt, seed 42. Settings were 832×480, 49 frames, 20 steps, uni_pc sampler, CFG 5.

ModelFileSamplingPer stepPeak VRAM
Q4_K_M GGUF3.4 GB67 s3.3 s7,330 MiB
Q8_0 GGUF5.4 GB59 s3.0 s7,124 MiB
fp16 official10.0 GB60 s3.0 s7,686 MiB

The headline: GGUF did not make generation faster than fp16 on this model. ComfyUI's dynamic offloading streamed the 10 GB fp16 file at the same per-step speed as Q8_0. Q4_K_M was slightly slower per step, which fits with the extra dequantization work.

So what does GGUF buy you here? Three things:

  1. Less disk and RAM traffic. The Q8_0 file is 4.6 GB smaller than fp16. The Q4_K_M file is 6.6 GB smaller.
  2. System RAM headroom. The fp16 run staged 9.5 GB in system RAM. That pushed my 30 GB machine close to its limit. A 16 GB machine would struggle.
  3. Lower peak VRAM. Q8_0 peaked 562 MiB below fp16. On an 8GB card, that margin matters for larger resolutions.

I also pushed Q4_K_M and fp16 to the template's full setting: 1280×704, 121 frames. The Q4 quant finished in 11 minutes of wall-clock at a 7,798 MiB peak. The VAE decode automatically fell back to tiled mode. The 10 GB fp16 file finished too, in 10 minutes 52 seconds at 27.4 seconds per step, with the same tiled-VAE fallback.

The honest summary: on this card and this model, GGUF is a convenience and a disk-and-RAM saver, not a speed-up. The big wins come with models that do not offload gracefully, or machines with less system RAM.

On quality, Q8_0 was the clear sweet spot. It used the least VRAM, sampled the fastest, and its output was visually indistinguishable in composition from fp16 at the same seed. Q4_K_M changed the composition. The camera sat in a different place. But the clip was just as coherent, with no obvious artifacts.

Frame 24 from Wan 2.2 5B runs at Q4_K_M, Q8_0 and fp16 with the same prompt and seed

For the full Wan 2.2 setup, including the high-noise and low-noise model pairing for the larger 14B version, see Wan 2.2 in ComfyUI guide.

GGUF vs fp8 vs NF4

GGUF is not the only way to shrink a model. Here is how the three common options compare. File sizes are for Flux.1-dev. Everything else is qualitative.

FormatFlux.1-dev sizeCustom node?GPU supportQuality
fp8~11.9 GBNoHardware-accelerated on RTX 40-series and newer; runs elsewhere via castingClose to fp16
NF4About 4 bits per weightYes (bitsandbytes)NVIDIA first; limited elsewhereRoughly comparable to Q4
GGUF Q8_012.7 GBYes (ComfyUI-GGUF)Any GPU ComfyUI runs on; no FP8 hardware needed (tested on a 30-series)Near-lossless
GGUF Q4_K_S6.81 GBYes (ComfyUI-GGUF)Same as aboveGood; small composition shifts possible

The fp8 size comes from the Kijai/flux-fp8 repo on Hugging Face. fp8 halves the fp16 file and needs no custom node. But 11.9 GB still does not fit on 8GB without heavy offloading. And fp8 math is only accelerated on NVIDIA's Ada generation and newer, per NVIDIA's Ada architecture whitepaper. On my 3070 Ti, fp8 gives no compute benefit.

NF4 arrived with Forge's Flux support, as described in lllyasviel's Forge announcement. It relies on the bitsandbytes library. It works well in Forge but has seen less uptake in ComfyUI, where GGUF became the default low-VRAM path.

GGUF goes further than fp8 on size, works on cards without FP8 hardware, and has the widest choice of pre-quantized models on Hugging Face. That is why it won the 8GB crowd.

Limits and Gotchas

LoRAs are experimental. The ComfyUI-GGUF README marks LoRA loading on GGUF models as experimental. In practice many LoRAs work, but expect occasional errors or weaker effect. If LoRAs are central to your workflow, test them before committing. The ComfyUI LoRA guide covers the standard setup.

Not faster when everything fits. My Wan 2.2 test showed this clearly. Dequantizing weights on the fly costs a little time per step. If the fp16 file already fits in VRAM, or ComfyUI can stream it well, GGUF will not beat it on speed. Q4 was the slowest of the three. Pick GGUF for fit and footprint, not for throughput.

Exotic quant types are slow. As noted above, the project has fast paths for the common types only. If you download a rare variant and it crawls, that is why.

The text encoder matters as much as the model. A full-precision T5 encoder can eat several gigabytes on its own. Use the GGUF version of t5-v1_1-xxl for Flux. The Q5_K_M encoder worked fine in my test.

Partial offloading is normal. Do not panic when the log says "Unloaded partially." On 8GB, Flux at 1024² will do this even at Q4. It still runs.

8GB is the floor, not a comfortable home. Peak VRAM sat between 7,100 and 7,800 MiB in every run. If you want to batch, run ControlNet, or push resolution, consider a cloud card. RunPod vs AWS for ComfyUI compares the options.

Frequently Asked Questions

What does GGUF mean?

GGUF is the file format the ggml and llama.cpp projects use to store quantized models; the ggml GGUF spec defines it. The ComfyUI-GGUF README describes it as a way to load diffusion model weights at 2 to 8 bits per weight instead of 16. Think of it as "the compressed model format that works on small cards."

Does Q4 look worse than Q8 or fp16?

In my test, Q4 output was coherent and artifact-free, but it was not identical to fp16. For Wan 2.2, Q4_K_M placed the camera differently at the same seed. Q8_0 matched fp16 composition. For Flux, the Q4_K_S image showed no visible quant artifacts. The safe guidance: use Q8_0 when it fits, and expect small composition shifts at Q4 rather than visible damage.

Can I use LoRAs with GGUF models?

Yes, but the ComfyUI-GGUF README calls LoRA support experimental. Chain a standard LoRA loader after the Unet Loader (GGUF) node and test. Some LoRAs apply cleanly. Others fail to load or have weaker effect. If a LoRA is critical, try it before building a workflow around it.

Can I convert my own model to GGUF?

Yes. The ComfyUI-GGUF repo includes conversion tools in its tools/ folder, and the README documents the process. It involves a patched version of llama.cpp's quantization script. It is not hard, but it is a command-line job. For the popular models, someone has usually already uploaded the quants you want. Check the best ComfyUI models guide for the current recommended downloads.

Does ComfyUI-GGUF work on AMD or Mac?

The node is pure PyTorch and does not require CUDA. My test was NVIDIA only, so I cannot give you AMD or Apple Silicon numbers. The README does flag one Mac caveat: on macOS Sequoia it says torch 2.4.1 is required because of a buffer-size problem in newer torch builds. The dequantization paths run on whatever device ComfyUI uses, so it should work where ComfyUI works. Speed will depend on your backend. If you run on AMD or Mac, test a small Q8_0 file first and watch the per-step time.

Conclusion

GGUF turns an 8GB card from "Flux won't load" into "Flux runs in a minute." Install ComfyUI-GGUF, drop a Q4_K_S Flux file and a Q5_K_M T5 encoder in place, and the standard workflow just works. For Wan 2.2 5B, Q8_0 is the pick: lowest VRAM, fastest sampling, and output that matches fp16.

Just do not expect a speed boost. On this card, ComfyUI's dynamic offloading let the fp16 Wan file keep pace. GGUF's real gift is fit, disk space, and system RAM headroom.

If you are starting from scratch, the ComfyUI installation guide gets ComfyUI running first. Then come back here, install the node, and pick your quant.

If you want help turning a workflow like this into something that runs on its own, book a free automation audit at /audit/. And if you want the next test like this one in your inbox, the newsletter goes out whenever a post is published.

Enjoyed this one?

Get The Streamlined CEO — one email a week on what’s actually worth automating.

No spam. Unsubscribe anytime.

Free · The Automation Playbook

The 5 systems readers build first

Each with the exact tools, the exact workflow, and the exact steps. Plus The Streamlined CEO — one email a week on what’s actually worth automating.

No spam. Unsubscribe anytime.