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
Download export_provenance.json from NaturalScale/LoopTitan-Base-1.3B-A0.2B: direct link, hf CLI and curl.
- Browser
- Download file 3.2 kB
-
https://huggingface.co/NaturalScale/LoopTitan-Base-1.3B-A0.2B/resolve/main/export_provenance.json
- Command line
-
hf download hf://NaturalScale/LoopTitan-Base-1.3B-A0.2B/export_provenance.json
-
curl -L -o export_provenance.json https://huggingface.co/NaturalScale/LoopTitan-Base-1.3B-A0.2B/resolve/main/export_provenance.json
3.2 kB
| { | |
| "artifact_sha256": { | |
| "LICENSE": "a0c4279f95ed7ca7a54c3477e4de0ab0dff2b58c09d42b0bacbff90d46f0d34f", | |
| "cache.py": "783309daf95ee202a3cf8fdff98c2b29dca63a8c9420a2765b2f13a752f57158", | |
| "chat_template.jinja": "a55ee1b1660128b7098723e0abcd92caa0788061051c62d51cbe87d9cf1974d8", | |
| "config.json": "58ea94c736dc8bc35d8c5afd70b6466fd85ccdb609fd6023e9b36fda0ebae105", | |
| "config.py": "90b82f090b6660531abc4162b83b447d65af3b607249a01c60164f1edded362d", | |
| "generation_config.json": "051acf146b4142eeb0b8a3b618dacd024c6ac49fca1278efb22411e9f80b7111", | |
| "hf.py": "4ad460cecd848b3fedb81f7677a393ce2e02c94a811afa0fc7f2b5198d9cc154", | |
| "latent.py": "dc9df417ef6258635ed6e881ba10311ae3533233c642173d072bac91ee33c14c", | |
| "memory.py": "841579b0be46e967d2026e70ce4423867af8d877d99e769f018b75517422af14", | |
| "model.py": "db156d725ac81aee86dd9a19fae45e6558bf377505181813c5e188f0bab04706", | |
| "model.safetensors": "6e0b48c95a687df15e8d45889b2a0afbbea580b8c7a4f776a8dc566ac7662571", | |
| "moe.py": "77176d615438087bdda4fc5f357ff0b12f4ae82b676afa92edf22727b500cd87", | |
| "tokenizer.json": "be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506", | |
| "tokenizer_config.json": "abf803ee0d500a6496ea7cbb82ca1d0fb3efbdd917f2389d01003f222fe1a98b" | |
| }, | |
| "checkpoint": { | |
| "format": "torch_model_only", | |
| "key_layout": "huggingface", | |
| "name": "looptitan-p1-moe18-muon.pt", | |
| "sha256": "6bb5675a9a96e7745a57ad14a2e439e87cba3446cd035373ec9fc261b9329a64", | |
| "weights": "model" | |
| }, | |
| "format": "moeloop-hf-export", | |
| "model_config": { | |
| "always_on_hidden_dim": 0, | |
| "attention_per_visit": false, | |
| "core": 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": 18, | |
| "num_experts": 58, | |
| "num_heads": 12, | |
| "num_kv_heads": 1, | |
| "num_visits": 1, | |
| "order": "stack", | |
| "prefix": null, | |
| "prefix_cells": 0, | |
| "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": 0, | |
| "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" | |
| } | |
| } | |