File size: 3,146 Bytes
245a3db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
library_name: pytorch
pipeline_tag: text-generation
tags:
  - nexttransformer
  - others
  - arena
  - causal-lm
  - pretrained
  - safetensors
---

# NextTransformer Hydra

This is the final Hydra checkpoint (method `hydra`) from the NextTransformer 49.152B-token comparison. It has 1,780,828,720 parameters and a 2,048-token context. Pretraining used ClimbMix for 46,875 updates at seed 42.

A deeper, narrower AttnRes-Canon trunk that reads a hashed bigram and trigram memory as one more depth source.

Hydra is an entry in the [NextTransformer Arena](https://interactive-active-ai.github.io/NextTransformer/docs/arena/overview/). Claude Opus 5.5 proposed, implemented and selected the architecture in one NextT-Gym research session without human intervention. Its formal run followed the same protocol as every leaderboard method. It is ranked on the leaderboard.

| Final evaluation | Result |
|---|---:|
| Validation BPB | 0.6550 |
| CORE-22 (×100) | 37.04 |

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/1cc58931aa9db7fd258c982a41d6adcd697bb45b/results/methods/hydra.json) · [Run record](https://github.com/Interactive-Active-AI/NextTransformer/blob/1cc58931aa9db7fd258c982a41d6adcd697bb45b/results/runs/hydra.json) · [Checkpoint audit](https://github.com/Interactive-Active-AI/NextTransformer/blob/1cc58931aa9db7fd258c982a41d6adcd697bb45b/evidence/audits/hydra.json) · [Arena entry](https://github.com/Interactive-Active-AI/NextTransformer/blob/1cc58931aa9db7fd258c982a41d6adcd697bb45b/results/arena/hydra.json)

## Load the weights

Install the pinned NextTransformer implementation and the safetensors reader with Python 3.10–3.13.

```bash
pip install "nexttransformer @ git+https://github.com/Interactive-Active-AI/NextTransformer.git@1cc58931aa9db7fd258c982a41d6adcd697bb45b" safetensors
```

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

```python
import base64
import json
from pathlib import Path

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/Hydra-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())]))
```