LoRA fine-tuning trainer on a laptop screen

From-Scratch LoRA Fine‑Tuning Trainer with Manual Gradient Checkpointing and Adapter Merging in Pure PyTorch

A hands‑on guide to implementing LoRA fine‑tuning with manual gradient checkpointing and adapter merging in pure PyTorch, ready to run and extend.

October 31, 2026 · 7 min · 1453 words · martinuke0
A neural network diagram showing expert routing

Building a Pure-Python MoE Router with Noisy Top-K Gating and Load Balancing

A practical portfolio project: implement a MoE router from scratch in pure Python, featuring noisy top-k gating, load balancing loss, and expert assignment for transformer models.

October 29, 2026 · 11 min · 2335 words · martinuke0
Diagram of a PyTorch training loop with gradient accumulation, mixed precision and LR scheduling

Hands‑On Guide: Gradient Accumulation, Mixed Precision & Cosine Warmup for a Stand‑Out CV Project

Learn how to combine gradient accumulation, mixed precision, and cosine warmup into a reproducible PyTorch training script that showcases production‑ready ML engineering skills.

October 28, 2026 · 7 min · 1294 words · martinuke0
PyTorch attention implementation on a laptop screen

Building a Causal Self-Attention Block from Scratch in PyTorch

Implement a memory-efficient, causal attention mechanism with a custom KV cache in under 100 lines of pure PyTorch code.

October 28, 2026 · 8 min · 1533 words · martinuke0
A stylized representation of neural network training with optimization algorithms.

Fused AdamW Optimizer: A Hands-On Build Guide for Your CV

Learn to implement a fused AdamW optimizer in PyTorch, showcasing your ability to build core ML infrastructure from the ground up.

October 27, 2026 · 7 min · 1416 words · martinuke0
Feedback