Tag: #deep-learning
All published articles with this tag "deep-learning". 15 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
Stable Diffusion (DDPM): Minimal PyTorch Implementation
A minimal PyTorch implementation of a Denoising Diffusion Probabilistic Model (DDPM): sinusoidal time embeddings, U-Net with skip connections, forward noising, reverse denoising, and ancestral sampling.
- Research · Deep Learning
Transformer Encoder Implementation in PyTorch
A compact PyTorch implementation of a Transformer encoder with multi-head self-attention, sinusoidal positional encoding, feed-forward layers, residual connections, and padding masks.
- Research · Deep Learning
Low-Rank Adaptation (LoRA) Implementation in PyTorch
A PyTorch implementation of Low-Rank Adaptation (LoRA): low-rank A/B matrices wrapped around a frozen linear layer, scaled by alpha/rank, with shape, freezing, and rank-property tests.