Views
No views yet
| Parameter | Value |
|---|---|
| Layers | 12 Transformer blocks |
| d_model | 768 |
| Attention heads | 12 |
| Vocab size | 30,004 (30k spatial H3 sub-hashes + PAD/BOS/EOS/MASK) |
| Max sequence length | 512 tokens |
| Parameters | 132.8 M |
| Attention | Flash Attention (is_causal=True) |
| Metric | Value |
|---|---|
| Training steps | 300,000 |
| AR perplexity: initial → final | 34,754 → 2.1 |
| Final combined loss | 0.963 |
| Hardware | 1 × NVIDIA H100-SXM 80 GB (preemptible) |
| Wall time | ~12 h 43 min |
| Cost | ~$28 |
backbone.py and config.json from this repo alongside the checkpoint, then:1import json
2import sys
3import torch
4
5sys.path.insert(0, ".") # backbone.py must be in the working directory
6from backbone import TrajectoryBackbone
7
8with open("config.json") as f:
9 cfg = json.load(f)["tokenizer"]
10
11model = TrajectoryBackbone(
12 vocab_size=cfg["vocab_size"],
13 d_model=cfg["d_model"],
14 n_layers=cfg["n_layers"],
15 n_heads=cfg["n_heads"],
16 max_seq_len=cfg["max_seq_len"],
17)
18
19ckpt = torch.load("ckpt_final.pt", map_location="cpu", weights_only=True)
20model.load_state_dict(ckpt["model"])
21model.eval()