Downloads · 30 days
0
Kyworn/pentanet-124m
pentanet-124m is a machine learning model from Kyworn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Author: Zorko · Independent Researcher · zorko.xyz
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2026
Repo size
789 KB
Likes
1
Public
Click a slice to open those files.
.pdf482 KB · 49%
From the Hugging Face model README
Author: Zorko · Independent Researcher · zorko.xyz
PentaNet extends extreme quantization beyond BitNet's ternary
{-1, 0, +1}to pentanary{-2, -1, 0, +1, +2}, achieving a 6.4% perplexity improvement on WikiText-103 while preserving zero-multiplier inference (additions + bit-shifts only).
| Model | Mean PPL | Std | Seeds |
|---|---|---|---|
| PentaNet {-2..+2} | 180.32 | ±2.09 | 42, 1337, 2026 |
| BitNet {-1..+1} | 192.63 | ±3.52 | 42, 1337, 2026 |
(Prompt: "The history of the internet began with")
⏳ Generating with BitNet (Ternary {-1, 0, 1}) ...
🤖 BITNET S42: The history of the internet began with the <unk> to be a way , <unk> , which was the first recent of the <unk> , and the city and the <unk> . The French army was the first to be the first @-@ scale
⏳ Generating with PentaNet (Pentanary {-2, -1, 0, 1, 2}) ...
🤖 PENTANET S42: The history of the internet began with the original level of the other . The term of the original world was to the public court of the United States in July 2013 in February 15 , 2015 , as well as the team of $ 2 @,@ 000 . In the same year , the
Notice how BitNet struggles with vocabulary collapse (<unk>) and repetitive stuttering, while PentaNet generates fluent, grammatically correct Wikipedia-style coherent sentences (despite being factually hallucinatory due to the small size).
├── README.md
├── PentaNet_NeurIPS_Draft.md # Full technical report (markdown)
├── train_pentagpt.py # Core training script (PentaNet + BitNet)
├── pentanet_layer.py # PentaLinear layer implementation
├── prepare_data.py # WikiText-103 data preparation
├── run_benchmark.py # 3-seed benchmark orchestrator
├── paper/
│ ├── PentaNet_Technical_Report.pdf
│ └── figures/
├── scripts/ # Visualization & utilities
│ ├── compile_pdf.py
│ ├── export_figures.py
│ ├── generate_dashboard.py
│ └── plot_results.py
└── models/ # JSON logs + model checkpoints
├── pentanet_large_s{42,1337,2026}_results.json
└── bitnet_large_s{42,1337,2026}_results.json
# 1. Setup
python -m venv .venv-gpu && source .venv-gpu/bin/activate
pip install torch transformers datasets
# 2. Prepare data
python prepare_data.py
# 3. Run full benchmark (3 seeds × 2 architectures, ~2h15 on RTX 5080)
python run_benchmark.py
# 4. Visualize results
python scripts/generate_dashboard.py # Interactive HTML dashboard
python scripts/export_figures.py # Publication-quality PNG/PDF
python scripts/compile_pdf.py # Compile full paper PDF
Pre-trained checkpoints are available on HuggingFace:
@techreport{zorko2026pentanet,
title = {PentaNet: Native Pentanary Quantization for Large Language Models},
author = {Zorko},
year = {2026},
url = {https://zorko.xyz}
}
MIT