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

From-Scratch GGUF/Safetensors Weight Loader with mmap Streaming and Tensor‑Name Remapping

A practical, runnable Python loader that maps GGUF/Safetensors weights into memory and remaps tensor names, ready for integration with llama.cpp.

November 23, 2026 · 8 min · 1567 words · martinuke0

Pure‑Python GGUF & Safetensors Weight Loader

A hands‑on guide to writing a pure‑Python GGUF/Safetensors weight loader that reads binary headers and returns NumPy arrays, perfect for demonstrating low‑level ML engineering skill on a CV.

November 18, 2026 · 8 min · 1529 words · martinuke0
Custom Python weight loader project cover

Hands-On Build Guide: Custom GGUF & safetensors Weight Loader with Lazy Memory Mapping and Quantization in Pure Python

Learn how to implement a lightweight, lazy‑loading weight loader from scratch, complete with quantization support and memory‑efficient design.

November 15, 2026 · 10 min · 1985 words · martinuke0
Illustration of Python code loading binary model weights

From‑Scratch GGUF & Safetensors Weight Loader in Pure Python

A from‑scratch Python loader for GGUF and safetensors weights using zero‑mmap reads, endianness/dtype conversion, tensor remapping and checksum verification.

November 13, 2026 · 9 min · 1802 words · martinuke0
Feedback