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: 1,813 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 | {
"architectures": [
"MoeloopForCausalLM"
],
"auto_map": {
"AutoConfig": "hf.MoeloopConfig",
"AutoModelForCausalLM": "hf.MoeloopForCausalLM"
},
"bos_token_id": 151645,
"dtype": "float32",
"eos_token_id": 151645,
"hidden_size": 1056,
"labels_objective": "terminal_ce",
"max_position_embeddings": 4096,
"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
},
"model_type": "moeloop",
"num_attention_heads": 12,
"num_hidden_layers": 18,
"num_key_value_heads": 1,
"pad_token_id": 151645,
"tie_word_embeddings": false,
"transformers_version": "5.20.2",
"use_cache": true,
"vocab_size": 151669
}
|