Python code with weight file icons

From-Scratch Safetensors & GGUF Weight Loader in Pure Python

A hands‑on guide to building a from‑scratch safetensors & GGUF weight loader in pure Python, using mmap zero‑copy views and on‑the‑fly Q4_K/Q5_K dequantization – a tangible project that signals low‑level ML systems competence.

November 30, 2026 · 8 min · 1644 words · martinuke0
A sleek diagram of tensor weights flowing through memory‑mapped files

From‑Scratch Safetensors & GGUF Weight Loader with mmap‑Backed Zero‑Copy Views

A practical, runnable guide to constructing a from‑scratch safetensors/GGUF weight loader with zero‑copy mmap views, dtype/quantization decoding, and shape validation, perfect for a CV‑boosting side project.

October 2, 2026 · 10 min · 2029 words · martinuke0
A sleek Python logo with a binary model file overlay

Hands‑On: Building a Zero‑Dependency Pure‑Python GGUF Model Loader with Memory‑Mapped Tensor Access

A lightweight, dependency‑free Python loader for GGUF models that uses memory‑mapped files and on‑the‑fly dtype conversion, perfect for a standout CV project.

September 25, 2026 · 8 min · 1699 words · martinuke0
A stylized illustration of a memory-mapped file loading tensors.

Lazy GGUF/Safetensors Checkpoint Loader: A Hands-On Build Guide

A practical guide to building a lazy checkpoint loader that memory-maps GGUF and safetensors files, parses tensor metadata, and dequantizes on demand.

September 23, 2026 · 9 min · 1902 words · martinuke0
Python code on a laptop screen next to a model file

Hands‑On Build Guide: Pure‑Python Safetensors Parser & Weight Shard Assembler with mmap Lazy Loading

A step‑by‑step guide to creating a lightweight, mmap‑based safetensors parser you can ship, test, and extend for real‑world model serving.

September 16, 2026 · 7 min · 1452 words · martinuke0
Feedback