# Weight duplication/reuse for small model config changes?

**URL:** <https://discuss.huggingface.co/t/weight-duplication-reuse-for-small-model-config-changes/17760>\
**Category:** Beginners\
**Created:** [May 10, 2022, 9:22am UTC](https://discuss.huggingface.co/t/weight-duplication-reuse-for-small-model-config-changes/17760 "2022-05-10T09:22:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohotmoz](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@mohotmoz](https://discuss.huggingface.co/u/mohotmoz)\
**Post date:** [May 10, 2022, 9:22am UTC](https://discuss.huggingface.co/t/weight-duplication-reuse-for-small-model-config-changes/17760/1 "2022-05-10T09:22:52Z")

</div>

Hello everyone,

A huge thank you in advance for your help as always. I am working on an application involving a ViT model. I would like to change the image size (and patch size) of the model to something that is not available pre-trained. Is there an easy way to load in pre-trained weights and then copy them to the new weights that are required when the image/patch size (i.e. transformer sequence length) is changed? Figure starting from this is better than completely starting from scratch weights.

Thanks again.
