Research
Deep dives into reinforcement learning, computer vision, and robotics research, complete with mathematical formulations and architectural breakdowns.
#gqa
#mqa
#grouped-query-attention
#multi-query-attention
#kv-cache
#llm-inference
#llama-3
#flash-attention
#pytorch
#deep-learning
#orpo
#dpo
#rlhf
#preference-optimization
#llm-alignment
#llama-3
#mistral
#pytorch
#deep-learning
#qlora
#dora
#lora
#peft
#quantization
#nf4
#llama-3
#llm-fine-tuning
#pytorch
#deep-learning
#speculative-decoding
#llm-inference
#rejection-sampling
#medusa
#eagle
#tree-attention
#vllm
#pytorch
#deep-learning
#mamba
#state-space-models
#ssm
#mamba-2
#state-space-duality
#linear-attention
#s4
#hippo
#hardware-aware-scan
#pytorch
#deep-learning
#rectified-flow
#flow-matching
#diffusion-models
#reflow
#stable-diffusion-3
#flux
#ode-solvers
#optimal-transport
#pytorch
#generative-models
#flow-matching
#rectified-flow
#optimal-transport
#diffusion-models
#continuous-normalizing-flows
#stable-diffusion-3
#flux
#ode-solvers
#pytorch
#generative-models
#mmdit
#diffusion-transformer
#dit
#stable-diffusion-3
#flux
#multimodal-learning
#generative-models
#rectified-flow
#joint-attention
#pytorch
#PPO
#Proximal Policy Optimization
#Reinforcement Learning
#PyTorch
#Deep Learning
#Policy Gradient
#Actor-Critic
Reinforcement Learning Medium Soft Actor-Critic (SAC) Implementation in PyTorch
A PyTorch implementation of Soft Actor-Critic (SAC) with a stochastic squashed Gaussian policy, twin Q-networks with target networks, automatic temperature tuning, and a replay buffer for continuous control.
#SAC
#Soft Actor-Critic
#Reinforcement Learning
#PyTorch
#Deep Learning
#Continuous Control
#Off-Policy
#NeRF
#Neural Radiance Fields
#PyTorch
#Deep Learning
#3D Reconstruction
#Volume Rendering
#Computer Vision
#RoPE
#Rotary Position Embedding
#PyTorch
#Deep Learning
#Transformer
#Attention
#Position Encoding
#Stable Diffusion
#Diffusion Model
#DDPM
#PyTorch
#Deep Learning
#Generative Model
#Image Generation
#nerf
#neural-radiance-fields
#volume-rendering
#differentiable-rendering
#novel-view-synthesis
#3d-reconstruction
#positional-encoding
#instant-ngp
#3dgs
#pytorch
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.
#Transformer
#PyTorch
#Deep Learning
#Attention
#Natural Language Processing
#ltx-2
#video-generation
#audio-video
#diffusion-transformer
#dit
#flow-matching
#cross-modal
#gemma-3
#pytorch
#DPO
#Direct Preference Optimization
#RLHF
#Preference Optimization
#LSTM
#Language Model
#PyTorch
Reinforcement Learning Medium Group Relative Policy Optimization (GRPO) Implementation in PyTorch
A PyTorch implementation of Group Relative Policy Optimization (GRPO): a Group-relative RL approach that partitions sorted trajectories into groups, weights group-relative advantages, and applies clipped surrogate updates with PPO-style ratios.
#GRPO
#Group Relative Policy Optimization
#PPO
#Reinforcement Learning
#Policy Gradient
#Gym
#PyTorch
Reinforcement Learning Advanced Deep Deterministic Policy Gradient (DDPG) Implementation in PyTorch
A PyTorch implementation of Deep Deterministic Policy Gradient (DDPG): an Actor that outputs tanh-bounded deterministic actions, a Q-value Critic over state-action pairs, a replay buffer, target networks with soft updates, and a smoke test that exercises action selection and a short training loop.
#DDPG
#Actor-Critic
#Reinforcement Learning
#Deterministic Policy
#Replay Buffer
#Soft Update
#PyTorch
#LLaVA
#Vision-Language Model
#Multimodal
#Cross-Attention
#ResNet
#Transformer
#PyTorch
#diffusion-transformer
#dit
#vit
#transformer
#diffusion-models
#stable-diffusion-3
#flux
#adaln-zero
#mmdit
#rectified-flow
#pytorch
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.
#DiT
#Diffusion Transformer
#Generative Model
#Diffusion
#Vision Transformer
#Transformer
#PyTorch
Reinforcement Learning Medium Deep Q-Network (DQN) Implementation in PyTorch
A PyTorch implementation of Deep Q-Network (DQN): a Q-value MLP, a replay buffer, an ฮต-greedy agent with target network, Bellman loss update, and a CartPole-v1 training/test loop using Gymnasium.
#DQN
#Deep Q-Network
#Reinforcement Learning
#Q-Learning
#Replay Buffer
#Target Network
#PyTorch
#Gymnasium
#LoRA
#Low-Rank Adaptation
#PEFT
#Parameter-Efficient Fine-Tuning
#PyTorch
#Deep Learning
#LLM
#Diffusion
#DDPM
#Denoising
#Score-based
#Generative Model
#UNet
#PyTorch
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.
#FlashAttention
#Multi-Head Attention
#Tiling
#Memory Efficient
#Transformer
#PyTorch
#MoE
#Mixture of Experts
#PyTorch
#Deep Learning
#Gating Network
#Sparse Routing
#Transformer
Generative Models Advanced 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.
#ControlNet
#Conditional Diffusion
#Stable Diffusion
#Generative Models
#Channel Attention
#Residual Blocks
#PyTorch
Generative Models Advanced Denoising Diffusion Implicit Model (DDIM) Implementation in PyTorch
A PyTorch implementation of a Denoising Diffusion Implicit Model (DDIM) sampler: a UNet denoiser with GELU time conditioning, an eta-controlled stochastic-to-deterministic reverse process on a sub-sequence of timesteps, and a smoke test that verifies noise addition, model output, sampling shapes, and deterministic reproducibility.
#DDIM
#Diffusion
#Denoising
#Generative Models
#Deterministic Sampling
#UNet
#PyTorch
Generative Models Advanced Denoising Diffusion Probabilistic Model (DDPM) Implementation in PyTorch
A PyTorch implementation of a Denoising Diffusion Probabilistic Model (DDPM): a UNet denoiser with sinusoidal-free linear time conditioning, a linear-beta forward diffusion, an iterative reverse sampling loop, and a smoke test that verifies noise addition, model output, and sampling shapes.
#DDPM
#Diffusion
#Denoising
#Score-based
#Generative Models
#UNet
#PyTorch
#pagedattention
#vllm
#kv-cache
#llm-inference
#continuous-batching
#flashattention
#memory-management
#transformers
#systems
#pytorch
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.
#DeepSeek
#MoE
#Mixture of Experts
#RMSNorm
#LLM
#Transformer
#PyTorch
#ddim
#denoising-diffusion-implicit-models
#diffusion-models
#fast-sampling
#non-markovian
#probability-flow-ode
#deterministic-sampling
#stable-diffusion
#pytorch
#generative-ai
#Vision Transformer
#ViT
#PyTorch
#Deep Learning
#Computer Vision
#Image Classification
#vision-transformer
#vit
#transformer
#self-attention
#patch-embedding
#multi-head-attention
#deit
#mae
#swin-transformer
#pytorch
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.
#LLaMA
#Transformer
#RMSNorm
#RoPE
#Rotary Position Embedding
#SwiGLU
#PyTorch
#rope
#rotary-position-embedding
#transformer
#positional-encoding
#relative-position
#llama
#yarn
#ntk-aware
#pytorch
#ddpm
#diffusion-models
#denoising
#markov-chain
#score-based
#stable-diffusion
#generative-ai
#elbo
#variational-inference
#pytorch
Generative Models Advanced 3D Gaussian Splatting (3DGS) Implementation in PyTorch
A PyTorch implementation of 3D Gaussian Splatting from scratch: per-Gaussian learnable positions, scales, quaternions and RGBA, 3D covariance via R S Sแตแต, projection to 2D via the perspective Jacobian, splat-based alpha compositing over a pixel grid, and a smoke test that checks initialization, symmetry/orthogonality of covariances, and the rendering output shape and value range.
#3DGS
#Gaussian Splatting
#Differentiable Rendering
#3D Reconstruction
#Neural Rendering
#Quaternion
#PyTorch
#diffusion-models
#ddpm
#score-based
#generative-ai
#stable-diffusion
#denoising
#vae-comparison
#gan-comparison
#pytorch
Reinforcement Learning Advanced Asynchronous Advantage Actor-Critic (A3C) Implementation in PyTorch
A PyTorch implementation of Asynchronous Advantage Actor-Critic (A3C): a shared Actor-Critic network with a softmax policy head, multiple Worker processes that collect CartPole trajectories, compute n-step returns and advantages, and sync gradients into a global model, plus a greedy test harness that runs the trained policy in render mode.
#A3C
#Actor-Critic
#Asynchronous
#Reinforcement Learning
#Advantage
#Policy Gradient
#PyTorch
#Multiprocessing
#4dgs
#4d-gaussian-splatting
#3dgs
#dynamic-scene-reconstruction
#novel-view-synthesis
#hexplane
#deformation-field
#computer-vision
#cuda
#3dgs
#3d-gaussian-splatting
#nerf
#novel-view-synthesis
#3d-reconstruction
#differentiable-rendering
#computer-vision
#cuda
#llava
#multimodal
#visual-instruction-tuning
#vit
#clip
#llm
#llama
#vision-language
#mlp-projector
#pytorch
#stable-diffusion
#latent-diffusion
#ldm
#unet
#clip
#vae
#classifier-free-guidance
#diffusers
#sdxl
#pytorch
#lora
#peft
#low-rank
#parameter-efficient
#qlora
#dora
#stable-diffusion
#llama
#transformers
#fine-tuning
#pytorch
#controlnet
#stable-diffusion
#conditional-generation
#zero-convolution
#spatial-control
#diffusers
#generative-ai
#deep-learning
#3d-transformer
#point-cloud
#sparse-attention
#voxel
#self-attention
#pointnet
#point-transformer
#swin3d
#lidar
#pytorch
#llama
#llama-2
#llama-3
#llm
#decoder-transformer
#rmsnorm
#swiglu
#rope
#grouped-query-attention
#gqa
#pytorch
#transformer
#attention
#self-attention
#multi-head-attention
#positional-encoding
#bert
#gpt
#t5
#flashattention
#pytorch