#400400th of 433 in ML frameworks and libraries
keras-attention
Keras attention layer with Luong and Bahdanau score functions
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts keras-attention on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.keras-attention is on your watch list. Its new releases and problems show there.
- Stars
- 2.8k
- License
- Apache-2.0
- Last commit
- Mar 2026
- Last release
- Mar 2023
- Language
- Python
2,805 on 2 May 20262,809 on 28 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A PyPI package (`attention`) that adds a single Attention layer to Keras models on TensorFlow 2.x. It takes a 3D tensor (batch, timesteps, input_dim), such as LSTM output, and returns a 2D attention vector, with a choice of Luong multiplicative or Bahdanau additive scoring. The README includes an IMDB comparison and toy examples that visualize attention weights.
Who it is for: Keras/TensorFlow users adding attention to RNN sequence models
Strengths
- Drop-in Keras layer: Attention(units=32, score='luong') after an RNN layer
- Supports both Luong and Bahdanau score functions
- Examples visualize attention weights on toy tasks (add two numbers, find max)
- Tested against TensorFlow 2.8 through 2.14
Weaknesses
- Last tested TensorFlow version is 2.14 (Sep 2023); newer versions not listed
- Last release was March 2023
- Returns a pooled 2D vector, not a sequence, limiting seq2seq decoder use
- Only two score functions; no multi-head or transformer-style attention
What it needs
- GPU optional
- Needs TensorFlow 2.0+, Keras
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #398 | dit-extrapolationPlug-in RoPE changes for longer video and higher-resolution image generation in DiTs | 21 out of 100 |
| #399 | videopipeC++ pipeline framework for video analysis with pluggable inference nodes | 20 out of 100 |
| #401 | pycmPython library for multi-class confusion matrices and classifier metrics | 20 out of 100 |
| #402 | internnavToolbox for training and evaluating embodied navigation models in Habitat and Isaac Sim | 20 out of 100 |
| #403 | deimTraining framework for real-time DETR object detectors with faster convergence | 19 out of 100 |