Text Generation
Transformers
Safetensors
English
moeloop
looptitan
mixture-of-experts
Mixture of Experts
custom_code
muon
conversational
Eval Results (legacy)
Instructions to use NaturalScale/LoopTitan-Base-1.3B-A0.2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NaturalScale/LoopTitan-Base-1.3B-A0.2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NaturalScale/LoopTitan-Base-1.3B-A0.2B", 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-Base-1.3B-A0.2B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NaturalScale/LoopTitan-Base-1.3B-A0.2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NaturalScale/LoopTitan-Base-1.3B-A0.2B" # 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-Base-1.3B-A0.2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NaturalScale/LoopTitan-Base-1.3B-A0.2B
- SGLang
How to use NaturalScale/LoopTitan-Base-1.3B-A0.2B 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-Base-1.3B-A0.2B" \ --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-Base-1.3B-A0.2B", "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-Base-1.3B-A0.2B" \ --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-Base-1.3B-A0.2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NaturalScale/LoopTitan-Base-1.3B-A0.2B with Docker Model Runner:
docker model run hf.co/NaturalScale/LoopTitan-Base-1.3B-A0.2B
Update the model card
Browse files
README.md
CHANGED
|
@@ -31,14 +31,14 @@ model-index:
|
|
| 31 |
value: 0.971959
|
| 32 |
source:
|
| 33 |
name: "LoopTitan Phase 1 results"
|
| 34 |
-
url: https://github.
|
| 35 |
---
|
| 36 |
|
| 37 |
<div class="hidden md:block"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light.svg" width="720" alt="MoE, 18 layers"><img class="not-prose hidden dark:block" src="assets/banner-dark.svg" width="720" alt="MoE, 18 layers"></p></div>
|
| 38 |
<div class="md:hidden"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light-narrow.svg" width="360" alt="MoE, 18 layers"><img class="not-prose hidden dark:block" src="assets/banner-dark-narrow.svg" width="360" alt="MoE, 18 layers"></p></div>
|
| 39 |
|
| 40 |
-
<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.
|
| 41 |
-
<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.
|
| 42 |
|
| 43 |
# LoopTitan-Base-1.3B-A0.2B
|
| 44 |
|
|
@@ -70,7 +70,7 @@ Matched budgets: all three within 5% of the standard MoE (Muon).
|
|
| 70 |
|
| 71 |
## Training
|
| 72 |
|
| 73 |
-
5.0B tokens of [mlfoundations/dclm-baseline-1.0-parquet](https://huggingface.co/datasets/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](https://github.com/datamllab/LoopTitan/issues/180)). The full protocol: [results page](https://github.
|
| 74 |
|
| 75 |
## Use
|
| 76 |
|
|
|
|
| 31 |
value: 0.971959
|
| 32 |
source:
|
| 33 |
name: "LoopTitan Phase 1 results"
|
| 34 |
+
url: https://datamllab.github.io/LoopTitan/docs/results/phase1/
|
| 35 |
---
|
| 36 |
|
| 37 |
<div class="hidden md:block"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light.svg" width="720" alt="MoE, 18 layers"><img class="not-prose hidden dark:block" src="assets/banner-dark.svg" width="720" alt="MoE, 18 layers"></p></div>
|
| 38 |
<div class="md:hidden"><p align="center"><img class="not-prose dark:hidden" src="assets/banner-light-narrow.svg" width="360" alt="MoE, 18 layers"><img class="not-prose hidden dark:block" src="assets/banner-dark-narrow.svg" width="360" alt="MoE, 18 layers"></p></div>
|
| 39 |
|
| 40 |
+
<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://datamllab.github.io/LoopTitan/docs/results/phase1/"><img class="not-prose inline-block" src="assets/capsule-results-light.svg" height="32" alt="Results"></a></p>
|
| 41 |
+
<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://datamllab.github.io/LoopTitan/docs/results/phase1/"><img class="not-prose inline-block" src="assets/capsule-results-dark.svg" height="32" alt="Results"></a></p>
|
| 42 |
|
| 43 |
# LoopTitan-Base-1.3B-A0.2B
|
| 44 |
|
|
|
|
| 70 |
|
| 71 |
## Training
|
| 72 |
|
| 73 |
+
5.0B tokens of [mlfoundations/dclm-baseline-1.0-parquet](https://huggingface.co/datasets/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](https://github.com/datamllab/LoopTitan/issues/180)). The full protocol: [results page](https://datamllab.github.io/LoopTitan/docs/results/phase1/). Configuration: [`recipes/shape/u-muon.json`](https://github.com/datamllab/LoopTitan/blob/main/recipes/shape/u-muon.json); run record: [#218](https://github.com/datamllab/LoopTitan/issues/218).
|
| 74 |
|
| 75 |
## Use
|
| 76 |
|