cd /news/ai-tools/question-on-how-to-use-hugging-face-… · home › topics › ai-tools › article
[ARTICLE · art-144634] src=discuss.huggingface.co ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Question on how to use Hugging Face to download a .safetensors file

A Hugging Face community response advises ComfyUI users not to manually concatenate sharded .safetensors files such as part1of4.safetensors and part2of4.safetensors, and instead to start from the ComfyUI guide, workflow, or template that names the exact file needed. The response points to the Diffusers documentation on model formats, which distinguishes Diffusers format from single-file format while noting safetensors is only the serialization file type, and cites the official ComfyUI Qwen Image example files qwen_image_fp8_e4m3fn.safetensors, qwen_2.5_vl_7b_fp8_scaled.safetensors, and qwen_image_vae.safetensors as well as the Comfy-Org/Qwen-Image_ComfyUI repository, whose model card describes its contents as "Repackaged model files for ComfyUI." The guidance says users should confirm the exact filename ComfyUI requires, the loader node consuming it, and the target models/ directory — for example diffusion_models/, text_encoders/, and vae/ versus checkpoints/ — and should check for a *.safetensors.index.json file before treating shards as pieces to merge.

read3 min views3 publishedOct 3, 2026

Hugging Face hosts files packaged for ComfyUI, but of course it also hosts many files intended for other software; sometimes both can even be present in the same repository. The Hub itself does not necessarily make it obvious which exact artifact a particular ComfyUI workflow expects. So if there is a ComfyUI guide, workflow, or template for the model, I think it is usually safer to start from that guide and follow its link to the exact file you need:

I would not try to combine the part1of4.safetensors, part2of4.safetensors, etc. manually yet.

There are a few different things that can look very similar on Hugging Face:

.safetensors shards. All of those may use the .safetensors file type, so the extension alone does not tell you which one your workflow needs.

The Diffusers documentation on model formats makes this distinction explicitly: Diffusers format and single-file format are different layouts, while safetensors is the file type used to serialize the weights.

My default route would therefore be:

For example, the official ComfyUI Qwen Image example gives exact files such as:

qwen_image_fp8_e4m3fn.safetensors
qwen_2.5_vl_7b_fp8_scaled.safetensors
qwen_image_vae.safetensors

and tells you which ComfyUI directory each one belongs in.

There is also a separate Comfy-Org/Qwen-Image_ComfyUI repository whose model card literally describes the files as “Repackaged model files for ComfyUI” and again lists the appropriate folders.

That is quite different from simply opening the original/upstream model repository and choosing whichever .safetensors file looks closest.

If you still have the page open, I would check it roughly like this:

Do you know the exact filename ComfyUI asks for?
|
+-- Yes
|   |
|   +-- Is that exact filename linked from a ComfyUI guide/workflow/template?
|   |       |
|   |       +-- Yes -> use that link and the directory specified there.
|   |       |
|   |       +-- No  -> search the exact filename, not only the model name.
|   |
|   +-- The HF page instead shows model-00001-of-0000N.safetensors?
|           |
|           +-- Check whether there is also a *.safetensors.index.json.
|               If yes, you are probably looking at a sharded model/component,
|               not "pieces" that should simply be concatenated.
|
+-- No
    |
    +-- Go back to the ComfyUI workflow/tutorial first.
        Determine:
        - the required filename;
        - what  node consumes it;
        - and which models/ directory it belongs in.

The ** node** is also useful information.

A workflow using a normal checkpoint is asking for something different from one a diffusion model, text encoder, and VAE separately.

For example, current ComfyUI examples commonly give instructions of the form:

diffusion model -> ComfyUI/models/diffusion_models/
text encoder    -> ComfyUI/models/text_encoders/
VAE             -> ComfyUI/models/vae/

while some easier single-file workflows use:

checkpoint -> ComfyUI/models/checkpoints/

The Flux example page demonstrates both styles on the same page.

So if I were troubleshooting this from scratch, I would start with just three pieces of information:

1. The exact filename ComfyUI says it needs
2. The workflow/tutorial/template where that filename appears
3. The Hugging Face page you arrive at

From those three things it should usually be possible to tell whether you are looking at:

I would definitely check that before attempting to merge anything.

── more in #ai-tools 4 stories · sorted by recency
── more on @hugging face 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/question-on-how-to-u…] indexed:0 read:3min 2026-10-03 · —