ByteForge is an experimental C++ project exploring whether quantized .gguf model files contain enough byte-level structure to support meaningful custom compression.
The project began while working with local Small Language Models (SLMs), where even aggressively quantized models often remain hundreds of megabytes or multiple gigabytes in size.
The goal is not to compete with mature compressors, but to understand how model files behave at the binary level and whether custom formats can exploit recurring patterns within metadata, tokenizer data, and quantized tensor blocks.
All experiments are lossless. Every compressed output must rebuild the original source bytes exactly.
Experiment 1 — Repeated Byte Compression
Experiment 2 — Nibble Dictionary Compression
.gguf files.