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
muon
conversational
Eval Results (legacy)
Instructions to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-Muon 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-Muon 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-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-Looped-1.3B-A0.2B-Muon", 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-Muon 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-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-Looped-1.3B-A0.2B-Muon", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NaturalScale/LoopTitan-Looped-1.3B-A0.2B-Muon
- SGLang
How to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-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-Looped-1.3B-A0.2B-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-Looped-1.3B-A0.2B-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-Looped-1.3B-A0.2B-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-Looped-1.3B-A0.2B-Muon", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NaturalScale/LoopTitan-Looped-1.3B-A0.2B-Muon with Docker Model Runner:
docker model run hf.co/NaturalScale/LoopTitan-Looped-1.3B-A0.2B-Muon
Model card: capsule row on one line (preview)
Browse files
README.md
CHANGED
|
@@ -30,8 +30,8 @@ model-index:
|
|
| 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="dark:hidden"><img class="not-prose inline-block" src="assets/capsule-homepage-light.svg" height="32" alt="Homepage"><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://github.com/datamllab/LoopTitan/tree/main/docs"><img class="not-prose inline-block" src="assets/capsule-docs-light.svg" height="32" alt="Documentation"></a><img class="not-prose inline-block" src="assets/capsule-models-light.svg" height="32" alt="Models"><img class="not-prose inline-block" src="assets/capsule-paper-light.svg" height="32" alt="Paper"><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="hidden dark:block"><img class="not-prose inline-block" src="assets/capsule-homepage-dark.svg" height="32" alt="Homepage"><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://github.com/datamllab/LoopTitan/tree/main/docs"><img class="not-prose inline-block" src="assets/capsule-docs-dark.svg" height="32" alt="Documentation"></a><img class="not-prose inline-block" src="assets/capsule-models-dark.svg" height="32" alt="Models"><img class="not-prose inline-block" src="assets/capsule-paper-dark.svg" height="32" alt="Paper"><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>
|
| 35 |
|
| 36 |
# Looped MoE: the middle 6 layers run twice
|
| 37 |
|
|
|
|
| 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"><img class="not-prose inline-block" src="assets/capsule-homepage-light.svg" height="32" alt="Homepage"><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://github.com/datamllab/LoopTitan/tree/main/docs"><img class="not-prose inline-block" src="assets/capsule-docs-light.svg" height="32" alt="Documentation"></a><img class="not-prose inline-block" src="assets/capsule-models-light.svg" height="32" alt="Models"><img class="not-prose inline-block" src="assets/capsule-paper-light.svg" height="32" alt="Paper"><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"><img class="not-prose inline-block" src="assets/capsule-homepage-dark.svg" height="32" alt="Homepage"><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://github.com/datamllab/LoopTitan/tree/main/docs"><img class="not-prose inline-block" src="assets/capsule-docs-dark.svg" height="32" alt="Documentation"></a><img class="not-prose inline-block" src="assets/capsule-models-dark.svg" height="32" alt="Models"><img class="not-prose inline-block" src="assets/capsule-paper-dark.svg" height="32" alt="Paper"><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>
|
| 35 |
|
| 36 |
# Looped MoE: the middle 6 layers run twice
|
| 37 |
|