Categories: AI/ML Research

Rotary Position Embeddings for Long Context Length

This article is divided into two parts; they are: • Simple RoPE • RoPE for Long Context Length Compared to the sinusoidal position embeddings in the original Transformer paper, RoPE mutates the input tensor using a rotation matrix: $$ begin{aligned} X_{n,i} &= X_{n,i} cos(ntheta_i) – X_{n,frac{d}{2}+i} sin(ntheta_i) \ X_{n,frac{d}{2}+i} &= X_{n,i} sin(ntheta_i) + X_{n,frac{d}{2}+i} cos(ntheta_i) end{aligned} $$ where $X_{n,i}$ is the $i$-th element of the vector at the $n$-th position of the sequence of tensor $X$.
AI Generated Robotic Content

Recent Posts

The End-to-End Agentic AI Pipeline

In this article, you will learn the seven architectural components that separate a production-grade agentic…

43 mins ago

Dimensionality Reduction Meets Network Science: Sensemaking on UMAP’s kNN Graph

While UMAP is widely used for exploring high-dimensional data, typical workflows focus on its lower-dimensional…

43 mins ago

GenRec: Towards LLM-Native Recommendation at Netflix

Authors: Ying Li, Arjun Rao, Shradha SehgalIntroductionRecommendations sit at the heart of the Netflix experience. Our…

43 mins ago

Deploying Kimi K3 on AWS

Open weight models have become powerful enough to handle complex tasks such as multi-step agentic…

43 mins ago

Do more with less: How GKE can reduce your cost per agent by 75%

In today’s agentic era, modern cloud applications are evolving from a set of passive tools…

44 mins ago

Anthropic Says Claude Hacked 3 Organizations During Cybersecurity Tests

In a review triggered by OpenAI’s Hugging Face incident, Anthropic discovered three of its AI…

2 hours ago