• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
Best Free Web Resources — local AI tools and hardware guides

Best Free Web Resources

Local AI Tools & Digital Engineering Resources

What can I run?
  • AI Tools
    • Start: Local LLMs
    • Ollama Models & VRAM
    • LM Studio Models
    • GPU Comparison
    • AI Hardware Matrix
    • Local LLM Directory
    • VRAM Calculator
    • Hardware Compare
    • Local Model Recommender
    • API Pricing & ROI
  • Local AI Guides
  • Web Resources
    • Inspiration
    • Photography
    • Games
    • SEO
    • Tutorial
      • Coding
      • WordPress
    • Resume/CV
    • Graphics
      • Logo
    • Freebies
Cover illustration: Which Text Encoder File?

ComfyUI Text Encoders: clip_l, t5xxl and Which File Each Model Needs

December 2, 2026 by Rupesh Kumar

Every ComfyUI image or video model needs a text encoder, the model that turns your prompt into numbers the diffusion model can use. SD 1.5 and SDXL checkpoints carry theirs inside the checkpoint file. Almost everything newer needs one or more separate files in ComfyUI/models/text_encoders/, loaded with CLIPLoader or DualCLIPLoader and the right type setting. Pick the wrong file or the wrong type and you get a mat1 and mat2 shapes cannot be multiplied error or a prompt that does nothing.

This guide lists, for 18 models ComfyUI runs natively, the exact text encoder file names, their sizes, the loader node and the type to choose, then covers the errors people actually hit. BFWR has not run these workflows. The file names come from Comfy-Org’s own workflow templates, the sizes from the Hugging Face file listings, and the loader options from ComfyUI’s source code, all read on 22 November 2026.

Quick answer

  • Folder: put text encoder files in ComfyUI/models/text_encoders/. The older ComfyUI/models/clip/ folder still works: ComfyUI’s folder_paths.py searches both for the same list.
  • FLUX.1: clip_l.safetensors (0.25 GB) plus t5xxl_fp16.safetensors (9.79 GB) or t5xxl_fp8_e4m3fn.safetensors (4.89 GB), in DualCLIPLoader with type flux. One slot each, never the T5 file twice.
  • SD 3.5: clip_l.safetensors, clip_g.safetensors (1.39 GB) and a t5xxl file in TripleCLIPLoader, or the single checkpoint that bundles all three.
  • SD 1.5 and SDXL: nothing to download. Load Checkpoint outputs the text encoder as its CLIP output.
  • Same file, different type: qwen_3_4b.safetensors is byte-identical in the Z-Image Turbo and FLUX.2 klein 4B repositories. Z-Image’s template loads it as type lumina2, FLUX.2 klein’s as type flux2.
  • Big encoders: the text encoder is often larger than the image model. Qwen-Image 2.1’s is 17.53 GB at bf16 against 14.23 GB for the diffusion model.

Where text encoder files go

In ComfyUI’s folder_paths.py, the text_encoders entry lists two directories, models/text_encoders and models/clip, and a legacy map renames any request for clip to text_encoders. So files in either folder show up in every text encoder loader. New downloads should go in text_encoders/, which is the folder every current Comfy-Org template names.

If you copy files in while ComfyUI is running, restart it or refresh so the dropdowns update. ComfyUI’s models page lists this as step 4 of using any model. To keep models outside the install, copy extra_model_paths.yaml.example to extra_model_paths.yaml in the ComfyUI root and add your own paths.

Which loader node, and why the type matters

There are four loader nodes, all in model / loaders:

  • CLIPLoader (Load CLIP): one file plus a type. Used by most models released since 2025.
  • DualCLIPLoader: two files plus a type. Used by SDXL (separate files), FLUX.1, HunyuanVideo and HunyuanVideo 1.5.
  • TripleCLIPLoader: three files, no type. Its built-in recipe reads “sd3: clip-l, clip-g, t5”.
  • QuadrupleCLIPLoader: four files, for HiDream.

The type is not a label. ComfyUI detects what kind of encoder a file is from its weights, then uses the type to decide which model’s conditioning to build from it. In the current source, a Qwen3 4B file loaded with type flux or flux2 becomes a FLUX.2 klein encoder, and the same file with any other type becomes a Z-Image encoder. A T5-XXL file becomes an SD3, LTX, PixArt, Wan, HiDream or CogVideoX encoder depending on the type. The file loads without complaint either way. The mismatch surfaces later, usually as a shape error in the sampler.

Both nodes also have an advanced device option with default and cpu. Setting cpu makes the CPU both the load device and the offload device, so the encoder sits in system RAM and runs there. That frees VRAM for the diffusion model at the cost of slower prompt encoding.

Text encoder files by model family

Sizes are in GB (109 bytes), read from the Hugging Face file listings. Comfy-Org’s own documentation sometimes prints the same files in GiB, so its figures can be about 7% lower. “Template” means the file the Comfy-Org workflow template loads.

Model Text encoder file(s) Size Loader and type
SD 1.5 Inside the checkpoint n/a Load Checkpoint (or CLIPLoader, stable_diffusion)
SDXL Inside the checkpoint n/a Load Checkpoint (or DualCLIPLoader, sdxl, clip-l + clip-g)
SD 3.5 clip_l.safetensors, clip_g.safetensors, t5xxl_fp16.safetensors or t5xxl_fp8_e4m3fn.safetensors 0.25 + 1.39 + 9.79 (fp16) or 4.89 (fp8) TripleCLIPLoader
FLUX.1 dev / schnell clip_l.safetensors + t5xxl_fp16.safetensors or t5xxl_fp8_e4m3fn.safetensors 0.25 + 9.79 or 4.89 DualCLIPLoader, flux
FLUX.2 dev mistral_3_small_flux2_bf16.safetensors (template); fp8 and fp4_mixed builds exist 35.58 (bf16), 18.03 (fp8), 12.28 (fp4_mixed) CLIPLoader, flux2
FLUX.2 klein 4B qwen_3_4b.safetensors 8.04 CLIPLoader, flux2
FLUX.2 klein 9B qwen_3_8b_fp8mixed.safetensors (template) 8.66 (bf16 build 16.38) CLIPLoader, flux2
FLUX.3 Image klein qwen3vl_4b_int8_convrot.safetensors + prompt upsampler qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors 4.86 + 6.72 CLIPLoader, flux3 (both)
Qwen-Image qwen_2.5_vl_7b_fp8_scaled.safetensors 9.38 CLIPLoader, qwen_image
Qwen-Image 2.1 qwen3vl_8b_int8_convrot.safetensors + optional prompt enhancer qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors 9.35 + 9.47 CLIPLoader, qwen_image (enhancer: stable_diffusion in the template)
Z-Image Turbo qwen_3_4b.safetensors 8.04 (fp8_mixed 5.63, fp4_mixed 3.48) CLIPLoader, lumina2
MOSS-Image qwen3.5_9b_w4a8_gptq.safetensors 7.34 (int8 9.75, bf16 19.31) CLIPLoader, moss_image
MiniMax H3 Image qwen3vl_32b_minimax_h3_int8_convrot.safetensors + prompt expander qwen3.5_9b_w4a8_gptq.safetensors 27.14 + 7.34 CLIPLoader, minimax (both)
MiniMax H3 (video) qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors (text-to-video template) 15.69 (int8 27.14, bf16 51.51) CLIPLoader, minimax
Wan 2.2 umt5_xxl_fp8_e4m3fn_scaled.safetensors 6.74 (fp16 11.37) CLIPLoader, wan
HunyuanVideo clip_l.safetensors + llava_llama3_fp8_scaled.safetensors 0.25 + 9.09 DualCLIPLoader, hunyuan_video
HunyuanVideo 1.5 qwen_2.5_vl_7b_fp8_scaled.safetensors + byt5_small_glyphxl_fp16.safetensors 9.38 + 0.44 DualCLIPLoader, hunyuan_video_15
LTX-2.5 gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors + optional gemma4_e2b_it_int8_convrot.safetensors 15.37 + 5.20 CLIPLoader, ltxv (both)

Two repositories in that table are gated on Hugging Face: black-forest-labs/flux-3-image-klein-comfy (FLUX.3 klein) and Lightricks/LTX-2.5. You must accept the licence on the repository page before the files download. The file listings themselves are public, which is where the sizes above come from.

Several Comfy-Org repositories have also been renamed, for example Comfy-Org/flux2-klein to Comfy-Org/Flux-2-Klein-4B and Comfy-Org/Wan_2.1_ComfyUI_repackaged to Comfy-Org/Wan-2.1. The old names, which the templates still link, redirect to the new ones, so downloads keep working.

SD 1.5 and SDXL: the encoder is already in the checkpoint

In ComfyUI’s first-generation tutorial, the Load Checkpoint node has three outputs: MODEL, CLIP (the text encoder) and VAE. You wire CLIP into both CLIP Text Encode (Prompt) nodes and never touch a separate encoder. SD 1.5 uses one CLIP ViT-L/14 encoder and SDXL uses two (CLIP-L and OpenCLIP bigG), according to ComfyUI’s model troubleshooting page. If you want to know what else is inside a checkpoint file, our checkpoints, LoRAs and VAEs explainer covers it.

FLUX.1 and SD 3.5: clip_l and t5xxl

Both families share the same clip_l.safetensors. The copy in comfyanonymous/flux_text_encoders, the one in Comfy-Org/stable-diffusion-3.5 and the one in Comfy-Org/Hunyuan-Video have the same SHA-256 hash, so you need it once. The same is true of the T5 files: FLUX.1 and SD 3.5 use identical t5xxl_fp16.safetensors and t5xxl_fp8_e4m3fn.safetensors.

For FLUX.1, ComfyUI’s tutorial sets clip_name1 to t5xxl_fp16.safetensors and clip_name2 to clip_l.safetensors in DualCLIPLoader, type flux. It marks the fp16 T5 as “Recommended when your VRAM is greater than 32GB.” and suggests the fp8 version for less. The fp8 file is half the size, 4.89 GB against 9.79 GB.

For SD 3.5, the sd3.5_simple_example template avoids separate files entirely: sd3.5_medium_incl_clips_t5xxlfp8scaled.safetensors (11.64 GB) is a single checkpoint with all three encoders inside. For SD 3.5 Large, sd3.5_large_fp8_scaled.safetensors (14.93 GB) in the same repository also carries clip_l, clip_g and t5xxl weights, according to its safetensors header. To load the encoders separately, use TripleCLIPLoader with clip_l, clip_g and one T5 file.

FLUX.2, Z-Image and the Qwen3 files

FLUX.2 dev’s encoder is a 24B Mistral model, and at bf16 the file is 35.58 GB, about the size of the fp8 diffusion model (35.46 GB). The fp8 encoder is 18.03 GB.

FLUX.2 klein and Z-Image Turbo are where the type setting matters most. qwen_3_4b.safetensors in Comfy-Org/Flux-2-Klein-4B and in Comfy-Org/Z-Image-Turbo are the same file, 8,044,982,048 bytes with matching hashes. Load it with type flux2 for FLUX.2 klein 4B and lumina2 for Z-Image Turbo. FLUX.2 klein 9B needs a different, larger file: qwen_3_8b_fp8mixed.safetensors. Our Z-Image Turbo guide covers the rest of that model’s files.

FLUX.3 Image klein uses a Qwen3-VL 4B encoder, type flux3, plus a 9B prompt upsampler loaded the same way. See our FLUX.3 Image klein guide for the licence and the diffusion files.

Qwen-Image, MOSS-Image and MiniMax H3: encoder bigger than the image model

Qwen-Image 2.1 uses Qwen3-VL 8B. Its bf16 encoder (17.53 GB) is larger than its bf16 diffusion model (14.23 GB), and at int8 the template’s encoder (9.35 GB) is larger than the int8 model (7.26 GB). MOSS-Image goes further: its bf16 Qwen3.5 9B encoder is 19.31 GB against a 10.16 GB bf16 model, which is why the template loads a 7.34 GB w4a8 build. MiniMax H3 Image’s Qwen3-VL 32B encoder at int8 is 27.14 GB, before the 7.34 GB prompt expander. We cover each in detail: Qwen-Image 2.1, MOSS-Image and MiniMax H3 Image.

The original Qwen-Image (2025) uses Qwen2.5-VL 7B, qwen_2.5_vl_7b_fp8_scaled.safetensors, type qwen_image. HunyuanVideo 1.5 uses the identical file, but in DualCLIPLoader with byt5_small_glyphxl_fp16.safetensors and type hunyuan_video_15.

Video models: Wan 2.2, HunyuanVideo and LTX-2.5

Wan 2.2’s templates load umt5_xxl_fp8_e4m3fn_scaled.safetensors (6.74 GB) from Comfy-Org’s Wan 2.1 repository with type wan. The 5B and 14B models share it. The original HunyuanVideo pairs clip_l.safetensors with llava_llama3_fp8_scaled.safetensors (9.09 GB). LTX-2.5 needs gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors (15.37 GB) from the gated Lightricks repository; the smaller Gemma 4 E2B file is, in ComfyUI’s words, “Optional: only needed when the prompt enhancer is enabled.”

Common errors and what causes them

mat1 and mat2 shapes cannot be multiplied

This is the usual sign of a wrong encoder file or wrong type. In issue #12076 (closed January 2026) the error was (512x2560 and 7680x3072) with FLUX.2 klein. A ComfyUI contributor reproduced it by loading qwen_3_4b.safetensors with the 9B klein model, which needs qwen_3_8b_fp8mixed.safetensors. Other commenters in that thread pointed out that the type must be flux2, not lumina2. Issue #12132 was the same mix-up with a FLUX.2 klein 9B GGUF and a Z-Image workflow.

ComfyUI’s model troubleshooting page gives the FLUX.1 version of the mistake: putting t5xxl_fp8_e4m3fn.safetensors in both DualCLIPLoader slots instead of T5 in one and clip_l in the other. Its general advice: “Keep all workflow models within the same architecture family”.

The fix is always the same: open the template for your model, match the file names in the table above, and set the type the template uses.

clip missing: ['clip_l.logit_scale', 'clip_l.transformer.text_projection.weight']

This warning filled issue #3161 in 2024 and was usually harmless. In the current comfy/sd.py, when a checkpoint’s only missing text encoder keys are logit_scale and text_projection.weight, ComfyUI logs it at debug level rather than as a warning. A clip missing warning that lists many other keys, especially from a separate encoder file, means the file does not match what the loader expected.

“no CLIP/text encoder weights in checkpoint”

ComfyUI prints “no CLIP/text encoder weights in checkpoint, the text encoder model will not be loaded.” when you open a diffusion-only file with Load Checkpoint. Files such as flux1-dev.safetensors or anything from a diffusion_models folder belong in Load Diffusion Model, with the encoders loaded separately.

fp8 encoders fail on some hardware

fp8 files need hardware and software support. Issue #5335 reports “ComfyUI crashes due to invalid or unsupported data type Float8_e4m3fn.” on AMD cards running through DirectML, and issue #16107 (open) covers fp8 models failing on Apple’s MPS backend. On those systems use the fp16 or bf16 encoder, for example t5xxl_fp16.safetensors or umt5_xxl_fp16.safetensors. ComfyUI also has launch flags for the encoder’s storage precision, including --fp16-text-enc and --fp8_e4m3fn-text-enc.

Running out of memory on the encoder

Large encoders can be the part that does not fit. Set device to cpu on the loader, or use a smaller build: Z-Image Turbo’s qwen_3_4b_fp8_mixed.safetensors is 5.63 GB against 8.04 GB, and Wan’s umt5_xxl_fp8_e4m3fn_scaled.safetensors is 6.74 GB against 11.37 GB. Our image generation VRAM calculator shows how much offloading the encoder saves for each model.

FAQ

Where do I put clip_l.safetensors in ComfyUI?

In ComfyUI/models/text_encoders/. The older ComfyUI/models/clip/ folder is still read, so files already there keep working.

Should I use t5xxl_fp16 or t5xxl_fp8_e4m3fn?

ComfyUI’s FLUX.1 tutorial recommends fp16 above 32GB of VRAM and fp8 below. The fp8 file is 4.89 GB against 9.79 GB. On hardware without fp8 support, such as AMD cards on DirectML, use fp16.

Is clip_l the same file for FLUX.1 and SD 3.5?

Yes. The copies in the FLUX text encoder, SD 3.5 and HunyuanVideo repositories have the same hash, so one download covers all three.

What type do I pick in CLIPLoader?

The one the official template uses for your model, as in the table above: flux2 for FLUX.2, lumina2 for Z-Image, qwen_image for Qwen-Image, wan for Wan and so on. The same file can need a different type for a different model.

Why is my text encoder bigger than the model?

Newer models use full language models as encoders: Qwen3-VL 8B, Qwen3.5 9B, Mistral 24B, Qwen3-VL 32B. At the same precision these can outweigh the diffusion model.

Related guides and tools

  • ComfyUI install: Desktop vs Portable vs Manual
  • Checkpoints, LoRAs and VAEs explained
  • Qwen-Image 2.1 in ComfyUI
  • MOSS-Image in ComfyUI
  • FLUX.3 Image klein in ComfyUI
  • Z-Image Turbo in ComfyUI
  • MiniMax H3 Image in ComfyUI
  • ComfyUI models and VRAM
  • Image generation VRAM calculator

Sources

  • Comfy-Org/ComfyUI on GitHub: folder_paths.py, nodes.py, comfy/sd.py, comfy/cli_args.py, comfy_extras/nodes_sd3.py, comfy_extras/nodes_hidream.py (master, 22 November 2026; latest release v0.46.0, 18 November 2026)
  • Comfy-Org/workflow_templates: the template workflow files for each model
  • ComfyUI docs: models, model issues, first generation, FLUX.1, FLUX.3 klein, LTX-2.5
  • Hugging Face file listings: flux_text_encoders, stable-diffusion-3.5, Flux-2-Dev, Flux-2-Klein-4B, Flux-2-Klein-9B, Z-Image-Turbo, Qwen-Image-2.1, MOSS-Image, MiniMax-H3, Wan-2.1, Hunyuan-Video-1.5
  • ComfyUI issues #12076, #12132, #3161, #5335, #16107

Updated 22 November 2026. Loader options and folder paths were read from ComfyUI’s master branch, file names from the Comfy-Org workflow templates and file sizes from the Hugging Face API on that date.

⚡ Free Interactive Tools

Work out what your hardware can actually run

Free calculators and directories, sized from real model weights — before you download gigabytes or order a card:

🎨 ComfyUI VRAM Peak memory per image model 🚀 Start: Local LLMs Hardware, runner and first model 📊 What Can I Run? Models by VRAM tier, 8GB–128GB 💻 Hardware Matrix 75 laptops & GPUs profiled

Filed Under: Technology, Tutorial

About Rupesh Kumar

Rupesh Kumar founded Best Free Web Resources in 2010 and edits the site. He writes about free web resources, web development and running open AI models locally. Learn more: About BFWR & our editorial standards → · Follow on X (@bestfreewebres) →

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

⚡ FREE INTERACTIVE TOOLS

Local AI Hardware & VRAM Matrix

Benchmark your PC or Mac for local AI, calculate VRAM requirements, and compare cloud API costs vs local hardware ROI.

🚀 New here? Start with Local LLMs → 💻 Hardware Matrix (79 Devices) → 📚 Local LLM Directory (30 Models) → 🎮 AI GPU Comparison → ⚡ VRAM & KV Cache Calculator → 💰 API Pricing & Break-Even → 🍎 Mac VRAM Unlocker (90% Boost) →
📦 Ollama 🖥️ LM Studio ⚙️ llama.cpp 🚦 vLLM 💬 Open WebUI 🎨 ComfyUI 🔒 Self-Hosted 📊 VRAM Tiers 🎯 Recommender ⚖️ Comparisons

Search

  • Facebook
  • Instagram
  • RSS
  • Twitter
  • YouTube

Footer

Latest Guides

  • ComfyUI Text Encoders: clip_l, t5xxl and Which File Each Model Needs
  • Inkling 2 Mini Locally: Ollama, GGUF Files and What Fits
  • Nous Arete 27B Locally: VRAM, Files and How It Differs From Qwen3.8 27B
  • Ollama Commands: Delete, Update and Move Models (and Free Disk Space)
  • Android Emulator for WhatsApp on PC: You Probably Do Not Need One
  • Ollama Cloud: Plans, Free Cloud Models and What Leaves Your Machine

AI Tools & Calculators

  • What can I run?
  • VRAM Calculator
  • GGUF Size Calculator
  • Fine-tuning VRAM
  • LoRA Training VRAM
  • Image Generation VRAM
  • Mac VRAM Optimizer

Browse & Compare

  • Models Directory (30 models)
  • Hardware Matrix (79 devices)
  • Image Models
  • Model Licences
  • Comparisons
  • Model Recommender
  • API Pricing & ROI

Guides & Resources

  • Technology
  • Coding
  • Tutorials
  • Freebies
  • Graphics

Copyright © 2026 · Best Free Web Resources · All Rights Reserved.  |  About · Privacy Policy · Contact · AI Tools Hub