how to add safetensors to comfyui: A Reproducible Model Setup

how to add safetensors to comfyui: A Reproducible Model Setup

Published on

0

views

Learn how to add safetensors to comfyui, place checkpoints and LoRAs correctly, fix missing-model errors, and verify Wan workflows on consumer GPUs.

If you are searching for how to add safetensors to comfyui, the short answer is simple: download a compatible model, copy it into the folder ComfyUI expects, refresh the interface, and select it in the correct loader node. The part that causes trouble is identifying which kind of model file you have. A checkpoint, LoRA, VAE, text encoder, and Wan diffusion model do not all belong in the same directory.

I tested this process on a Windows 11 workstation with an RTX 3090 24GB, a recent ComfyUI portable installation, and models stored on a local NVMe SSD. Your menus can look slightly different after an update, but the folder logic remains consistent. Make a note of your ComfyUI location before copying anything. If you cannot find the correct installation, you will spend more time troubleshooting Windows paths than generating video.

Identify the safetensors file before moving it

The .safetensors extension describes the file format, not the model's job. It is a safer tensor container commonly used for Stable Diffusion, Flux, Wan, and related AI models. The filename usually gives clues, but the model card or workflow documentation is the authority.

A full checkpoint commonly belongs in ComfyUI's models/checkpoints folder. A LoRA normally belongs in models/loras. A VAE goes in models/vae, while text encoders and CLIP-related files may belong in models/text_encoders or models/clip, depending on the workflow and ComfyUI version. Newer Wan workflows may use a diffusion model loader and expect the main model under models/diffusion_models rather than models/checkpoints.

Do not assume that every Wan file can be loaded with CheckpointLoaderSimple. Some Wan2.2 workflows use separate diffusion models, text encoders, VAEs, and custom nodes. Loading the wrong file with the wrong node can produce a confusing error even when the download itself is healthy. Read the workflow instructions first, then match each file to the node type it names.

Illustration for how to add safetensors to comfyui

how to add safetensors to comfyui using the standard folders

First, close ComfyUI or stop the server if it is actively scanning models. Locate the root directory containing folders such as models, custom_nodes, input, output, and user. If you installed the Windows portable package, this is usually the directory where run_nvidia_gpu.bat or a similar launch script is located.

Open the models folder. For a conventional checkpoint, place the .safetensors file inside models/checkpoints. For a LoRA, use models/loras. For a VAE, use models/vae. Keep the original filename unless the workflow specifically requires a different name. Renaming a file does not convert it and can make support conversations harder because nobody can identify the original release.

If the required subfolder does not exist, create it with the expected name. Windows may hide known file extensions, so confirm that the file ends in .safetensors rather than accidentally becoming model.safetensors.safetensors. Check the file size too. A partially downloaded file can remain visible in the loader while failing during initialization.

Restart ComfyUI, open the workflow, and click the model dropdown in the relevant loader node. If the file is missing, use the browser refresh option or restart the server completely. A hard refresh of the web page alone does not always force a model-directory rescan.

Using extra_model_paths.yaml for another drive

Large Wan models can consume tens of gigabytes, so keeping them on the boot drive is inconvenient. ComfyUI supports additional model paths through an extra_model_paths.yaml file. The exact file location depends on the installation, but it is commonly provided as an example YAML file in the ComfyUI root directory.

Make a copy of the example, rename it correctly, and edit the paths using YAML indentation. A typical arrangement might point checkpoints to D:/AI/models/checkpoints, loras to D:/AI/models/loras, and diffusion models to D:/AI/models/diffusion_models. Use forward slashes or carefully escaped Windows paths, and do not mix tabs with spaces. YAML is impressively willing to fail because of one invisible character.

After saving the file, restart ComfyUI rather than only refreshing the browser. The model dropdown should include files from the added directory. If it does not, inspect the terminal window for a path or YAML parsing error. Test one folder first instead of moving your entire library. That makes the failure obvious and avoids duplicate files consuming storage.

Visual context for how to add safetensors to comfyui

how to add safetensors to comfyui without a missing-model error

A missing-model message has several possible causes. The first is location: the file is in checkpoints, but the workflow expects diffusion_models. The second is node mismatch: a Wan diffusion model is being selected in a standard checkpoint loader. The third is an incomplete download or a model that requires custom nodes not installed in your environment.

Read the error text from the ComfyUI console, not only the red box in the browser. Console output often identifies the exact directory, tensor key, or node that failed. If the file appears in a dropdown but fails when loading, compare its documented architecture with the loader node. A visible filename proves only that ComfyUI found the file; it does not prove compatibility.

For Hugging Face downloads, use the files listed by the workflow author and check whether large-file storage or a download manager completed every part. Some releases include multiple files with similar names. The main model, VAE, and text encoder can all be valid safetensors files while remaining incompatible with one another. Match versions exactly for the first test.

Verify the setup with a controlled test

Once you know how to add safetensors to comfyui, verify the installation with a small, repeatable graph. Use the supplied workflow, its documented model files, a fixed seed, and the recommended resolution. Do not change sampler, steps, resolution, model version, and VRAM settings at the same time. That produces a result, but not useful evidence.

My basic verification record includes the ComfyUI commit or update date, NVIDIA driver, GPU model, system RAM, model filenames, output resolution, seed, steps, and render time. On a 24GB RTX 3090, a workflow that loads successfully can still approach the VRAM limit when decoding video or running larger resolutions. Watch the console for fallback behavior and monitor GPU memory with Task Manager, nvidia-smi, or another reliable tool.

If the first frame or image renders correctly but video fails, the model path is probably not the only issue. Check temporal nodes, frame count, decode settings, and available VRAM separately. Conversely, if the loader fails before sampling begins, stay focused on file placement, architecture, dependencies, and permissions.

A practical checklist before your next render

Use this order: identify the model type, read the workflow's required loader, confirm the exact filename and download size, place the file in the matching folder, restart ComfyUI, select it in the node, and run a low-cost test. Save the workflow JSON beside the output and record the seed. If you change a folder path or model version, record that change too.

For a LoRA, confirm that its base model matches the workflow and start with the documented strength rather than guessing. For Wan, confirm that the diffusion model, text encoder, VAE, and custom nodes all come from the same setup instructions. Avoid installing several similarly named files and hoping the dropdown explains the difference.

That is the reliable answer to how to add safetensors to comfyui: treat the extension as a container, identify the role of the file, use the matching model directory and loader, then test with controlled settings. If you cannot reproduce it, it is not a workflow. Run the test. Save the settings. Show the failure.

Last updated:

Share:

Leave a comment

Related Articles