Tag: #PyTorch
All published articles with this tag "PyTorch". 47 items published.
- Research · Generative Models
Denoising Diffusion Probabilistic Model (DDPM) Implementation in PyTorch
A PyTorch implementation of a Denoising Diffusion Probabilistic Model (DDPM): a linear-beta forward diffusion, a reverse sampling loop, a time-conditioned UNet denoising network, and a training-free smoke test that forward-diffuses, predicts noise, and samples images.
- 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 · Generative Models
ControlNet Implementation in PyTorch
A minimal PyTorch ControlNet implementation: a control encoder with conv blocks, residual skip connections, channel attention, and a zero-initialized projection that adds residual control features into a backbone so that the model behaves as identity at init.