A visualization of quantized weight tensors with block-wise scaling

Building a Pure-Python INT4 Transformer Weight Quantizer with Block-Wise Per-Channel Scaling

A practical guide to building a pure-Python INT4 quantizer for transformer weights, demonstrating real systems skills for your portfolio.

October 14, 2026 · 7 min · 1291 words · martinuke0
Short description of the cover image subject.

Pure-Python INT8 Weight Quantizer for Transformer Inference: A Hands-On Build Guide

Learn to implement a production‑ready INT8 quantizer with per‑channel scaling, test it on transformer weights, and extend it for real‑world deployment.

October 14, 2026 · 8 min · 1687 words · martinuke0
Python code on a terminal displaying a GGUF weight loader

Pure Python GGUF Weight Loader: Streaming Quantized Tensors via Memory-Mapped Files

A step‑by‑step guide to building a pure Python GGUF weight loader that streams quantized tensors using memory‑mapped files, complete with code, testing, and production‑ready extensions.

October 12, 2026 · 8 min · 1680 words · martinuke0
Diagram of a quantizer converting weights

Mini Post-Training Quantizer: FP32 to INT4 with Calibration and Dithering in Pure Python

This post walks through building a lightweight post-training quantizer that maps FP32 LLM weights to INT4 using calibration and dithering, with full Python code and testing steps.

October 7, 2026 · 7 min · 1393 words · martinuke0
A circuit board with glowing data streams

Building a GGUF Tensor Dequantizer and Lazy Loader

Learn to build a memory‑efficient GGUF weight loader that dequantizes tensors on the fly, ideal for low‑resource inference.

September 30, 2026 · 7 min · 1345 words · martinuke0
Feedback