Instructions to use unsloth/Trinity-Large-Preview-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/Trinity-Large-Preview-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/Trinity-Large-Preview-GGUF", dtype="auto") - llama-cpp-python
How to use unsloth/Trinity-Large-Preview-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="unsloth/Trinity-Large-Preview-GGUF", filename="BF16/Trinity-Large-Preview-BF16-00001-of-00017.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use unsloth/Trinity-Large-Preview-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
- LM Studio
- Jan
- Ollama
How to use unsloth/Trinity-Large-Preview-GGUF with Ollama:
ollama run hf.co/unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
- Unsloth Studio new
How to use unsloth/Trinity-Large-Preview-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Trinity-Large-Preview-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Trinity-Large-Preview-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Trinity-Large-Preview-GGUF to start chatting
- Pi new
How to use unsloth/Trinity-Large-Preview-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use unsloth/Trinity-Large-Preview-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Run Hermes
hermes
- Docker Model Runner
How to use unsloth/Trinity-Large-Preview-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/Trinity-Large-Preview-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Trinity-Large-Preview-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.Trinity-Large-Preview-GGUF-UD-Q4_K_XL
List all available models
lemonade list
Includes Unsloth chat template fixes!
Forllama.cpp, use--jinja
Unsloth Dynamic 2.0 achieves superior accuracy & outperforms other leading quants.
Trinity-Large-Preview
Introduction
Trinity-Large-Preview is a 398B-parameter sparse Mixture-of-Experts (MoE) model with approximately 13B active parameters per token. It is the largest model in Arcee AI's Trinity family, trained on more than 17 trillion tokens and delivering frontier-level performance with strong long-context comprehension. Trinity-Large-Preview is a lightly post-trained model based on Trinity-Large-Base.
Try it at chat.arcee.ai
More details on the training of Trinity Large are available in the technical report.
Model Variants
The Trinity Large family consists of three checkpoints from the same training run:
- Trinity-Large-Preview (this release): Lightly post-trained, chat-ready model undergoing active RL
- Trinity-Large-TrueBase: 10T-token pre-anneal pretraining checkpoint
- Trinity-Large-Base: Full 17T-token pretrained foundation model with mid-training anneals
Architecture
Trinity-Large-Preview uses a sparse MoE configuration designed to maximize efficiency while maintaining large-scale capacity.
| Hyperparameter | Value |
|---|---|
| Total parameters | ~398B |
| Active parameters per token | ~13B |
| Experts | 256 (1 shared) |
| Active experts | 4 |
| Routing strategy | 4-of-256 (1.56% sparsity) |
| Dense layers | 6 |
| Pretraining context length | 8,192 |
| Context length after extension | 512k |
| Architecture | Sparse MoE (AfmoeForCausalLM) |
Benchmarks
| Benchmark | Llama 4 Maverick | Trinity-Large Preview |
|---|---|---|
| MMLU | 85.5 | 87.2 |
| MMLU-Pro | 80.5 | 75.2 |
| GPQA-Diamond | 69.8 | 63.3 |
| AIME 2025 | 19.3 | 24.0 |
Training Configuration
Pretraining
- Training tokens: 17 trillion
- Data partner: Datology
Posttraining
- This checkpoint was instruction tuned on 20B tokens.
Infrastructure
- Hardware: 2,048 NVIDIA B300 GPUs
- Parallelism: HSDP + Expert Parallelism
- Compute partner: Prime Intellect
Usage
Running our model
Transformers
Use the main transformers branch or pass trust_remote_code=True with a released version.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "arcee-ai/Trinity-Large-Preview"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
messages = [
{"role": "user", "content": "Who are you?"},
]
input_ids = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
input_ids,
max_new_tokens=256,
do_sample=True,
temperature=0.8,
top_k=50,
top_p=0.8
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
VLLM
Supported in VLLM release 0.11.1+
vllm serve arcee-ai/Trinity-Large-Preview \
--dtype bfloat16 \
--enable-auto-tool-choice \
--tool-call-parser hermes
llama.cpp
Supported in llama.cpp release b7061+
llama-server -hf arcee-ai/Trinity-Large-Preview-GGUF:q4_k_m
LM Studio
Supported in the latest LM Studio runtime. Search for arcee-ai/Trinity-Large-Preview-GGUF in Model Search.
API
Available on OpenRouter:
curl -X POST "https://openrouter.ai/v1/chat/completions" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "arcee-ai/trinity-large-preview",
"messages": [
{
"role": "user",
"content": "What are some fun things to do in New York?"
}
]
}'
License
Trinity-Large-Preview is released under the Apache License, Version 2.0.
Citation
@misc{arcee_trinity_large_preview,
title = {Trinity-Large-Preview},
author = {{Arcee AI}},
year = {2026},
note = {398B sparse MoE model trained on 17T tokens}
}
- Downloads last month
- 195
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for unsloth/Trinity-Large-Preview-GGUF
Base model
arcee-ai/Trinity-Large-TrueBase