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
Short description of the cover image subject.

From‑Scratch int4 Weight‑Only Quantizer with Per‑Group Scales and Zero‑Points for LLM Inference

A from‑scratch int4 quantizer in pure Python, demonstrating low‑level LLM optimization skills ready for production.

November 6, 2026 · 7 min · 1297 words · martinuke0
A circuit board with a transformer symbol

From Scratch: Building an int4 Quantized Transformer Decoder in Python

Build a from-scratch int4 quantized transformer decoder in Python, demonstrating calibration, per-channel scaling, and GEMM for real systems skill.

November 4, 2026 · 7 min · 1426 words · martinuke0
Python code on a laptop screen

Hands‑On Build Guide: Group‑wise INT4 Weight‑only Quantization with Per‑channel Scales and Per‑token INT8 Dynamic Activation Scaling for LLM Inference

A step‑by‑step guide to implementing group‑wise INT4 weight quantization and per‑token INT8 activation scaling from scratch in pure Python, ready for LLM inference.

November 3, 2026 · 9 min · 1883 words · martinuke0
Quantized transformer attention block

From Scratch: Quantized Transformer Attention with Int4 Weights and Int8 GEMM in Pure Python

A hands-on guide to implementing efficient low-precision attention in pure Python, showcasing quantization, GEMM, and architecture design for hiring managers.

October 30, 2026 · 10 min · 1921 words · martinuke0
Feedback