NextTransformer MoE SimpleHC · d768, 240 TPP

Final pretrained checkpoint for the SimpleHC model on the NextTransformer d768-240tpp track. Training used 14,073,462,784 input tokens over 53,686 updates with a 4,096-token context. The model has 1,996,801,696 parameters and routes each token to 4 of 256 experts. TPP is measured against active non-embedding parameters.

Final evaluation Score
Six-source validation BPB, macro average 0.76459
MoE-CORE, 14 tasks 0.38208

Public architecture and training configuration · MoE protocol

Load the checkpoint

The FP32 safetensors shards contain all 184 trained tensors and persistent buffers (7,987,214,976 bytes of tensor data). The model uses the NextTransformer MoE implementation. Run the example from the root of the pinned public checkout.

git clone https://github.com/Interactive-Active-AI/NextTransformer.git
cd NextTransformer
git checkout e4fb048b70a53358ec918946a9ef3abcd99c2ce2
python -m pip install 'torch==2.9.1' safetensors huggingface_hub tokenizers
import json
from pathlib import Path

import torch
from huggingface_hub import snapshot_download
from safetensors.torch import load_file
from tokenizers import Tokenizer
from moe.model import MoEConfig, build_model

root = Path(snapshot_download("NextTransformer/MoE-SimpleHC-d768-240TPP"))
cfg = MoEConfig.from_serialized(json.loads((root / "model_config.json").read_text()))
model = build_model(cfg, device="cpu", initialize=False)
index = json.loads((root / "model.safetensors.index.json").read_text())
weights = {}
for shard in sorted(set(index["weight_map"].values())):
    weights.update(load_file(root / shard))
model.load_state_dict(weights, strict=True, assign=True)
model.eval()

tokenizer = Tokenizer.from_file(str(root / "tokenizer.json"))
ids = [cfg.document_token] + tokenizer.encode("The sky is", add_special_tokens=False).ids
with torch.inference_mode():
    logits = model(torch.tensor([ids]))
    next_id = logits[0, -1, :tokenizer.get_vocab_size()].argmax().item()
print(tokenizer.decode([next_id]))

The included tokenizer is the pinned Dolma 2 tokenizer.

Downloads last month

-

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

Dataset used to train NextTransformer/MoE-SimpleHC-d768-240TPP

Collection including NextTransformer/MoE-SimpleHC-d768-240TPP