Home Projects transformer-in-transformer
transformer-in-transformer

transformer-in-transformer

by lucidrains · GitHub

Implementation of Transformer in Transformer, pixel level attention paired with patch level attention for image classification, in Pytorch

# artificial-intelligence# deep-learning# image-classification# transformers
View on GitHub
⭐ Stars
306
🍴 Forks
41
📜 License
MIT
Commercial use OK
📅 Created
2021
🔄 Last commit
4 yr ago
🏷️ Category
artificial-intelligence
💻 Language
You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
transformer-in-transformer — GitHub preview card
📈 Star history
307306
2026-07-202026-07-21
📄 About

Implementation of Transformer in Transformer, pixel level attention paired with patch level attention for image classification, in Pytorch

Frequently asked questions

What is transformer-in-transformer?

Implementation of Transformer in Transformer, pixel level attention paired with patch level attention for image classification, in Pytorch

Is transformer-in-transformer open source?

transformer-in-transformer is an open-source project. It is released under the MIT license.

Is transformer-in-transformer free?

Yes. transformer-in-transformer is free and open source — you can use, modify and self-host it.

🏅 Maintainer of this project?
OpenSourceAI badge — transformer-in-transformer

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![OpenSourceAI](https://opensourceai.tech/badge.php?tool=lucidrains-transformer-in-transformer)](https://opensourceai.tech/project/lucidrains-transformer-in-transformer.html)
More badge options →
🧬 Shares DNA with🧬 View the DNA map →

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.