Downloads · 30 days
10
2% of all-time downloads
armanibadboy/WAL-Ternary-27B-RC1
WAL-Ternary-27B-RC1 is a text generation model from armanibadboy. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
The model is the proof. The pipeline is the product.
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
466
Public
Repo size
8.3 GB
Likes
0
Public
Click a slice to open those files.
.wal27m6.6 GB · 79%
From the Hugging Face model README
The model is the proof. The pipeline is the product.
WAL-Ternary-27B-RC1 is an independently constructed, language-only ultra-low-bit checkpoint derived from Qwen3.6-27B. It is the second full-scale demonstration of the WAL approach after WAL-Ternary-8B.
We are not claiming the best 27B ternary model. We are publishing an open, auditable path for constructing, physically packing, directly executing, and measuring one without large-scale quantization-aware retraining.
Русский · Қазақша · Model files on Hugging Face
New here? Follow Start here. To rebuild or port the method, use the step-by-step reproduction guide.
| Item | Status |
|---|---|
| Physical autonomous checkpoint | PASS |
| 496/496 Transformer-body matrices packed | PASS |
| Reference reload | PASS |
| Direct-packed full-model execution | PASS |
| Persistent dense BF16/INT8 body | 0 bytes |
| Canonical quality backend | reference-exact |
| Experimental performance backend | cuda-fast |
| Production maturity | Not yet |
| CPU / Apple Silicon backend | Not yet |
RC1 is a research release. It generates coherent text and preserves substantial functionality, but its knowledge quality and runtime speed remain below the trained low-bit frontier.
| Property | Value |
|---|---|
| Language parameters | 26,895,998,464 |
| Canonical checkpoint bytes | 8,319,902,374 |
| Full-model BPW | 2.474688533 |
| Compression relative to BF16 | about 6.47× |
| Body matrices | 496 |
| WALB2 bundles | 152 |
| Configured context | 262,144 tokens |
| Runtime validation completed through | 4,096 tokens |
| Manifest SHA-256 | 383c0603bce54a2072db0bc329c4e5b5dab512cb1d5672f255348bedfbe7b077 |
The reported BPW covers the mandatory physical checkpoint payload. Repository documentation and the derived hardware cache are not counted in model BPW.
Each selected body matrix is approximated as:
W ≈ T3 + sparse + WALB2
{-1, 0, +1} base, stored as seekable losslessly compressed
2-bit symbols.k0/k2/k4/k8 corrections per
group of 128 weights.See docs/FORMAT.md for the storage ABI.
All public RC1 baseline values below were measured through the direct-packed
reference-exact runtime, not a persistent materialized BF16 body.
| Benchmark | RC1 |
|---|---|
| C4 perplexity | 15.6639 |
| WikiText-2 perplexity | 10.9453 |
| MMLU-Redux micro | 60.98% |
| MMLU-Redux macro | 61.14% |
| MMLU-Redux questions | 2,722 |
These are baseline numbers, not a claim of parity with Qwen BF16 or Bonsai. The full generative and same-harness competitor battery is incomplete.
Current research backend, batch 1 on an NVIDIA H200:
| Metric | Result |
|---|---|
| Decode | 3.22 tok/s |
| Short prefill | 19.48 tok/s |
| Short-run peak VRAM | 10.97 GB |
| 4K-context peak VRAM | 11.65 GB |
| Persistent packed model payload in VRAM | about 10.54 GB |
| Persistent dense body | 0 bytes |
These numbers establish direct execution and memory behavior. They are not a production-speed claim. The released backend is validated for NVIDIA Hopper SM90; other GPUs may compile but are not certified.
The cleanest environment is Python 3.11 with a recent CUDA-enabled PyTorch.
git clone https://github.com/AubakirovArman/WAL-Ternary-27B.git
cd WAL-Ternary-27B
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -e .
wal27 doctor
PyTorch wheels are platform-specific. If pip install -e . selects the wrong
wheel, install the correct CUDA build of PyTorch first, then repeat the command.
The CLI downloads the Hugging Face repository automatically:
wal27 inspect armanibadboy/WAL-Ternary-27B-RC1
wal27 inspect armanibadboy/WAL-Ternary-27B-RC1 --verify
--verify reads and hashes the complete 8.32 GB payload.
The canonical archive is compact and portable. Before inference, build a parent-attested SM90 compute cache:
wal27 prepare armanibadboy/WAL-Ternary-27B-RC1 \
--cache /data/wal27-rc1-sm90-cache
The derived cache is approximately 10.54 GB. It keeps ternary and binary codes packed, expands 24-bit scales to FP32 and sparse positions to the layout used by the current kernels, and is excluded from canonical BPW. A cache whose parent manifest does not match RC1 is rejected.
Correctness-oriented direct-packed mode:
wal27 generate armanibadboy/WAL-Ternary-27B-RC1 \
--cache /data/wal27-rc1-sm90-cache \
--mode exact \
--prompt "Explain ternary neural networks in simple terms." \
--max-new-tokens 128
Experimental faster arithmetic:
wal27 generate armanibadboy/WAL-Ternary-27B-RC1 \
--cache /data/wal27-rc1-sm90-cache \
--mode fast \
--prompt "Қазақстандағы жасанды интеллект туралы қысқаша жаз." \
--max-new-tokens 128
exact is the canonical quality backend. fast passed strong diagnostic
teacher-forced parity but has not completed the final preregistered generative
acceptance protocol.
src/wal27/ public codec, cache builder and CUDA runtime
docs/ concise format/runtime/parity reports
research/designs/ complete 27B design and result journal
research/experiments/ archival experiment implementations
research/lib/ shared public T3/WALB2 research code
reproduction/ machine-readable RC1 phase map
results/ immutable summary receipts
The archival research scripts intentionally preserve historical experiment
names and some machine-local default paths. The trilingual reproduction guides
explain how to adapt them and which gates must remain frozen. They document the
exact campaign; they are not the supported user CLI. Use wal27 for the
released model.
Negative results are retained in the research ledger instead of being erased.
Bonsai is an important trained low-bit reference and currently represents a stronger endpoint in quality, size, and runtime maturity. No Bonsai tensors were used. WAL explores a different regime: rapidly converting an existing BF16 checkpoint with limited calibration/fitting and exposing the entire process.
Do not compare vendor-reported and WAL scores as if they used one harness. A same-harness BF16/IQ2/Binary-Bonsai/Ternary-Bonsai comparison remains open.
cuda-fast is not yet the canonical quality evaluator.@software{aubakirov2026wal27,
author = {Arman Aubakirov},
title = {WAL-Ternary-27B: an open ultra-low-bit conversion and runtime laboratory},
year = {2026},
url = {https://github.com/AubakirovArman/WAL-Ternary-27B}
}
Apache License 2.0. See LICENSE and NOTICE. Users remain responsible for the source-model license, dataset licenses, and applicable law.