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-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-1.3B-A0.2B-Muon", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NaturalScale/LoopTitan-MoE18-Layout-1.3B-A0.2B-Muon
- SGLang
How to use NaturalScale/LoopTitan-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-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-MoE18-Layout-1.3B-A0.2B-Muon", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NaturalScale/LoopTitan-MoE18-Layout-1.3B-A0.2B-Muon with Docker Model Runner:
docker model run hf.co/NaturalScale/LoopTitan-MoE18-Layout-1.3B-A0.2B-Muon
Download config.json from NaturalScale/LoopTitan-MoE18-Layout-1.3B-A0.2B-Muon: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/NaturalScale/LoopTitan-MoE18-Layout-1.3B-A0.2B-Muon/resolve/main/config.json
- Command line
-
hf download hf://NaturalScale/LoopTitan-MoE18-Layout-1.3B-A0.2B-Muon/config.json
-
curl -L -o config.json https://huggingface.co/NaturalScale/LoopTitan-MoE18-Layout-1.3B-A0.2B-Muon/resolve/main/config.json
1.81 kB
| { | |
| "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": 44, | |
| "residual_scale": 1.0, | |
| "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": 12, | |
| "num_experts": 88, | |
| "num_heads": 12, | |
| "num_kv_heads": 1, | |
| "num_visits": 1, | |
| "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 | |
| } | |