Downloads · 30 days
0
jaivial/dna-diskchat-2b-peer-v1
dna-diskchat-2b-peer-v1 is a machine learning model from jaivial. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
Ternary (BitNet b1.58) controller with a PEER product-key expert FFN in all 16 blocks, each block owning a private pool of 30,976 rank-1 experts (507.5M expert params total), on top of the DNA codon memory table (512…
Downloads · 30 days
0
Access
Public
Updated Jul 26, 2026
Repo size
16.9 GB
Likes
0
Public
Click a slice to open those files.
.pt11.3 GB · 100%
From the Hugging Face model README
Ternary (BitNet b1.58) controller with a PEER product-key expert FFN in all 16 blocks, each block owning a private pool of 30,976 rank-1 experts (507.5M expert params total), on top of the DNA codon memory table (512 MB, SSD-resident).
This is the v20 baseline. It is superseded by dna-diskchat-2b-peer-v21, which is 1.44x faster in training AND reaches lower CE per token by reorganising the same 507.5M expert parameters into ONE shared pool read by 3 layers (per Memory Layers at Scale, arXiv:2412.09764).
| v20 (this model) | v21 (successor) | |
|---|---|---|
| PEER layers / pools | 16 / 16 private | 3 / 1 shared |
| Experts per PEER layer | 30,976 | 495,616 (16x) |
| Expert params | 507.5M | 507.5M (identical) |
| Controller params | 569.4M | 598.1M |
| Gathers per token | 16 | 3 |
| Avg training throughput | 22,566 tok/s | 32,488 tok/s |
| Tokens trained | 1.553B | 1.162B |
| Mean valid CE @ matched 572-1145M tokens | 4.1665 | 4.0213 |
16 recurrent ternary blocks (chunk-parallel gated linear recurrence, BitNet b1.58 STE)
every block: PEER FFN -> its OWN pool of 176^2 = 30,976 rank-1 experts
codon memory table: 2048 x 2048 = 4.19M rows, 128 B/row (512 MB on SSD, 256 B/token)
routing: product-key, h*k = 8 active experts per layer
Placing a private expert pool in every block costs 16 expert gathers per token to buy capacity that 3 gathers can buy. Memory layers are memory-bandwidth bound, not FLOP bound, so the gathers dominate. See the v21 analysis for the full measured breakdown.
checkpoints/ckpt_*.pt - {'model': state_dict, 'config': ...}. The architecture code
is scripts/model_dna_peer.py + scripts/model_dna.py; tokenizer is tokenizer.json.