# Specify different attention masks for different layers

**URL:** <https://discuss.huggingface.co/t/specify-different-attention-masks-for-different-layers/29731>\
**Category:** 🤗Transformers\
**Created:** [January 16, 2023, 6:04am UTC](https://discuss.huggingface.co/t/specify-different-attention-masks-for-different-layers/29731 "2023-01-16T06:04:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nachtsky](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@nachtsky](https://discuss.huggingface.co/u/nachtsky)\
**Post date:** [January 16, 2023, 6:04am UTC](https://discuss.huggingface.co/t/specify-different-attention-masks-for-different-layers/29731/1 "2023-01-16T06:04:41Z")

</div>

Hi, I am experimenting with some ideas of adding different attention masks for different transformer layers. Currently, I am trying to implement a customized model that accepts two attention masks. But I’m wondering if there’s any simpler method to do so? Any suggestion is welcome! Thanks!
