OpenNLPLab / HGRNLinks
[NeurIPS 2023 spotlight] Official implementation of HGRN in our NeurIPS 2023 paper - Hierarchically Gated Recurrent Neural Network for Sequence Modeling
☆65Updated last year
Alternatives and similar repositories for HGRN
Users that are interested in HGRN are comparing it to the libraries listed below
Sorting:
- ☆48Updated last year
- ☆56Updated last year
- Official repository of paper "RNNs Are Not Transformers (Yet): The Key Bottleneck on In-context Retrieval"☆27Updated last year
- HGRN2: Gated Linear RNNs with State Expansion☆55Updated last year
- ☆28Updated last year
- Here we will test various linear attention designs.☆61Updated last year
- ☆19Updated 3 years ago
- Stick-breaking attention☆61Updated 4 months ago
- ☆33Updated last year
- Efficient PScan implementation in PyTorch☆17Updated last year
- ☆105Updated last year
- ☆31Updated last year
- [ICLR 2025 & COLM 2025] Official PyTorch implementation of the Forgetting Transformer and Adaptive Computation Pruning☆132Updated last week
- Jax implementation of "Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models"☆15Updated last year
- Randomized Positional Encodings Boost Length Generalization of Transformers☆83Updated last year
- [ICLR 2023] Official implementation of Transnormer in our ICLR 2023 paper - Toeplitz Neural Network for Sequence Modeling☆80Updated last year
- [ICLR 2023] "Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers" by Tianlong Chen*, Zhenyu Zhang*, Ajay Jaiswal…☆55Updated 2 years ago
- Curse-of-memory phenomenon of RNNs in sequence modelling☆18Updated 6 months ago
- Official code for the paper "Attention as a Hypernetwork"☆45Updated last year
- Reference implementation of "Softmax Attention with Constant Cost per Token" (Heinsen, 2024)☆24Updated last year
- ☆23Updated last year
- ☆35Updated last year
- ☆103Updated last year
- Griffin MQA + Hawk Linear RNN Hybrid☆89Updated last year
- Code for "Theoretical Foundations of Deep Selective State-Space Models" (NeurIPS 2024)☆15Updated 10 months ago
- Using FlexAttention to compute attention with different masking patterns☆47Updated last year
- User-friendly implementation of the Mixture-of-Sparse-Attention (MoSA). MoSA selects distinct tokens for each head with expert choice rou…☆28Updated 6 months ago
- ☆51Updated 2 years ago
- [EMNLP 2022] Official implementation of Transnormer in our EMNLP 2022 paper - The Devil in Linear Transformer☆63Updated 2 years ago
- Code for the paper "The Impact of Positional Encoding on Length Generalization in Transformers", NeurIPS 2023☆137Updated last year