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
Binary file format visualization representing GGUF and Safetensors tensor data

Build a Pure-Python GGUF and Safetensors Weight Loader

A hands-on guide to building a pure-Python gguf and safetensors weight loader from scratch. Parse binary headers, memory-map tensor data, and convert to numpy arrays for inference — with real runnable code and a roadmap to production-grade.

September 15, 2026 · 15 min · 3186 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
A schematic of memory-mapped file access across sharded model weights.

Building a Safetensors Schema Validator and mmap-Backed Tensor Reader for Sharded Model Weights

This project demonstrates how to validate safetensors schemas and read sharded model weights using memory-mapped files, showing practical systems expertise.

September 10, 2026 · 8 min · 1701 words · martinuke0
Feedback