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
File size: 3,341 Bytes
05eb9b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | {
"artifact_sha256": {
"LICENSE": "a0c4279f95ed7ca7a54c3477e4de0ab0dff2b58c09d42b0bacbff90d46f0d34f",
"cache.py": "783309daf95ee202a3cf8fdff98c2b29dca63a8c9420a2765b2f13a752f57158",
"chat_template.jinja": "a55ee1b1660128b7098723e0abcd92caa0788061051c62d51cbe87d9cf1974d8",
"config.json": "82938df077f7e9827e04e501ff656fe2a3957465785f1d316b4a9e784c707798",
"config.py": "90b82f090b6660531abc4162b83b447d65af3b607249a01c60164f1edded362d",
"generation_config.json": "051acf146b4142eeb0b8a3b618dacd024c6ac49fca1278efb22411e9f80b7111",
"hf.py": "4ad460cecd848b3fedb81f7677a393ce2e02c94a811afa0fc7f2b5198d9cc154",
"latent.py": "dc9df417ef6258635ed6e881ba10311ae3533233c642173d072bac91ee33c14c",
"memory.py": "841579b0be46e967d2026e70ce4423867af8d877d99e769f018b75517422af14",
"model.py": "db156d725ac81aee86dd9a19fae45e6558bf377505181813c5e188f0bab04706",
"model.safetensors": "4b59f04fdd0d10ac4463f4307e8dcae0544b12d5923d109d3a8dec8ed34f20a7",
"moe.py": "77176d615438087bdda4fc5f357ff0b12f4ae82b676afa92edf22727b500cd87",
"tokenizer.json": "be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506",
"tokenizer_config.json": "abf803ee0d500a6496ea7cbb82ca1d0fb3efbdd917f2389d01003f222fe1a98b"
},
"checkpoint": {
"format": "torch_model_only",
"key_layout": "huggingface",
"name": "looptitan-p1-loop6x2-muon.pt",
"sha256": "6188f199236e03f7d447d802fdca4e975c82c07863a2e2625ea329a94b6aaabe",
"weights": "model"
},
"format": "moeloop-hf-export",
"model_config": {
"always_on_hidden_dim": 0,
"attention_per_visit": false,
"core": {
"always_on_hidden_dim": null,
"hidden_dim": null,
"num_experts": null,
"residual_scale": 0.5,
"top_k": null
},
"dim": 1056,
"exit_distribution": false,
"hidden_dim": 384,
"init_std": 0.02,
"initial_state": "input",
"injection_decay": 1.0,
"injection_dt": 0.8047189562170501,
"injection_eps": 1e-06,
"injection_scale": 1.0,
"input_injection": "none",
"latent_init_std": 0.6324555320336759,
"latent_truncation": 3.0,
"lora_attention_rank": 0,
"lora_ffn_rank": 0,
"max_seq_len": 4096,
"memory_beta": 0.5,
"memory_scale": 0.5,
"norm_per_visit": false,
"num_cells": 6,
"num_experts": 88,
"num_heads": 12,
"num_kv_heads": 1,
"num_visits": 2,
"order": "stack",
"prefix": null,
"prefix_cells": 3,
"qk_norm": false,
"residual_scale": 1.0,
"rms_eps": 1e-06,
"rope_theta": 10000.0,
"router_per_visit": false,
"schema_version": 4,
"state_update": "residual",
"suffix": null,
"suffix_cells": 3,
"top_k": 8,
"visit_capacity": null,
"vocab_size": 151669
},
"tokenizer_source_files": {
"merges.txt": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5",
"special_tokens_map.json": "fcf9d46fd7374d49338e4a22c2b454eec94ca363744ff19611b1e33257ea6370",
"tokenizer.json": "a63080b4b30dc861fe1b0e420c53a241304dc81aff3d9bb315e6e33e2a1ab794",
"tokenizer_config.json": "e79b8ea9cc55f61ca0aa41ad9cd62102f806edb7f7e04edee9a496422ab0ce58",
"vocab.json": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"
},
"version": 1,
"versions": {
"torch": "2.14.0",
"transformers": "5.20.2"
}
}
|