Tag: #Transformer
All published articles with this tag "Transformer". 12 items published.
- Research · Reinforcement Learning
Vision Transformer (ViT): Patch Embedding, Self-Attention, and PyTorch Architecture
Master the Vision Transformer (ViT): patch projection, class tokens, multi-head self-attention over patches, DeiT augmentation, and PyTorch implementations.
- 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
The Transformer Architecture: Scaled Dot-Product Attention, Multi-Head Projections, and PyTorch Engine
Master the Transformer: scaled dot-product attention, multi-head projections, sinusoidal & RoPE encodings, Pre-LN vs Post-LN stability, and PyTorch engines.