Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
Post image 6
1 / 6
0

Attention Is All You Need - Part 4

DEV Community·Ganesh Kumar·about 1 month ago
#rAJXLDlK
Reading 0:00
15s threshold

Hello, I'm Ganesh. I'm building git-lrc , an AI code reviewer that runs on every commit. It is free, unlimited, and source-available on Github. Star Us to help devs discover the project. Do give it a try and share your feedback for improving the product. In a previous article, I explained about the embedding and preprocessing of input. In this article we will discuss step 2 of the transformer model, i.e. position encoding. What is Positional Encoding? Positional encoding is a technique used to encode the position of a word in a sentence. It is used to overcome the limitation of the transformer model that it cannot process the input in parallel. Basically whenever the input text is given to the transformer model. say The Lion attacked Deer. The Deer attacked Lion. Enter fullscreen mode Exit fullscreen mode The token generated almost like this 791, 33199, 18855, 64191, 627, 791, 64191, 18855, 33199, 13 Enter fullscreen mode Exit fullscreen mode The meaning is different but the token created same.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More