Nodes/TechNodes/ClipQuant
ComfyUI Node

ClipQuant

Crunch a CLIP text encoder down to N bits, experimentally

By TechnoByteJS·Created 2 years ago·Updated 2 years ago· 14
ClipQuant
  • clip
  • CLIP
bits8

Same family as this pack's VAEQuant and ModelQuant, and the same honest disclaimer applies straight from the README: purely experimental, no speed or storage benefit. This one targets the CLIP text encoder instead - the component that turns your prompt into the conditioning a sampler actually uses. If you're here because you want a smaller or faster text encoder, this isn't it; GGUF and fp8 text-encoder variants are the real thing for that, and they exist precisely because encoders like T5-XXL are big enough to matter. This node is for curiosity, not efficiency.

What it actually does

It re-quantizes the loaded clip's weights down to bits (1–8, default 8), the same integer knob as VAEQuant. Because CLIP's job is encoding text rather than pixels, degrading it doesn't show up as visual noise the way a crushed VAE does - expect prompt adherence to go first. At low bit depths you'd likely see the model losing its grip on specific words and details in the prompt before you see anything you'd call an "artifact," since there's no image for the damage to visibly live in until the conditioning it produces gets fed downstream.

Inputs and output

  • clip (required) - the CLIP encoder to degrade.
  • bits (required, 1–8, default 8) - the target precision.

Output is a CLIP - same type you fed in, so it wires straight back into whatever conditioning nodes were already consuming it.

Worth keeping straight: this is not the same lever as the clip_skip setting people are used to tuning. Clip skip changes which layer's output the encoder hands off; ClipQuant changes the numeric precision of every weight the encoder uses to get there in the first place. They're both ways of nudging CLIP's behavior, but one truncates the pipeline and the other blurs the whole thing - don't expect them to trade off against each other predictably.

Installing it

ComfyUI Manager: search TechNodes, install, restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/TechnoByteJS/ComfyUI-TechNodes --depth 1

No downloads, no dependencies beyond the pack itself.

Where people get burned

Same trap as its VAE sibling: expecting this to reduce VRAM or load time. It doesn't - there's no file written to disk, no compressed format, nothing that persists once the workflow finishes running; it's an in-memory precision cut for one run. And because the damage shows up indirectly (through weaker prompt following, not a visibly broken image), it's easy to blame the wrong node when output degrades - if your prompts stop landing after adding this node, that's ClipQuant doing exactly what it says, not a bug elsewhere in the graph. If your actual goal is a smaller or faster text encoder, reach for a GGUF or fp8 encoder variant instead.

CategoryTechNodes/quantization

Inputs (2)

NameTypeDefaultDescription
clipCLIP
bitsINT81–8

Outputs (1)

NameTypeDescription
CLIPCLIP