{"id":6377,"date":"2025-08-27T07:02:24","date_gmt":"2025-08-27T07:02:24","guid":{"rendered":"https:\/\/mailitics.com\/index.php\/2025\/08\/27\/positional-embeddings-in-transformers-a-math-guide-to-rope-alibi\/"},"modified":"2025-08-27T07:02:24","modified_gmt":"2025-08-27T07:02:24","slug":"positional-embeddings-in-transformers-a-math-guide-to-rope-alibi","status":"publish","type":"post","link":"https:\/\/mailitics.com\/index.php\/2025\/08\/27\/positional-embeddings-in-transformers-a-math-guide-to-rope-alibi\/","title":{"rendered":"Positional Embeddings in Transformers: A Math Guide to RoPE &amp; ALiBi"},"content":{"rendered":"\n<div>Positional Embeddings in Transformers: A Math Guide to RoPE &#038; ALiBi<\/div>\n<p> \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>Learn APE, RoPE, and ALiBi positional embeddings for GPT \u2014 intuitions, math, PyTorch code, and experiments on TinyStories<\/p>\n<p>The post <a href=\"https:\/\/towardsdatascience.com\/positional-embeddings-in-transformers-a-math-guide-to-rope-alibi\/\">Positional Embeddings in Transformers: A Math Guide to RoPE &amp; ALiBi<\/a> appeared first on <a href=\"https:\/\/towardsdatascience.com\/\">Towards Data Science<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Sathya Krishnan Suresh<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/towardsdatascience.com\/positional-embeddings-in-transformers-a-math-guide-to-rope-alibi\/\">Go to original source<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Positional Embeddings in Transformers: A Math Guide to RoPE &#038; ALiBi Learn APE, RoPE, and ALiBi positional embeddings for GPT \u2014 intuitions, math, PyTorch code, and experiments on TinyStories The post Positional Embeddings in Transformers: A Math Guide to RoPE &amp; ALiBi appeared first on Towards Data Science. Sathya Krishnan Suresh Go to original source<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62,69,67,88,70,229,1962],"tags":[91,1168,3602],"class_list":["post-6377","post","type-post","status-publish","format-standard","hentry","category-aimldsaimlds","category-artificial-intelligence","category-deep-dives","category-deep-learning","category-machine-learning","category-math","category-transformer","tag-embeddings","tag-math","tag-positional"],"_links":{"self":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts\/6377"}],"collection":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/comments?post=6377"}],"version-history":[{"count":0,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts\/6377\/revisions"}],"wp:attachment":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/media?parent=6377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/categories?post=6377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/tags?post=6377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}