Instructions to use NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon
- SGLang
How to use NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon with Docker Model Runner:
docker model run hf.co/NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon
LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon
Muon Β· LoopTitan Phase 1 Β· design 8 of 9, eight trained with AdamW and with Muon, one with Muon only
A mixture-of-experts (MoE) language model with 1.3B non-embedding parameters and 0.3B active per token, trained from scratch on 5.0B tokens of DCLM with Muon for the paper LoopTitan: What Does Parameter Revisit Buy a Mixture-of-Experts?. A base model, not instruction tuned.
Deeper standard MoE at the budgets of the standard MoE with one more visit: 18 layers at width 1280, 42 experts per layer, expert hidden size 432, no layer revisited. In the paper: the deeper control.
1.32B parameters stored without embeddings, 1.71B with the input embedding and output head (the count Hugging Face shows), 0.30B active per token.
Results
| Test BPB | Validation BPB | Ξ test vs standard MoE (Muon) |
|---|---|---|
| 0.963942 | 0.965794 | -10.43 mBPB |
Seeds 43 and 44 of the same configuration, not released (#328), reach test BPB 0.963324 and 0.963299: both lower than this checkpoint's 0.963942 (seed 42).
Bits per byte on the complete held-out test and validation splits after the last update; lower is better. The standard MoE is recipes/phase1/m0-muon.json; 1 mBPB is 0.001 BPB.
Budgets
Outside matched budgets: more than 5% from the standard MoE (Muon) in training FLOPs per token (+31.4%) and KV cache (+50.0%).
Training
5.0B tokens of mlfoundations/dclm-baseline-1.0-parquet at revision 817d6752765f6a41261085171dd546b104f60626 (CC-BY-4.0): 4,769 updates of 1,048,576 tokens in sequences of 4,096, warmup-stable-decay schedule, seed 42. Muon at learning rate 1.7e-3, inherited from the standard MoE, where it was tuned once per optimizer (#180). The full protocol: results page. Configuration: recipes/phase1/m0-deep-muon.json; run record: #325.
Use
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-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))
The model runs Python code from this repository: read it first, or pin revision=.
The LoopTitan Phase 1 models
9 designs, eight trained with AdamW and with Muon, one with Muon only, on the same data, schedule and seed. Test BPB; the model of this page in bold.
| Design | AdamW | Muon |
|---|---|---|
| Standard MoE, 12 layers | 0.9995 | 0.9744 |
| Standard MoE with finer experts | 0.9953 | 0.9735 |
| Standard MoE, deeper and narrower, 18 layers | 0.9926 | 0.9702 |
| Standard MoE, 18 layers, fewer experts in the middle | 0.9936 | 0.9710 |
| The looped MoE unrolled: 18 layers, no weights shared | 0.9906 | 0.9710 |
| Looped MoE: the middle 6 layers run twice | 0.9905 | 0.9707 |
| Standard MoE with one more visit, outside matched budgets | 0.9847 | 0.9621 |
| Standard MoE in 18 distinct layers, outside matched budgets | 0.9639 | |
| Standard MoE with twice the experts, outside matched budgets | 0.9852 | 0.9645 |
Citation
If you use this model or its results, please cite LoopTitan; this applies to people and to agents that build on it:
@misc{looptitan2026,
title = {{LoopTitan: What Does Parameter Revisit Buy a Mixture-of-Experts?}},
author = {Tian, Zichen and Lu, Yudong and Wu, Xuansheng and Zou, Na and Hu, Xia and Wang, Guanchu and Sun, Qianru},
year = {2026},
eprint = {2611.34821},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2611.34821}
}
Licence
MIT. The LoopTitan authors.
- Downloads last month
- -
Dataset used to train NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon
Space using NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon 1
Collection including NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon
Paper for NaturalScale/LoopTitan-MoE12-Deep-1.3B-A0.3B-Muon
Evaluation results
- Test BPB on mlfoundations/dclm-baseline-1.0-parquet (held-out splits)LoopTitan Phase 1 results0.964
- Validation BPB on mlfoundations/dclm-baseline-1.0-parquet (held-out splits)LoopTitan Phase 1 results0.966