#Attention-mechanism

Showing 60 of 173 repositories tagged #attention-mechanism, ranked by stars

rasbt
rasbt
LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

Score
100
★ 98.7k ⑂ 15.2k +235/day
Jupyter Notebook
lucidrains
lucidrains
vit-pytorch

Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch

Score
93
★ 25.4k ⑂ 3.5k +7/day
Python
nndl
nndl
nndl

邱锡鹏《神经网络与深度学习》(蒲公英书)理论书 v2 与通识版

Score
100
★ 18.9k ⑂ 3.7k +15/day
BlinkDL
BlinkDL
RWKV-LM

RWKV (pronounced RwaKuv) is an RNN with great LLM performance, which can also be directly trained like a GPT transformer (parallelizable). We are at RWKV-7 "Goose". So it's combining the best of RNN and transformer - great performance, linear time, constant space (no kv-cache), fast training, infinite ctx_len, and free sentence embedding.

Score
86
★ 14.6k ⑂ 1.0k +10/day
Python
brightmart
brightmart
text_classification

all kinds of text classification models and more with deep learning

Score
71
★ 7.9k ⑂ 2.5k
Python
lucidrains
lucidrains
x-transformers

A concise but complete full-attention transformer with a set of promising experimental features from various papers

Score
79
★ 5.9k ⑂ 516 +2/day
Python
lucidrains
lucidrains
DALLE-pytorch

Implementation / replication of DALL-E, OpenAI's Text to Image Transformer, in Pytorch

Score
64
★ 5.6k ⑂ 643 +1/day
Python
cmhungsteve
cmhungsteve
Awesome-Transformer-Attention

An ultimately comprehensive paper list of Vision Transformer/Attention, including papers, codes, and related websites

Score
95
★ 5.0k ⑂ 497 +2/day
ruvnet
ruvnet
RuVector

RuVector is a High Performance, Real-Time, Self-Learning Ai, Vector GNN, Memory DB built in Rust.

Score
0
★ 4.3k ⑂ 570 +2/day
Rust
PetarV-
PetarV-
GAT

Graph Attention Networks (https://arxiv.org/abs/1710.10903)

Score
50
★ 3.5k ⑂ 671 +3/day
Python
zzw922cn
zzw922cn
awesome-speech-recognition-speech-synthesis-papers

Automatic Speech Recognition (ASR), Speaker Verification, Speech Synthesis, Text-to-Speech (TTS), Language Modelling, Singing Voice Synthesis (SVS), Voice Conversion (VC)

Score
92
★ 3.1k ⑂ 514 +1/day
diegoantognini
diegoantognini
pyGAT

Pytorch implementation of the Graph Attention Network model by Veličković et. al (2017, https://arxiv.org/abs/1710.10903)

Score
43
★ 3.1k ⑂ 702 +1/day
Python
sgrvinod
sgrvinod
a-PyTorch-Tutorial-to-Image-Captioning

Show, Attend, and Tell | a PyTorch Tutorial to Image Captioning

Score
92
★ 2.9k ⑂ 728 +1/day
Python
linto-ai
linto-ai
whisper-timestamped

Multilingual Automatic Speech Recognition with word-level timestamps and confidence

Score
57
★ 2.8k ⑂ 210 +1/day
Python
philipperemy
philipperemy
keras-attention

Keras Attention Layer (Luong and Bahdanau scores).

Score
99
★ 2.8k ⑂ 652
Python
gordicaleksa
gordicaleksa
pytorch-GAT

My implementation of the original GAT paper (Veličković et al.). I've additionally included the playground.py file for visualizing the Cora dataset, GAT embeddings, an attention mechanism, and entropy histograms. I've supported both Cora (transductive) and PPI (inductive) examples!

Score
100
★ 2.7k ⑂ 355 +1/day
Jupyter Notebook
raiyanyahya
raiyanyahya
how-to-train-your-gpt

Build a modern LLM from scratch. Every line commented. Explained like we are five.

Score
100
★ 2.3k ⑂ 304 +8/day
Jupyter Notebook
lucidrains
lucidrains
reformer-pytorch

Reformer, the efficient Transformer, in Pytorch

Score
91
★ 2.2k ⑂ 253 +1/day
Python
lucidrains
lucidrains
alphafold2

To eventually become an unofficial Pytorch implementation / replication of Alphafold2, as details of the architecture get released

Score
90
★ 1.6k ⑂ 264
Python
lucidrains
lucidrains
soundstorm-pytorch

Implementation of SoundStorm, Efficient Parallel Audio Generation from Google Deepmind, in Pytorch

Score
88
★ 1.5k ⑂ 94
Python
lucidrains
lucidrains
lambda-networks

Implementation of LambdaNetworks, a new approach to image recognition that reaches SOTA with less compute

Score
89
★ 1.5k ⑂ 155
Python
amitshekhariitbhu
amitshekhariitbhu
llm-internals

Learn LLM internals step by step - from tokenization to attention to inference optimization.

Score
92
★ 1.3k ⑂ 132 +9/day
lucidrains
lucidrains
flamingo-pytorch

Implementation of 🦩 Flamingo, state-of-the-art few-shot visual question answering attention net out of Deepmind, in Pytorch

Score
85
★ 1.3k ⑂ 66
Python
lucidrains
lucidrains
perceiver-pytorch

Implementation of Perceiver, General Perception with Iterative Attention, in Pytorch

Score
98
★ 1.2k ⑂ 140
Python
The-AI-Summer
The-AI-Summer
self-attention-cv

Implementation of various self-attention mechanisms focused on computer vision. Ongoing repository.

Score
87
★ 1.2k ⑂ 152
Python
lucidrains
lucidrains
CoCa-pytorch

Implementation of CoCa, Contrastive Captioners are Image-Text Foundation Models, in Pytorch

Score
84
★ 1.2k ⑂ 89
Python
lucidrains
lucidrains
performer-pytorch

An implementation of Performer, a linear attention-based transformer, in Pytorch

Score
85
★ 1.2k ⑂ 149 +1/day
Python
cedrickchee
cedrickchee
awesome-transformer-nlp

A curated list of NLP resources focused on Transformer networks, attention mechanism, GPT, BERT, ChatGPT, LLMs, and transfer learning.

Score
77
★ 1.1k ⑂ 134
chengtan9907
chengtan9907
OpenSTL

OpenSTL: A Comprehensive Benchmark of Spatio-Temporal Predictive Learning

Score
98
★ 1.1k ⑂ 193 +3/day
Python
gordicaleksa
gordicaleksa
pytorch-original-transformer

My implementation of the original transformer model (Vaswani et al.). I've additionally included the playground.py file for visualizing otherwise seemingly hard concepts. Currently included IWSLT pretrained models.

Score
88
★ 1.1k ⑂ 188 +2/day
Jupyter Notebook
lucidrains
lucidrains
tab-transformer-pytorch

Implementation of TabTransformer, attention network for tabular data, in Pytorch

Score
96
★ 1.1k ⑂ 131 +1/day
Python
qinzheng93
qinzheng93
GeoTransformer

[CVPR2022] Geometric Transformer for Fast and Robust Point Cloud Registration

Score
36
★ 961 ⑂ 116
Python
atulkum
atulkum
pointer_summarizer

pytorch implementation of "Get To The Point: Summarization with Pointer-Generator Networks"

Score
83
★ 911 ⑂ 235
Python
lucidrains
lucidrains
RETRO-pytorch

Implementation of RETRO, Deepmind's Retrieval based Attention net, in Pytorch

Score
80
★ 877 ⑂ 109
Python
lucidrains
lucidrains
linear-attention-transformer

Transformer based on a variant of attention that is linear complexity in respect to sequence length

Score
78
★ 839 ⑂ 78 +1/day
Python
lucidrains
lucidrains
PaLM-pytorch

Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways

Score
78
★ 824 ⑂ 82
Python
benedekrozemberczki
benedekrozemberczki
SimGNN

A PyTorch implementation of "SimGNN: A Neural Network Approach to Fast Graph Similarity Computation" (WSDM 2019).

Score
81
★ 814 ⑂ 154
Python
rust0258
rust0258
Deeplearning.ai-Natural-Language-Processing-Specialization

This repository contains my full work and notes on Coursera's NLP Specialization (Natural Language Processing) taught by the instructor Younes Bensouda Mourri and Łukasz Kaiser offered by deeplearning.ai

Score
88
★ 752 ⑂ 501
Jupyter Notebook
datalogue
datalogue
keras-attention

Visualizing RNNs using the attention mechanism

Score
82
★ 749 ⑂ 242
Python
lucidrains
lucidrains
TimeSformer-pytorch

Implementation of TimeSformer from Facebook AI, a pure attention-based solution for video classification

Score
75
★ 730 ⑂ 89
Python
swz30
swz30
MIRNet

[ECCV 2020] Learning Enriched Features for Real Image Restoration and Enhancement. SOTA results for image denoising, super-resolution, and image enhancement.

Score
76
★ 721 ⑂ 97
Python
soobinseo
soobinseo
Transformer-TTS

A Pytorch Implementation of "Neural Speech Synthesis with Transformer Network"

Score
77
★ 690 ⑂ 139
Python
lucidrains
lucidrains
bottleneck-transformer-pytorch

Implementation of Bottleneck Transformer in Pytorch

Score
74
★ 678 ⑂ 81
Python
lucidrains
lucidrains
memorizing-transformers-pytorch

Implementation of Memorizing Transformers (ICLR 2022), attention net augmented with indexing and retrieval of memories using approximate nearest neighbors, in Pytorch

Score
72
★ 646 ⑂ 48
Python
philipturner
philipturner
metal-flash-attention

FlashAttention (Metal Port)

Score
68
★ 612 ⑂ 41
Swift
wgcban
wgcban
ChangeFormer

[IGARSS'22]: A Transformer-Based Siamese Network for Change Detection

Score
73
★ 610 ⑂ 84 +1/day
Python
lucidrains
lucidrains
point-transformer-pytorch

Implementation of the Point Transformer layer, in Pytorch

Score
68
★ 601 ⑂ 57
Python
kyegomez
kyegomez
zeta

Build high-performance AI models with modular building blocks

Score
85
★ 598 ⑂ 58 +3/day
Python
Haiyang-W
Haiyang-W
TokenFormer

[ICLR2025 Spotlight🔥] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters

Score
69
★ 592 ⑂ 43
Python
kyegomez
kyegomez
RT-2

Democratization of RT-2 "RT-2: New model translates vision and language into action"

Score
69
★ 581 ⑂ 68
Python
lucidrains
lucidrains
enformer-pytorch

Implementation of Enformer, Deepmind's attention network for predicting gene expression, in Pytorch

Score
97
★ 569 ⑂ 101 +1/day
Python
lucidrains
lucidrains
nuwa-pytorch

Implementation of NÜWA, state of the art attention network for text to video synthesis, in Pytorch

Score
67
★ 548 ⑂ 55
Python
lucidrains
lucidrains
parti-pytorch

Implementation of Parti, Google's pure attention-based text-to-image neural network, in Pytorch

Score
65
★ 538 ⑂ 25
Python
lvapeab
lvapeab
nmt-keras

Neural Machine Translation with Keras

Score
72
★ 532 ⑂ 125
Python
WenjieDu
WenjieDu
SAITS

The official PyTorch implementation of the paper "SAITS: Self-Attention-based Imputation for Time Series". A fast and state-of-the-art (SOTA) deep-learning neural network model for efficient time-series imputation (impute multivariate incomplete time series containing NaN missing data/values with machine learning). https://arxiv.org/abs/2202.08516

Score
86
★ 507 ⑂ 70
Python
kaushalshetty
kaushalshetty
Structured-Self-Attention

A Structured Self-attentive Sentence Embedding

Score
29
★ 492 ⑂ 102
Python
lucidrains
lucidrains
slot-attention

Implementation of Slot Attention from GoogleAI

Score
93
★ 491 ⑂ 33
Python
kyegomez
kyegomez
MultiModalMamba

A novel implementation of fusing ViT with Mamba into a fast, agile, and high performance Multi-Modal Model. Powered by Zeta, the simplest AI framework ever.

Score
94
★ 473 ⑂ 28
Python
conceptofmind
conceptofmind
LaMDA-rlhf-pytorch

Open-source pre-training implementation of Google's LaMDA in PyTorch. Adding RLHF similar to ChatGPT.

Score
66
★ 466 ⑂ 73
Python
rentainhe
rentainhe
visualization

a collection of visualization function

Score
75
★ 447 ⑂ 42 +1/day
Python
Related Topics
#deep-learning#artificial-intelligence#transformers#pytorch#transformer#machine-learning#attention#python#computer-vision#self-attention#language-model#neural-networks

© 2026 GitRepoTrend · GitHub repositories by topic · Updated weekly