attention-mechanism repositories

Trending repositories tagged attention-mechanism, ranked by trending score. Updated daily.

  1. 1
    rasbt/LLMs-from-scratch

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

    GitHub · Jupyter Notebook · 109,104 stars · 16,865 forks · +103 stars in 24 hours · Trending score 4.00

  2. 2
    amitshekhariitbhu/transformers-explained

    Transformer architecture explained step by step - the full architecture, every attention variant, positional embeddings, and every layer inside a Transformer.

    GitHub · 232 stars · 25 forks · +69 stars in 24 hours · Trending score 3.16

  3. 3
    nndl/nndl

    邱锡鹏《神经网络与深度学习》第二版与通识版:电子书、章节目录、学习资源与勘误。

    GitHub · 19,651 stars · 3,694 forks · +6 stars in 24 hours · Trending score 2.51

  4. 4
    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.

    GitHub · Python · 14,796 stars · 1,029 forks · +4 stars in 24 hours · Trending score 1.72

  5. 5
    lucidrains/vit-pytorch

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

    GitHub · Python · 25,596 stars · 3,492 forks · +1 stars in 24 hours · Trending score 1.49

  6. 6
    ruvnet/RuVector

    RuVector provides High Performance, Real-Time decisions and agent memory , Self-Learning Ai, Vector GNN DB built in Rust.

    GitHub · Rust · 4,720 stars · 632 forks · +3 stars in 24 hours · Trending score 1.44

  7. 7
    raiyanyahya/how-to-train-your-gpt

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

    GitHub · Jupyter Notebook · 4,189 stars · 507 forks · +1 stars in 24 hours · Trending score 1.31

  8. 8
    amitshekhariitbhu/llm-internals

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

    GitHub · 1,778 stars · 203 forks · +3 stars in 24 hours · Trending score 1.16

  9. 9
    lucidrains/x-transformers

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

    GitHub · Python · 5,969 stars · 534 forks · +1 stars in 24 hours · Trending score 0.88

  10. 10
    lucidrains/perceiver-pytorch

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

    GitHub · Python · 1,223 stars · 140 forks · 0 stars in 24 hours · Trending score 0.58

  11. 11
    lucidrains/slot-attention

    Implementation of Slot Attention from GoogleAI

    GitHub · Python · 503 stars · 32 forks · 0 stars in 24 hours · Trending score 0.55

  12. 12
    lucidrains/attention-contact-planning

    Implementation of Attention-based Contact Planning, by Junzhe He of ETH Zürich

    GitHub · Python · 22 stars · 0 forks · 0 stars in 24 hours · Trending score 0.48

  13. 13
    lucidrains/enformer-pytorch

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

    GitHub · Python · 576 stars · 99 forks · 0 stars in 24 hours · Trending score 0.46

  14. 14
    tiagomonteiro0715/pessoa

    Pessoa: Local, LLM Agnostic AI Agent Infrastructure

    GitHub · Python · 6 stars · 1 forks · +1 stars in 24 hours · Trending score 0.46

  15. 15
    yunjey/show-attend-and-tell

    TensorFlow Implementation of "Show, Attend and Tell"

    GitHub · Jupyter Notebook · 908 stars · 322 forks · 0 stars in 24 hours · Trending score 0.37

  16. 16
    winstonsmith1897/DantinoX

    DantinoX: A modular, memory-efficient Transformer implementation in JAX/Flax NNX. Includes Sparse MoE, GQA, Sliding Window Attention, Gradient Accumulation and Checkpointing

    GitHub · Python · 12 stars · 2 forks · 0 stars in 24 hours · Trending score 0.32

  17. 17
    YuvrajSingh-mist/Paper-Replications-and-Experiments

    From-scratch PyTorch replications of classic and SOTA AI/ML papers: transformers, attention, GANs, diffusion, CLIP, LoRA, MoE, plus SFT/GRPO post-training experiments.

    GitHub · Jupyter Notebook · 431 stars · 43 forks · 0 stars in 24 hours · Trending score 0.31

  18. 18
    lucidrains/learn-attention

    Sharing how attention appears in my mind's eye, for students and those interested in understanding transformers

    GitHub · HTML · 63 stars · 3 forks · 0 stars in 24 hours · Trending score 0.30

  19. 19
    lucidrains/isab-pytorch

    An implementation of (Induced) Set Attention Block, from the Set Transformers paper

    GitHub · Python · 73 stars · 4 forks · 0 stars in 24 hours · Trending score 0.28

  20. 20
    lucidrains/mimic-video

    Implementation of Mimic-Video, Video-Action Models for SOTA Generalizable Robot Control Beyond VLAs

    GitHub · Python · 125 stars · 8 forks · 0 stars in 24 hours · Trending score 0.28

  21. 21
    Zguoxu/tiny-transformer-from-scratch

    A tiny Transformer built from scratch in PyTorch, with an English-to-Chinese translation demo | 用 PyTorch 从零实现的小型 Transformer,附英译中演示,帮助理解模型原理

    GitHub · Jupyter Notebook · 103 stars · 4 forks · 0 stars in 24 hours · Trending score 0.24

  22. 22
    Buddhi19/MambaFCS

    [IEEE JSTARS 2026] Official Implementation of Mamba-FCS: Joint Spatio-Frequency Feature Fusion, Change-Guided Attention, and SeK Inspired Loss for Enhanced Semantic Change Detection in Remote Sensing

    GitHub · Python · 23 stars · 4 forks · 0 stars in 24 hours · Trending score 0.24

  23. 23
    vignesh2027/TemporalMesh-Transformer

    Temporalmesh-transformer. It is the first architecture to simultaneously fuse dynamic graph topology, token-level adaptive compute, and temporal semantic decay into a single unified model. No prior work does all three together.

    GitHub · Python · 8 stars · 2 forks · 0 stars in 24 hours · Trending score 0.24

  24. 24
    lavishguptaa/llm-architecture-atlas

    An open-source collection covering almost all major LLM architectures, built to explore, understand, and implement the building blocks of modern language models.

    GitHub · Python · 11 stars · 1 forks · 0 stars in 24 hours · Trending score 0.18