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 release_provenance.json from NaturalScale/LoopTitan-Base-1.3B-A0.2B: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/NaturalScale/LoopTitan-Base-1.3B-A0.2B/resolve/main/release_provenance.json
- Command line
-
hf download hf://NaturalScale/LoopTitan-Base-1.3B-A0.2B/release_provenance.json
-
curl -L -o release_provenance.json https://huggingface.co/NaturalScale/LoopTitan-Base-1.3B-A0.2B/resolve/main/release_provenance.json
1.31 kB
| { | |
| "conversion": "Original HF tensors serialized as a model-only torch bridge, strictly loaded and saved by the unchanged release export_checkpoint.", | |
| "driver_sha256": "3238da706a44295ebdc8f4024de6e68d9c95e52e3450829acab1cecba7c7ce52", | |
| "format": "looptitan-hf-repackage", | |
| "original_checkpoint_metadata": { | |
| "format": "dcp", | |
| "key_layout": "native_grouped", | |
| "metadata_sha256": "4724ba24315884285e0efb500c76a050c8b64b8a076da2bc6a9babe91e677a1d", | |
| "name": "step-4769", | |
| "weights": "model" | |
| }, | |
| "original_export_code_commit": "66d207bf87ebfba76e78c5a42327999c7c4f7092", | |
| "original_export_provenance_sha256": "13cd5ad5a5bb7cb00ed3094531f3aecb88506d8a613e798c5bac2871726119ee", | |
| "original_mlflow_run_id": "0d62628dcef645b185a75443dcbf29ae", | |
| "original_training_code_commit": "66d207bf87ebfba76e78c5a42327999c7c4f7092", | |
| "original_weight_sha256": { | |
| "model.safetensors": "6e0b48c95a687df15e8d45889b2a0afbbea580b8c7a4f776a8dc566ac7662571" | |
| }, | |
| "recipe": "recipes/shape/u-muon.json", | |
| "release_commit": "49e0148bc2703af29d3abace9ee6ca8b69f5a5d6", | |
| "release_repository": "https://github.com/datamllab/LoopTitan", | |
| "version": 1, | |
| "weight_bits_unchanged": true, | |
| "weight_source": "Existing HF export from the original training run; no DCP checkpoint was read for this repackaging." | |
| } | |