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
A circuit board with glowing data streams

From-Scratch GGUF Weight Loader with Blockwise Dequantization, mmap Streaming, and Safetensors Export

A practical guide to implementing a GGUF loader with blockwise dequantization and safetensors export, demonstrating low-level systems expertise.

September 12, 2026 · 9 min · 1768 words · martinuke0
Feedback