Tag: #rope
All published articles with this tag "rope". 4 items published.
- Research · Deep Learning
Rotary Position Embedding (RoPE) Implementation in PyTorch
A PyTorch implementation of Rotary Position Embedding (RoPE): inverse frequency buffer, precomputed cos/sin cache, query/key rotation, and shape verification.
- Research · Deep Learning
LLaMA Transformer Implementation in PyTorch
A from-scratch PyTorch implementation of the LLaMA-style Transformer: RMSNorm, Rotary Position Embeddings (RoPE), GQA-style multi-head attention with causal mask, SwiGLU MLP, and a stack of pre-norm decoder layers.
- Research · Reinforcement Learning
RoPE (Rotary Position Embedding): Mathematical Foundations, Complex Rotations, and PyTorch Architecture
Master RoPE (Rotary Position Embedding): complex rotation algebra, relative distance invariance proof, long-context scaling (YaRN), and PyTorch kernels.
- Research · Reinforcement Learning
Llama Architecture: RMSNorm, SwiGLU, RoPE, GQA, and PyTorch Implementation
Master Llama architecture: RMSNorm pre-normalization, SwiGLU activations, RoPE relative embeddings, Grouped-Query Attention (GQA), and PyTorch pipelines.