NVIDIA-Merlin/Transformers4Rec
Transformers4Rec is a flexible and efficient library for sequential and session-based recommendation and works with PyTorch. observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1967
- days_rel: n/a
- days_push: 10
- n_releases_24m: 0
Adoption not part of the score
1282 stars · 165 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Transformers4Rec is a Python library by NVIDIA for sequential and session-based recommendation using transformer architectures, bridging NLP and recommender systems via integration with Hugging Face Transformers. It works with PyTorch to model sequences of user interactions and predict the next item.
Use cases
- build session-based recommendations for anonymous e-commerce visitors
- predict the next item a user will interact with from their click sequence
- apply transformer architectures like BERT or XLNet to recommendation tasks
- model sequential user behavior with tabular interaction data
- handle interest drift by recommending from the current session only
- research next-item prediction with state-of-the-art sequence models
When to choose
- you need sequential or session-based recommendation with transformer models in PyTorch
- you want to leverage Hugging Face Transformers architectures for RecSys
- your users browse anonymously so only current-session interactions are available
- you're a researcher or practitioner applying NLP sequence models to recommendations
When to avoid
- you need simple collaborative filtering without sequence modeling
- your stack is TensorFlow-only since the library now focuses on PyTorch
- you need a turnkey hosted recommendation service rather than a modeling library
Facets
library · maturity maintenance
machine-learning deep-learning machine-learning deep-learning large-language-models e-commerce python recommender-systems sequential-recommendation session-based-recommendation huggingface-transformers pytorch nvidia-merlin tabular-data gpu
3 sources
- readme: https://github.com/NVIDIA-Merlin/Transformers4Rec · fetched 2026-08-28 · e96fce924211
- homepage: https://nvidia-merlin.github.io/Transformers4Rec/main · fetched 2026-08-29 · 8c28d3d20fc8
- registry_pypi: https://pypi.org/pypi/transformers4rec/json · fetched 2026-08-29 · 63895ecb9e10
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| NVIDIA-Merlin/Transformers4Rec | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="NVIDIA-Merlin/Transformers4Rec")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem