Downloads · 30 days
0
hunterbown/Shannonstral-7B-1bit
Shannonstral-7B-1bit is a text generation model from hunterbown. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
TL;DR: Mistral-7B compressed to 1-bit per weight. 27MB gzipped (150MB binary). The model runs but generates incoherent text. A research artifact demonstrating the information-theoretic limit of neural compression.
Downloads · 30 days
0
Access
Public
Updated Sep 14, 2025
Repo size
4.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors4.1 GB · 99%
From the Hugging Face model README
TL;DR: Mistral-7B compressed to 1-bit per weight. 27MB gzipped (150MB binary). The model runs but generates incoherent text. A research artifact demonstrating the information-theoretic limit of neural compression.
This model does not generate coherent text. It is provided as a scientific artifact for studying the limits of neural network compression.
Original (FP16): 14 GB (7B params × 2 bytes)
↓
1-bit binary: 875 MB (7B params × 1 bit ÷ 8)
↓
With scales: 150 MB (packed binary + per-channel FP16 scales)
↓
Gzipped: 27 MB (entropy coding of binary patterns)
Note: The 27 MB gzip is the on-disk compressed file; runtime uses the ~150 MB binary weights.
Italy franchise creature WIN participate
import pickle
import gzip
import numpy as np
from mlx_lm import load
# IMPORTANT: This model requires the 4-bit model for structure
# The 1-bit weights are loaded on top of the 4-bit architecture
model, tokenizer = load("hunterbown/Shannonstral-7B-4bit")
# Load the compressed 1-bit weights
with gzip.open('weights_packed.pkl.gz', 'rb') as f:
packed_weights = pickle.load(f)
# Apply 1-bit weights to the model structure
# See app.py for complete implementation
print(f"Total weight tensors: {len(packed_weights)}")
print(f"Compressed size: {sum(len(v['packed']) for v in packed_weights.values()) / 1e6:.1f}MB")
Dependency Note: This model requires hunterbown/Shannonstral-7B-4bit for the base model structure. The 1-bit weights are applied on top of the 4-bit architecture.
# Quantization process
def quantize_to_1bit(weight):
return np.sign(weight), np.mean(np.abs(weight))
# Applied to all weight matrices
for name, param in model.parameters():
binary, scale = quantize_to_1bit(param)
packed = np.packbits(((binary + 1) / 2).astype(np.uint8))
save(name, packed, scale)
weights_packed.pkl.gz (SHA‑256): fb92ff171756fd148e1464febce37edcf5d5fe55c6d4a6d1f51ed2c4c1f1ff9e (28,631,849 bytes)@misc{shannonstral2025-1bit,
title={Shannonstral-7B-1bit: Empirical Limits of Neural Network Compression},
author={Hunter Bown},
year={2025},
publisher={Hugging Face},
note={93x compression via 1-bit quantization - structure preserved, semantics destroyed}
}