# Adapter Training - Merging Weights

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadapter-training-merging-weights%2F35817%3E%5C
**Category:** Intermediate\
**Created:** [April 6, 2023, 9:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadapter-training-merging-weights%2F35817 "2023-04-06T21:00:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praneet](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@Praneet](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPraneet)%5C
**Post date:** [April 6, 2023, 9:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadapter-training-merging-weights%2F35817%2F1 "2023-04-06T21:00:33Z")

</div>

Hey guys,

Would like to preface this by saying that I am new to all this.  
I fine-tuned a T5 model using the adapter transformer library. I was just wondering what the function  
model.merge\_adapter(“adapter name”) does

 ![merge](https://us1.discourse-cdn.com/hellohellohello/original/2X/5/5ab4436bf14a388bd2b1465a1871ebbdc5b9c0b7.png)

Does it somehow merge the weights of the adapter with the base model itself?  
Does this mean I wouldn’t have to activate the adapter manually every time with model.set\_active\_adapters()  
Also, I was wondering if there is a way to always have a particular adapter head activated instead of having to activate it anew every time at the beginning of the script.

Any help would be appreciated. Thanks a ton!
