LoopTitan-MoE12-2xExperts
a base MoE model with twice the experts
2 min readupdated
A new language model from NaturalScale, trained from scratch as part of the LoopTitan project. It uses a standard MoE (Mixture of Experts, an approach that activates only specific parts of the network for each token) architecture with double the expert count: 12 layers and 128 experts per layer. The model totals 2.98B parameters, but only 0.20B parameters are active per token. Trained with the Muon optimizer, it is built for further research and architectural experiments.
Key features
- MoE architecture: 12 layers with a width of 1280 and 128 experts per layer.
- Parameters: 2.59B excluding embeddings and 2.98B total, with 0.20B active per token.
- Muon optimizer: trained using the Muon optimizer on the dclm-baseline dataset.
- Base model: trained from scratch as a language model without additional instruction tuning.
What you can do
- Pipeline integration: run the model in Python using the standard transformers library.
- Architecture research: study how Mixture of Experts models behave when trained with the Muon optimizer.
- Text generation: run base text generation via autoregressive decoding.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "NaturalScale/LoopTitan-MoE12-2xExperts-2.6B-A0.2B-Muon"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True).eval()
ids = torch.tensor([[tokenizer.bos_token_id] + tokenizer.encode("The model", add_special_tokens=False)])
out = model.generate(ids, attention_mask=torch.ones_like(ids), max_new_tokens=32, do_sample=False)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Read more
DetailsBenchmarks: Test BPB 0.964525, Validation BPB 0.966379 (bits per byte, lower is better).
Training: 5B tokens on the dclm-baseline-1.0-parquet dataset using a warmup-stable-decay schedule.
Limitations: the model executes remote code from the repository; review the code before running or pin a specific revision.










Comments