Release final DeltaNet checkpoint trained on 49.152B tokens
Browse filesFiles changed (4)
- README.mdAdded+72
- model.safetensorsAdded+3
- model_config.jsonAdded+40
- tokenizer.tiktoken.jsonAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172---library_name: pytorchpipeline_tag: text-generationtags: - nexttransformer - linear-attention - causal-lm - pretrained - safetensors---
# NextTransformer DeltaNet
This is the final DeltaNet checkpoint from run `A01_deltanet` in the NextTransformer 49.152B-token comparison. It has 1,463,690,268 parameters and a 2,048-token context. Pretraining used ClimbMix for 46,875 updates at seed 42.
Each head uses a short causal convolution to process its queries, keys and values. The current key retrieves a prediction from the recurrent state. A learned write strength controls the update using the difference between the observed and predicted value.
| Final evaluation | Result ||---|---:|| Validation BPB | 0.6760 || CORE-22 (×100) | 28.34 |
Validation BPB was measured on 20,971,520 tokens in a separate evaluation of the final checkpoint. CORE-22 is the mean of the 22 centered task scores.
[Architecture](https://github.com/Interactive-Active-AI/NextTransformer/blob/b2ea46627f7d0d5c9ef57a655c43b553558417d3/results/methods/deltanet.json) · [Run record](https://github.com/Interactive-Active-AI/NextTransformer/blob/b2ea46627f7d0d5c9ef57a655c43b553558417d3/results/runs/deltanet.json) · [Checkpoint audit](https://github.com/Interactive-Active-AI/NextTransformer/blob/b2ea46627f7d0d5c9ef57a655c43b553558417d3/evidence/audits/deltanet.json)
## Load the weights
Install the pinned NextTransformer implementation and the safetensors reader with Python 3.10–3.13.
```bashpip install "nexttransformer @ git+https://github.com/Interactive-Active-AI/NextTransformer.git@b2ea46627f7d0d5c9ef57a655c43b553558417d3" safetensors```
The example uses the PyTorch reference recurrence on CPU. The saved model configuration records the fused recurrence used in training.
```pythonimport base64import jsonimport osfrom pathlib import Path
os.environ["CUDA_VISIBLE_DEVICES"] = ""
import tiktokenimport torchfrom huggingface_hub import snapshot_downloadfrom safetensors.torch import load_file
root = Path(snapshot_download("NextTransformer/DeltaNet-49B-Tokens"))
from nexttransformer.models import build_model, config_from_dict
raw = json.loads((root / "model_config.json").read_text())config = config_from_dict({**raw, "backend": "reference"})model = build_model(config, device="cpu")model.load_state_dict(load_file(root / "model.safetensors"), strict=True)model.set_step(46875)model.eval()
spec = json.loads((root / "tokenizer.tiktoken.json").read_text())encoding = tiktoken.Encoding( name=spec["name"], pat_str=spec["pat_str"], mergeable_ranks={base64.b64decode(b): rank for b, rank in spec["mergeable_ranks"]}, special_tokens=spec["special_tokens"],)prompt = [encoding.encode_single_token("<|bos|>")] + encoding.encode_ordinary("The sky is")with torch.inference_mode(): logits = model(torch.tensor([prompt]))print(encoding.decode([int(logits[0, -1].argmax())]))```123version https://git-lfs.github.com/spec/v1oid sha256:1d6f40d53b945c346840344d1cbe2c7cbb9b429330b9d0b769865dd20025f0b2size 444550849612345678910111213141516171819202122232425262728293031323334353637383940{ "method": "deltanet", "width": 1536, "heads": 12, "vocab_size": 32768, "sequence_len": 2048, "mlp_width": 6144, "layers": 25, "pre_layers": 3, "core_layers": 9, "post_layers": 3, "loops": 2, "window_pattern": "SSSL", "max_loops": 3, "act_epsilon": 0.01, "ponder_weight": 0.01, "huginn_mean": 3.0, "huginn_sigma": 0.5, "huginn_backprop_loops": 2, "routing_seed": 1729, "eval_loops": 3, "ouro_entropy_weight": 0.1, "ouro_gate_steps": 1024, "ouro_exit_quantile": 0.5, "sparse_topk": 256, "block_size": 128, "compression_size": 4, "local_window": 512, "index_heads": 4, "index_dim": 128, "index_rope_dim": 64, "index_loss_weight": 1.0, "burnin_steps": 512, "slots": 64, "gate_rank": 16, "conv_size": 4, "reference_chunk": 32, "backend": "fla_fused", "scale": "formal"}README.mdAdded+72
model.safetensorsAdded+3
model_config.jsonAdded+40
tokenizer.tiktoken.jsonAdded