BERT-pytorch VS attention-is-all-you-need-pytorch

Compare BERT-pytorch vs attention-is-all-you-need-pytorch and see what are their differences.

BERT-pytorch

Google AI 2018 BERT pytorch implementation (by codertimo)

attention-is-all-you-need-pytorch

A PyTorch implementation of the Transformer model in "Attention is All You Need". (by jadore801120)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
BERT-pytorch attention-is-all-you-need-pytorch
1 3
5,995 8,456
- -
0.0 0.0
8 months ago 13 days ago
Python Python
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

BERT-pytorch

Posts with mentions or reviews of BERT-pytorch. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-20.
  • Lack of activation in transformer feedforward layer?
    2 projects | /r/learnmachinelearning | 20 May 2021
    I'm curious as to why the second matrix multiplication is not followed by an activation unlike the first one. Is there any particular reason why a non-linearity would be trivial or even avoided in the second operation? For reference, variations of this can be witnessed in a number of different implementations, including BERT-pytorch and attention-is-all-you-need-pytorch.

attention-is-all-you-need-pytorch

Posts with mentions or reviews of attention-is-all-you-need-pytorch. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-10.
  • ElevenLabs Launches Voice Translation Tool to Break Down Language Barriers
    2 projects | news.ycombinator.com | 10 Oct 2023
    The transformer model was invented to attend to context over the entire sequence length. Look at how the original authors used the Transformer for NMT in the original Vaswani et al publication. https://github.com/jadore801120/attention-is-all-you-need-py...
  • Question: LLMs
    1 project | /r/learnmachinelearning | 6 Jul 2023
    I did implement an "LLM" proof of concept from scratch in a course for my masters, pretty much doing a small implementation of a transformer from the Attention is all you Need paper (plus other resources). It was useless, but was a great experience to understand how it works. There are a few implementation like this out there, like this one: https://github.com/jadore801120/attention-is-all-you-need-pytorch (first google result). I think it is a fun exercise (the amount of fun depends on how much of a masochist you are :) ).
  • Lack of activation in transformer feedforward layer?
    2 projects | /r/learnmachinelearning | 20 May 2021
    I'm curious as to why the second matrix multiplication is not followed by an activation unlike the first one. Is there any particular reason why a non-linearity would be trivial or even avoided in the second operation? For reference, variations of this can be witnessed in a number of different implementations, including BERT-pytorch and attention-is-all-you-need-pytorch.

What are some alternatives?

When comparing BERT-pytorch and attention-is-all-you-need-pytorch you can also consider the following projects:

haystack - :mag: LLM orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots.

LFattNet - Attention-based View Selection Networks for Light-field Disparity Estimation

bertviz - BertViz: Visualize Attention in NLP Models (BERT, GPT2, BART, etc.)

long-range-arena - Long Range Arena for Benchmarking Efficient Transformers

transformers - 🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.

OpenPrompt - An Open-Source Framework for Prompt-Learning.

transformer-pytorch - Transformer: PyTorch Implementation of "Attention Is All You Need"

allennlp - An open-source NLP research library, built on PyTorch.

Transformers4Rec - Transformers4Rec is a flexible and efficient library for sequential and session-based recommendation and works with PyTorch.

scibert - A BERT model for scientific text.