# Making a model slightly bigger

**URL:** <https://discuss.huggingface.co/t/making-a-model-slightly-bigger/84103>\
**Category:** Beginners\
**Created:** [April 27, 2024, 11:41pm UTC](https://discuss.huggingface.co/t/making-a-model-slightly-bigger/84103 "2024-04-27T23:41:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kovkev](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kovkev/32/3612_2.png) [@kovkev](https://discuss.huggingface.co/u/kovkev)\
**Post date:** [April 27, 2024, 11:41pm UTC](https://discuss.huggingface.co/t/making-a-model-slightly-bigger/84103/1 "2024-04-27T23:41:29Z")

</div>

Hi all!

Let’s say I am working on a transformer model, and it has matrices Q, K and V (and Woutput). Let’s say the embedding\_dimension is 100, and then number of features is 100, so each of Q, K, and V would be 100 x 100.

Now, let’s say that this model comes from huggingface and the weights are already trained by someone.

Let’s say I want to modify the model slightly to have the embeddings slightly larger: 110 dimensions, and the features slightly larger: 110 features. Now, each of Q, K, V have size 110 x 110.

How do I initialize the new weights? Should they be random with a normal distribution?

What should I do if instead, I wanted to reduce the number of dimensions, making Q, K, V have size 90 x 90?

What do we call the science of modifying the model shapes?

Thank you,

kovkev
