# Fastest way to upload custom TensorFlow model/weights?

**URL:** <https://discuss.huggingface.co/t/fastest-way-to-upload-custom-tensorflow-model-weights/16994>\
**Category:** Beginners\
**Created:** [April 20, 2022, 1:23am UTC](https://discuss.huggingface.co/t/fastest-way-to-upload-custom-tensorflow-model-weights/16994 "2022-04-20T01:23:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://discuss.huggingface.co/u/tgordon)\
**Post date:** [April 20, 2022, 1:23am UTC](https://discuss.huggingface.co/t/fastest-way-to-upload-custom-tensorflow-model-weights/16994/1 "2022-04-20T01:23:30Z")

</div>

Hi,

Most of the tutorials I have seen focus on loading existing large models. I have a custom model + saved weights. How can I upload this to hugging face hub?

I would like to firstly load the model in a notebook. Ultimately I want to use this model in a gradio demonstration.

Thanks!

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [April 21, 2022, 6:04pm UTC](https://discuss.huggingface.co/t/fastest-way-to-upload-custom-tensorflow-model-weights/16994/2 "2022-04-21T18:04:31Z")

</div>

I’m assuming you’re talking about TF models in the `transformers` library.

You can use the `push_to_hub` method or the `PushToHubCallback` callback to share a model in the Hub. There is a guide for it on [Share a model](https://huggingface.co/docs/transformers/model_sharing) that might be interesting to you. For custom models [Sharing custom models](https://huggingface.co/docs/transformers/custom_models) might be of interest too.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [April 21, 2022, 6:08pm UTC](https://discuss.huggingface.co/t/fastest-way-to-upload-custom-tensorflow-model-weights/16994/3 "2022-04-21T18:08:01Z")

</div>

cc @Rocketknight1 and @merve if they want to add anything else.
