Pure Python int4 transformer inference engine running on CPU

Pure Python int4 Weight-Only Transformer Inference Engine: A Hands-On Build Guide

A practical, step-by-step guide to building a pure Python int4 weight-only transformer inference engine, complete with quantization logic, runnable code, and production-ready extensions.

November 8, 2026 · 9 min · 1769 words · martinuke0
A sleek notebook with code snippets and a transformer diagram.

From‑Scratch LoRA Adapter Implementation in Pure PyTorch

A hands‑on guide to implementing LoRA adapters in pure PyTorch, training only the low‑rank parameters while freezing the base model.

October 31, 2026 · 7 min · 1387 words · martinuke0
A sleek notebook with code snippets and a neural network diagram

Build a Mini GPT Training Loop from Scratch

Learn how to implement a from‑scratch GPT training loop in PyTorch, with code you can run, test, and extend into production‑grade AI systems.

October 31, 2026 · 7 min · 1435 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
Python code on a laptop screen with transformer diagrams

Pure‑Python Paged Attention with LRU KV‑Cache: A Hands‑On Portfolio Project

A hands‑on guide to implementing paged attention with LRU eviction in pure Python, turning a clever algorithmic trick into a runnable portfolio project that hiring managers notice.

October 25, 2026 · 9 min · 1751 words · martinuke0
Feedback