# How can i correctly upload a model?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-correctly-upload-a-model%2F149669%3E%5C
**Category:** Models\
**Created:** [April 9, 2025, 8:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-correctly-upload-a-model%2F149669 "2025-04-09T20:36:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [April 10, 2025, 3:35am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-correctly-upload-a-model%2F149669%2F2 "2025-04-10T03:35:42Z")

</div>

The official method is to convert to the Diffusers format, but there is no problem with uploading the un-converted file as it is.

In that case, use **from\_single\_file** to load it from Diffusers. Note that if the model is not available in its entirety, as in the case of FLUX, the procedure is slightly different.

The rest of the procedure is the same.

> **[Example of loading \`from\_single\_file\` with \`local\_files\_only=True\` ·...](https://github.com/huggingface/diffusers/discussions/6836)**
>
> Hello, I am struggling to create a pipeline that would load a safetensors file, using from\_single\_file and local\_files\_only=True. Without downloading anything from HuggingFace hub and without reusi...

> [@How to use single-file diffuser checkpoints](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-use-single-file-diffuser-checkpoints%2F133073%2F)%3A
>
> I can’t figure out how to load a diffusion model from single files, like flux1-dev.safetensors for FLUX.1 ([black-forest-labs/FLUX.1-dev at main](https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/main)) It works fine when using FluxPipeline.from\_pretrained() which uses the multi-file format, but when I try FluxPipeline.from\_single\_file() on the above file I get: diffusers.loaders.single\_file\_utils.SingleFileComponentError: Failed to load CLIPTextModel. Weights for this component appear to be missing in the checkpoint. Please load the component before…

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-correctly-upload-a-model%2F149669)._
