Downloads · 30 days
0
PeetPedro/quantal-ternary
quantal-ternary is a text generation model from PeetPedro. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mit.
A BitNet b1.58 ternary model — Qwen/Qwen2.5-0.5B, continued-trained on PeetPedro/ultrawhale-dogfood and quantized to {-1, 0, +1} weights. Exported as 168 ayeOS ternary matrices (24 layers × 7 tensors). Part of the vak…
Downloads · 30 days
0
Access
Public
Updated Oct 1, 2026
Repo size
3.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors989 MB · 61%
From the Hugging Face model README
A BitNet b1.58 ternary model — Qwen/Qwen2.5-0.5B, continued-trained on
PeetPedro/ultrawhale-dogfood and quantized to {-1, 0, +1} weights.
Exported as 168 ayeOS ternary matrices (24 layers × 7 tensors). Part of the
vaked constellation — the "cogito" that runs offline.
{n+-1-<△>} · 0+1 · the fine touch is quant
The {-1, 0, +1} quant is the honesty quant: the matrix returns the result, it does not judge. Prove it, don't assert it. This card is a verified record, not a claim — the checkpoint is byte-pinned below.
| property | value |
|---|---|
| base model | Qwen/Qwen2.5-0.5B |
| quantization | BitNet b1.58 (ternary, {-1,0,+1}) |
| ternary params | 357,826,560 (24 layers × 7 tensors) |
| resident size | ~106.6 MiB (codes 89.5 MB + scales 22.4 MB) |
| group size | 64 |
| layers | 24 |
| tensors/layer | 7 — mlp up/gate/down, attn o/q/k/v |
| GQA | 14 q-heads / 2 kv-heads, head_dim 64 |
| RoPE | theta 1e6 |
| RMSNorm | eps 1e-6 |
| activation | SiLU |
| context | 4096 (as base) |
PeetPedro/ultrawhale-dogfood (2,785 training samples)834dc60979d6c8b5a6941dcb724a9f1cb40663b0ca97dbcd6037a45e2dc30998Each mNNN.json is one ternary matrix:
{
"name": "model.layers.23.mlp.up_proj",
"dim": 4864, // output rows
"in_features": 896, // input cols
"group_size": 64,
"codes": [/* u32, N*K/16 — 16 two-bit codes per word, LSB-first */],
"scales": [/* f64, N*K/64 — one per group of 64 */],
"seed_hash": "quantal-trained"
}
Code→value: value = (code − 1) × scale — code 0 = −1, code 1 = 0, code 2 = +1.
Matmul (reference): dense, activations unquantized —
y[p] = Σ_k x[k] · (code[p,k] − 1) · scale[p, k/64]
index.json — capsule metadata (base_model, checkpoint sha256, loss/val,
group_size, per-matrix list)m000.json … m167.json — the 168 ternary matricesLoad in the MLX-QUANT fork (mlx with native ternary quantize):
# (the fork's ayeOS capsule loader)
import mlx.core as mx
# load index.json + matrices, decode codes → ternary weights, matmul as above
Native Rust inference lives in the constellation's ternary-lane
(8b-is-engine/crates/ternary) and the spherepop foundational layer
(taiko-01-protocol-demo — POP → REFUSE → BIND → TRANSFORM → VERIFY →
COLLAPSE). The offline "cogito" path: prompt → tokenizer → ternary forward →
answer, no network, gate-verified. The golden-logits gate passed against the
MLX reference (~1e-3, argmax identical); the trained-BitLinear forward (the
168 activation-RMSNorm) is the next follow-up.
attestal.proof.v1 — see attestal.ai
(proof-not-assertion){n+-1-<△>} · 0+1 · the fine touch is quant · by peterlodri-sec