LoRA adapter illustration

Build a LoRA Adapter Layer from Scratch in PyTorch

A hands‑on guide to building a LoRA adapter layer in pure PyTorch, with complete code, merge/unmerge, and tips for turning the project into a CV‑standing side project.

September 10, 2026 · 7 min · 1439 words · martinuke0
Low-rank adaptation diagram showing decomposed weight matrices added to a transformer layer

Build a LoRA Adapter from Scratch: A Portfolio-Ready PyTorch Project

A hands-on build guide for implementing a LoRA adapter from scratch in PyTorch, including rank-decomposed weight matrices and a complete fine-tuning loop for BERT — designed to signal real ML engineering skill on a portfolio.

September 9, 2026 · 13 min · 2665 words · martinuke0
Layered neural network diagram showing low-rank adapter matrices branching off frozen weights.

Building a LoRA Training Loop From Scratch in Pure NumPy

Build a working LoRA fine-tuning loop in pure NumPy, computing every gradient by hand through low-rank adapters. A practical side project that demonstrates real systems understanding to hiring managers.

September 6, 2026 · 12 min · 2463 words · martinuke0

LoRA vs QLoRA: A Practical Guide to Efficient LLM Fine‑Tuning

Introduction As large language models (LLMs) have grown into the tens and hundreds of billions of parameters, full fine‑tuning has become prohibitively expensive for most practitioners. Two techniques—LoRA and QLoRA—have emerged as leading approaches for parameter-efficient fine‑tuning (PEFT), enabling high‑quality adaptation on modest hardware. They are related but distinct: LoRA (Low-Rank Adaptation) introduces small trainable matrices on top of a frozen full‑precision model. QLoRA combines 4‑bit quantization of the base model with LoRA adapters, making it possible to fine‑tune huge models (e.g., 65B) on a single 24–48 GB GPU. This article walks through: ...

January 6, 2026 · 14 min · 2922 words · martinuke0
Feedback