A visualization of INT4 weight tensors being dequantized and multiplied in a fused GEMM kernel

Build a Blockwise INT4 Inference Engine: A Hands-On Portfolio Project

A hands-on build guide for a blockwise INT4 inference engine with packed-nibble weights, per-group scales/zero-points, and fused dequantizing GEMM — a portfolio project that demonstrates real systems and ML engineering depth.

September 22, 2026 · 15 min · 3020 words · martinuke0
A code editor displaying Python implementation of paged attention and KV-cache management

Build a Minimal LLM Inference Engine with Paged Attention and Adaptive KV-Cache Eviction in Pure Python

A hands-on guide to building a minimal LLM inference engine with paged attention and adaptive KV-cache eviction in pure Python, designed to demonstrate real systems engineering prowess on your CV.

September 21, 2026 · 13 min · 2752 words · martinuke0

How Ollama Works Internally: A Deep Technical Dive

Ollama is an open-source framework that enables running large language models (LLMs) locally on personal hardware, prioritizing privacy, low latency, and ease of use.[1][2] At its core, Ollama leverages llama.cpp as its inference engine within a client-server architecture, packaging models like Llama for seamless local execution without cloud dependencies.[2][3] This comprehensive guide dissects Ollama’s internal mechanics, from model management to inference pipelines, quantization techniques, and hardware optimization. Whether you’re a developer integrating Ollama into apps or a curious engineer, you’ll gain actionable insights into its layered design. ...

January 6, 2026 · 4 min · 739 words · martinuke0
Feedback