# Two transformers in one model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftwo-transformers-in-one-model%2F14816%3E%5C
**Category:** 🤗Transformers\
**Created:** [February 17, 2022, 11:32am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftwo-transformers-in-one-model%2F14816 "2022-02-17T11:32:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kees](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@kees](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkees)%5C
**Post date:** [February 17, 2022, 11:32am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftwo-transformers-in-one-model%2F14816%2F1 "2022-02-17T11:32:17Z")

</div>

Say I want to train a giant (keras) model with 2 transformers in it. I would need to feed it two separate token vectors and two separate attention masks.

Can I set the expected input names to something other than “input\_ids” and “attention\_masks” to disambiguate the inputs?
