NextTransformer Fixed-Recursive

Isolate weight sharing, without routing or conditioning.

This is the final Fixed Recursive checkpoint in the NextTransformer 49.152B-token architecture comparison. It has 927,990,968 parameters and a 2,048-token context. The model was pretrained on ClimbMix for 46,875 updates. The 49B in the repository name refers to training tokens.

A shared-core control baseline. Every token traverses the same core twice, isolating the effect of parameter sharing and providing a control for the additional mechanisms used by adaptive looped models.

Final evaluation Result
Validation BPB 0.6757
CORE-22 (×100) 32.45

Architecture · Run record

A project control baseline, rather than a full reproduction of an individual Recursive Transformers paper.

The upstream run record reports completed training and the trainer's cumulative compute audit; its independent read-only audit remains pending.

Load the weights

Install the tested NextTransformer implementation and the safetensors reader in a Python 3.10–3.13 environment.

pip install "nexttransformer @ git+https://github.com/Interactive-Active-AI/NextTransformer.git@4977f447d9aeb510ecb2cf8a9e8a6812d78b5c69" safetensors

The example encodes a prompt with the checkpoint's tokenizer and prints its most likely next token.

import base64
import json
import os
from pathlib import Path

os.environ["CUDA_VISIBLE_DEVICES"] = ""  # This example runs on CPU.

import tiktoken
import torch
from huggingface_hub import snapshot_download
from safetensors.torch import load_file
from nexttransformer.models import build_model, config_from_dict

root = Path(snapshot_download("NextTransformer/Fixed-Recursive-49B-Tokens"))
config = config_from_dict(json.loads((root / "model_config.json").read_text()))
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())]))
Downloads last month

-

Downloads are not tracked for this model. How to track
Safetensors
Model size
0.9B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including NextTransformer/Fixed-Recursive-49B-Tokens