xjxyys/dolma3_hq_300B_shuffled_clean
Viewer • Updated • 206M • 4.58k
Final pretrained checkpoint for the HC 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,482,464 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.76592 |
| MoE-CORE, 14 tasks | 0.38110 |
Public architecture and training configuration · MoE protocol
The FP32 safetensors shards contain all 240 trained tensors and persistent buffers (7,985,938,048 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-HC-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.