https://github.com/kyegomez/aoa-torch
Implementation of Attention on Attention in Zeta
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.1%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Implementation of Attention on Attention in Zeta
Basic Info
- Host: GitHub
- Owner: kyegomez
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://discord.gg/GYbXvDGevY
- Size: 2.2 MB
Statistics
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 4
- Releases: 0
Topics
Metadata Files
README.md
Attention on Attention Implementation
This is a practice implementation after randomly finding it on Lucidrain's repo, I'm implementing the model architecture just for practice!
Basically the architecture is: x => q, k, v -> multihead attn with residual q -> concat -> 2 linear projects ->sigmoid -> mult -> add -> norm -> ffn -> add -> norm with residual of first add and norm

Install
pip3 install --upgrade aoa-torch
Usage
AoA Module
```python
import torch
from aoa.main import AoA
x = torch.randn(1, 10, 512) model = AoA(512, 8, 64, 0.1) out = model(x) print(out.shape)
```
AoATransformer
```python import torch from aoa.main import AoATransformer
x = torch.randint(0, 100, (1, 10)) model = AoATransformer(512, 1, 100) out = model(x) print(out.shape)
```
Citations
bibtex
@misc{rahman2020improved,
title = {An Improved Attention for Visual Question Answering},
author = {Tanzila Rahman and Shih-Han Chou and Leonid Sigal and Giuseppe Carenini},
year = {2020},
eprint = {2011.02164},
archivePrefix = {arXiv},
primaryClass = {cs.CV}
}
bibtex
@misc{huang2019attention,
title = {Attention on Attention for Image Captioning},
author = {Lun Huang and Wenmin Wang and Jie Chen and Xiao-Yong Wei},
year = {2019},
eprint = {1908.06954},
archivePrefix = {arXiv},
primaryClass = {cs.CV}
}
License
MIT
Todo
- [ ] Create sample training code using enwiki8
Owner
- Name: Eternal Reclaimer
- Login: kyegomez
- Kind: user
- Location: Miami
- Company: Automated Public Assistance Company
- Website: https://www.swarms.world/
- Twitter: KyeGomezB
- Repositories: 331
- Profile: https://github.com/kyegomez
Leader of Agora, the open source Multi-Modal AI research lab join our community here: https://discord.gg/hCJpnhA5aP
GitHub Events
Total
- Delete event: 15
- Issue comment event: 26
- Pull request event: 29
- Create event: 14
Last Year
- Delete event: 15
- Issue comment event: 26
- Pull request event: 29
- Create event: 14
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Kye | k****e@a****m | 12 |
| dependabot[bot] | 4****] | 2 |
| Eternal Reclaimer | 9****z | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 70
- Average time to close issues: 2 months
- Average time to close pull requests: about 2 months
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 1.13
- Merged pull requests: 1
- Bot issues: 1
- Bot pull requests: 70
Past Year
- Issues: 0
- Pull requests: 39
- Average time to close issues: N/A
- Average time to close pull requests: about 2 months
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.08
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 39
Top Authors
Issue Authors
- dependabot[bot] (1)
Pull Request Authors
- dependabot[bot] (70)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- ad-m/github-push-action master composite
- actions/checkout v2 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/labeler v4.3.0 composite
- actions/checkout v2 composite
- actions/setup-python v4 composite
- actions/checkout v2 composite
- actions/setup-python v4 composite
- readthedocs/actions/preview v1 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish f8c70e705ffc13c3b4d1221169b84f12a75d6ca8 composite
- ./.github/actions/init-environment * composite
- actions/checkout v4 composite
- actions/checkout v4 composite
- chartboost/ruff-action v1 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- actions/stale v8 composite
- ./.github/actions/poetry_setup * composite
- actions/checkout v4 composite
- actions/checkout v2 composite
- actions/setup-python v4 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- actions/first-interaction v1.1.1 composite
- python ^3.9
