# Save the model into a .h5 model

**URL:** <https://discuss.huggingface.co/t/save-the-model-into-a-h5-model/20835>\
**Category:** 🤗Transformers\
**Created:** [July 25, 2022, 12:17pm UTC](https://discuss.huggingface.co/t/save-the-model-into-a-h5-model/20835 "2022-07-25T12:17:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgrnd4](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@dgrnd4](https://discuss.huggingface.co/u/dgrnd4)\
**Post date:** [July 25, 2022, 12:17pm UTC](https://discuss.huggingface.co/t/save-the-model-into-a-h5-model/20835/1 "2022-07-25T12:17:50Z")

</div>

Hi there, I have fine-tuned the ViTForImageClassification and now I save into a folder containing:

- config.json
- tf\_model.h5

but the point is that the .h5 doesn’t contain the model but just the weights.

**There is a way to get the whole model in one .h5 model? It’s possible in keras so I think that there is a solution for it!**
