Modify the dropout and freeze some layers from Encoder-Decoder models

Hello,

I am working with BART model and I would like to modify the dropout of some layers in the encoder and in the decoder, how can I do it?

Besides, I would like to freeze the first layer from the encoder, do you have any idea to achieve it?

Thank you in advance.