Text Generation
Transformers
Safetensors
English
moeloop
looptitan
mixture-of-experts
Mixture of Experts
looped-moe
looped-transformer
looped-language-model
recurrent-depth
weight-sharing
custom_code
adamw
conversational
Eval Results (legacy)
Instructions to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW", 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-Looped-1.3B-A0.2B-AdamW", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW" # 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-Looped-1.3B-A0.2B-AdamW", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW
- SGLang
How to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW 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-Looped-1.3B-A0.2B-AdamW" \ --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-Looped-1.3B-A0.2B-AdamW", "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-Looped-1.3B-A0.2B-AdamW" \ --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-Looped-1.3B-A0.2B-AdamW", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW with Docker Model Runner:
docker model run hf.co/NaturalScale/LoopTitan-Looped-1.3B-A0.2B-AdamW
Update the model card
Browse files
README.md
CHANGED
|
@@ -2,10 +2,17 @@
|
|
| 2 |
license: mit
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- "looptitan"
|
| 7 |
- "mixture-of-experts"
|
|
|
|
| 8 |
- "looped-moe"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- "custom_code"
|
| 10 |
- "adamw"
|
| 11 |
datasets:
|
|
@@ -15,9 +22,11 @@ model-index:
|
|
| 15 |
results:
|
| 16 |
- task:
|
| 17 |
type: text-generation
|
|
|
|
| 18 |
dataset:
|
| 19 |
-
name: "mlfoundations/dclm-baseline-1.0-parquet"
|
| 20 |
type: "mlfoundations/dclm-baseline-1.0-parquet"
|
|
|
|
| 21 |
metrics:
|
| 22 |
- name: Test BPB
|
| 23 |
type: bpb
|
|
@@ -25,10 +34,13 @@ model-index:
|
|
| 25 |
- name: Validation BPB
|
| 26 |
type: bpb
|
| 27 |
value: 0.992211
|
|
|
|
|
|
|
|
|
|
| 28 |
---
|
| 29 |
|
| 30 |
-
<div class="hidden md:block"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light.svg" width="720" alt="12 layers stored, 18 run"><img class="not-prose hidden dark:block" src="assets/banner-dark.svg" width="720" alt="12 layers stored, 18 run"></p></div>
|
| 31 |
-
<div class="md:hidden"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light-narrow.svg" width="360" alt="12 layers stored, 18 run"><img class="not-prose hidden dark:block" src="assets/banner-dark-narrow.svg" width="360" alt="12 layers stored, 18 run"></p></div>
|
| 32 |
|
| 33 |
<p align="center" class="not-prose dark:hidden" style="margin:1.5em 0"><a href="https://datamllab.github.io/LoopTitan/"><img class="not-prose inline-block" src="assets/capsule-homepage-light.svg" height="32" alt="Homepage"></a><a href="https://github.com/datamllab/LoopTitan"><img class="not-prose inline-block" src="assets/capsule-code-light.svg" height="32" alt="Code"></a><a href="https://datamllab.github.io/LoopTitan/docs/"><img class="not-prose inline-block" src="assets/capsule-docs-light.svg" height="32" alt="Documentation"></a><a href="https://huggingface.co/collections/NaturalScale/looptitan-phase-1-6afb1e0dbc400210b5b0a5eb"><img class="not-prose inline-block" src="assets/capsule-models-light.svg" height="32" alt="Models"></a><a href="https://arxiv.org/abs/2611.34821"><img class="not-prose inline-block" src="assets/capsule-paper-light.svg" height="32" alt="Paper"></a><a href="https://github.com/datamllab/LoopTitan/blob/main/docs/results/phase1.md"><img class="not-prose inline-block" src="assets/capsule-results-light.svg" height="32" alt="Results"></a></p>
|
| 34 |
<p align="center" class="not-prose hidden dark:block" style="margin:1.5em 0"><a href="https://datamllab.github.io/LoopTitan/"><img class="not-prose inline-block" src="assets/capsule-homepage-dark.svg" height="32" alt="Homepage"></a><a href="https://github.com/datamllab/LoopTitan"><img class="not-prose inline-block" src="assets/capsule-code-dark.svg" height="32" alt="Code"></a><a href="https://datamllab.github.io/LoopTitan/docs/"><img class="not-prose inline-block" src="assets/capsule-docs-dark.svg" height="32" alt="Documentation"></a><a href="https://huggingface.co/collections/NaturalScale/looptitan-phase-1-6afb1e0dbc400210b5b0a5eb"><img class="not-prose inline-block" src="assets/capsule-models-dark.svg" height="32" alt="Models"></a><a href="https://arxiv.org/abs/2611.34821"><img class="not-prose inline-block" src="assets/capsule-paper-dark.svg" height="32" alt="Paper"></a><a href="https://github.com/datamllab/LoopTitan/blob/main/docs/results/phase1.md"><img class="not-prose inline-block" src="assets/capsule-results-dark.svg" height="32" alt="Results"></a></p>
|
|
@@ -37,7 +49,9 @@ model-index:
|
|
| 37 |
|
| 38 |
**AdamW** 路 LoopTitan Phase 1 路 design 6 of 8, each trained with AdamW and with Muon
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
| 41 |
|
| 42 |
1.31B parameters stored without embeddings, 1.64B with the input embedding and output head (the count Hugging Face shows), 0.22B active per token, each visit of the looped layers counted.
|
| 43 |
|
|
|
|
| 2 |
license: mit
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
tags:
|
| 8 |
- "looptitan"
|
| 9 |
- "mixture-of-experts"
|
| 10 |
+
- "moe"
|
| 11 |
- "looped-moe"
|
| 12 |
+
- "looped-transformer"
|
| 13 |
+
- "looped-language-model"
|
| 14 |
+
- "recurrent-depth"
|
| 15 |
+
- "weight-sharing"
|
| 16 |
- "custom_code"
|
| 17 |
- "adamw"
|
| 18 |
datasets:
|
|
|
|
| 22 |
results:
|
| 23 |
- task:
|
| 24 |
type: text-generation
|
| 25 |
+
name: Language modeling
|
| 26 |
dataset:
|
| 27 |
+
name: "mlfoundations/dclm-baseline-1.0-parquet (held-out splits)"
|
| 28 |
type: "mlfoundations/dclm-baseline-1.0-parquet"
|
| 29 |
+
revision: "817d6752765f6a41261085171dd546b104f60626"
|
| 30 |
metrics:
|
| 31 |
- name: Test BPB
|
| 32 |
type: bpb
|
|
|
|
| 34 |
- name: Validation BPB
|
| 35 |
type: bpb
|
| 36 |
value: 0.992211
|
| 37 |
+
source:
|
| 38 |
+
name: "LoopTitan Phase 1 results"
|
| 39 |
+
url: https://github.com/datamllab/LoopTitan/blob/main/docs/results/phase1.md
|
| 40 |
---
|
| 41 |
|
| 42 |
+
<div class="hidden md:block"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light.svg" width="720" alt="Looped MoE, 12 layers stored, 18 run"><img class="not-prose hidden dark:block" src="assets/banner-dark.svg" width="720" alt="Looped MoE, 12 layers stored, 18 run"></p></div>
|
| 43 |
+
<div class="md:hidden"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light-narrow.svg" width="360" alt="Looped MoE, 12 layers stored, 18 run"><img class="not-prose hidden dark:block" src="assets/banner-dark-narrow.svg" width="360" alt="Looped MoE, 12 layers stored, 18 run"></p></div>
|
| 44 |
|
| 45 |
<p align="center" class="not-prose dark:hidden" style="margin:1.5em 0"><a href="https://datamllab.github.io/LoopTitan/"><img class="not-prose inline-block" src="assets/capsule-homepage-light.svg" height="32" alt="Homepage"></a><a href="https://github.com/datamllab/LoopTitan"><img class="not-prose inline-block" src="assets/capsule-code-light.svg" height="32" alt="Code"></a><a href="https://datamllab.github.io/LoopTitan/docs/"><img class="not-prose inline-block" src="assets/capsule-docs-light.svg" height="32" alt="Documentation"></a><a href="https://huggingface.co/collections/NaturalScale/looptitan-phase-1-6afb1e0dbc400210b5b0a5eb"><img class="not-prose inline-block" src="assets/capsule-models-light.svg" height="32" alt="Models"></a><a href="https://arxiv.org/abs/2611.34821"><img class="not-prose inline-block" src="assets/capsule-paper-light.svg" height="32" alt="Paper"></a><a href="https://github.com/datamllab/LoopTitan/blob/main/docs/results/phase1.md"><img class="not-prose inline-block" src="assets/capsule-results-light.svg" height="32" alt="Results"></a></p>
|
| 46 |
<p align="center" class="not-prose hidden dark:block" style="margin:1.5em 0"><a href="https://datamllab.github.io/LoopTitan/"><img class="not-prose inline-block" src="assets/capsule-homepage-dark.svg" height="32" alt="Homepage"></a><a href="https://github.com/datamllab/LoopTitan"><img class="not-prose inline-block" src="assets/capsule-code-dark.svg" height="32" alt="Code"></a><a href="https://datamllab.github.io/LoopTitan/docs/"><img class="not-prose inline-block" src="assets/capsule-docs-dark.svg" height="32" alt="Documentation"></a><a href="https://huggingface.co/collections/NaturalScale/looptitan-phase-1-6afb1e0dbc400210b5b0a5eb"><img class="not-prose inline-block" src="assets/capsule-models-dark.svg" height="32" alt="Models"></a><a href="https://arxiv.org/abs/2611.34821"><img class="not-prose inline-block" src="assets/capsule-paper-dark.svg" height="32" alt="Paper"></a><a href="https://github.com/datamllab/LoopTitan/blob/main/docs/results/phase1.md"><img class="not-prose inline-block" src="assets/capsule-results-dark.svg" height="32" alt="Results"></a></p>
|
|
|
|
| 49 |
|
| 50 |
**AdamW** 路 LoopTitan Phase 1 路 design 6 of 8, each trained with AdamW and with Muon
|
| 51 |
|
| 52 |
+
A looped mixture-of-experts (MoE) language model with 1.3B non-embedding parameters and 0.2B active per token, trained from scratch on 5.0B tokens of DCLM with AdamW for the paper [LoopTitan: What Does Parameter Revisit Buy a Mixture-of-Experts?](https://arxiv.org/abs/2611.34821). A base model, not instruction tuned.
|
| 53 |
+
|
| 54 |
+
Chain-end loop: 12 layers at width 1056, 88 experts per layer, expert hidden size 384; the middle 6 looped twice, residual 脳0.5; every part shared across visits. In the paper: looped MoE.
|
| 55 |
|
| 56 |
1.31B parameters stored without embeddings, 1.64B with the input embedding and output head (the count Hugging Face shows), 0.22B active per token, each visit of the looped layers counted.
|
| 57 |
|