Tag: #Transformer
All published articles with this tag "Transformer". 12 items published.
- Research · Generative Models
Diffusion Transformer (DiT) Implementation in PyTorch
A PyTorch implementation of the Diffusion Transformer (DiT): a patch-embedded Vision Transformer with sinusoidal timestep conditioning, multi-head self-attention, MLP blocks, and a transposed-conv head that predicts the image-space noise.
- Research · Deep Learning
FlashAttention Implementation in PyTorch
A PyTorch implementation of FlashAttention-style multi-head attention: a softmax-scaled dot-product attention block, a tiled/blocked variant that processes sequence chunks for memory efficiency, and basic shape tests.
- Research · Deep Learning
Mixture of Experts (MoE) Implementation in PyTorch
A PyTorch implementation of the Mixture of Experts (MoE) layer with a top-k gating network, multiple expert MLPs, and weighted expert outputs for sparse expert routing.
- Research · Deep Learning
DeepSeek Architecture Implementation in PyTorch
A PyTorch implementation of the DeepSeek-style architecture: RMSNorm pre-norm blocks, a multi-head latent attention module, a Mixture-of-Experts (MoE) feed-forward router, and a stack of DeepSeek blocks with token-level residual paths.