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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- es
|
| 6 |
+
- fr
|
| 7 |
+
- de
|
| 8 |
+
- it
|
| 9 |
+
- pt
|
| 10 |
+
- ru
|
| 11 |
+
- ar
|
| 12 |
+
- hi
|
| 13 |
+
- ko
|
| 14 |
+
- zh
|
| 15 |
+
library_name: transformers
|
| 16 |
+
base_model:
|
| 17 |
+
- arcee-ai/Trinity-Large-Preview
|
| 18 |
+
base_model_relation: quantized
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
<!-- markdownlint-disable first-line-h1 -->
|
| 22 |
+
<!-- markdownlint-disable html -->
|
| 23 |
+
<!-- markdownlint-disable no-duplicate-header -->
|
| 24 |
+
|
| 25 |
+
<div align="center">
|
| 26 |
+
<picture>
|
| 27 |
+
<img
|
| 28 |
+
src="https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/i-v1KyAMOW_mgVGeic9WJ.png"
|
| 29 |
+
alt="Arcee Trinity Large"
|
| 30 |
+
style="max-width: 100%; height: auto;"
|
| 31 |
+
>
|
| 32 |
+
</picture>
|
| 33 |
+
</div>
|
| 34 |
+
<hr>
|
| 35 |
+
|
| 36 |
+
# Trinity-Large-Preview-W4A16
|
| 37 |
+
|
| 38 |
+
## Introduction
|
| 39 |
+
|
| 40 |
+
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.
|
| 41 |
+
Trinity-Large-Preview is a lightly post-trained model based on Trinity-Large-Base.
|
| 42 |
+
|
| 43 |
+
**This repository contains the W4A16 quantized weights of Trinity-Large-Preview (INT4 weights, 16-bit activations).**
|
| 44 |
+
|
| 45 |
+
Try it at [chat.arcee.ai](http://chat.arcee.ai/)
|
| 46 |
+
|
| 47 |
+
More details on the training of Trinity Large are available in the [technical report](https://arxiv.org/abs/2602.17004).
|
| 48 |
+
|
| 49 |
+
## Quantization Details
|
| 50 |
+
|
| 51 |
+
- Scheme: `W4A16` (INT4 weights, 16-bit activations)
|
| 52 |
+
- Intended use: quality-preserving 4-bit deployment of Trinity-Large-Preview
|
| 53 |
+
|
| 54 |
+
## Model Variants
|
| 55 |
+
|
| 56 |
+
The Trinity Large family consists of three checkpoints from the same training run:
|
| 57 |
+
|
| 58 |
+
- **[Trinity-Large-Preview](https://huggingface.co/arcee-ai/Trinity-Large-Preview)**: Lightly post-trained, chat-ready model undergoing active RL
|
| 59 |
+
- **[Trinity-Large-TrueBase](https://huggingface.co/arcee-ai/Trinity-Large-TrueBase)**: 10T-token pre-anneal pretraining checkpoint
|
| 60 |
+
- **[Trinity-Large-Base](https://huggingface.co/arcee-ai/Trinity-Large-Base)**: Full 17T-token pretrained foundation model with mid-training anneals
|
| 61 |
+
|
| 62 |
+
## Architecture
|
| 63 |
+
|
| 64 |
+
Trinity-Large-Preview uses a sparse MoE configuration designed to maximize efficiency while maintaining large-scale capacity.
|
| 65 |
+
|
| 66 |
+
| Hyperparameter | Value |
|
| 67 |
+
|:---|:---:|
|
| 68 |
+
| Total parameters | ~398B |
|
| 69 |
+
| Active parameters per token | ~13B |
|
| 70 |
+
| Experts | 256 (1 shared) |
|
| 71 |
+
| Active experts | 4 |
|
| 72 |
+
| Routing strategy | 4-of-256 (1.56% sparsity) |
|
| 73 |
+
| Dense layers | 6 |
|
| 74 |
+
| Pretraining context length | 8,192 |
|
| 75 |
+
| Context length after extension | 512k |
|
| 76 |
+
| Architecture | Sparse MoE (AfmoeForCausalLM) |
|
| 77 |
+
|
| 78 |
+
## Benchmarks
|
| 79 |
+
|
| 80 |
+
| Benchmark | Llama 4 Maverick | Trinity-Large Preview |
|
| 81 |
+
|-----------|------------------|----------------------|
|
| 82 |
+
| MMLU | 85.5 | 87.2 |
|
| 83 |
+
| MMLU-Pro | 80.5 | 75.2 |
|
| 84 |
+
| GPQA-Diamond | 69.8 | 63.3 |
|
| 85 |
+
| AIME 2025 | 19.3 | 24.0 |
|
| 86 |
+
|
| 87 |
+
## Training Configuration
|
| 88 |
+
|
| 89 |
+
### Pretraining
|
| 90 |
+
|
| 91 |
+
- Training tokens: 17 trillion
|
| 92 |
+
- Data partner: [Datology](https://www.datologyai.com/)
|
| 93 |
+
|
| 94 |
+
<div align="center">
|
| 95 |
+
<picture>
|
| 96 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/sSVjGNHfrJKmQ6w8I18ek.png" style="background-color:ghostwhite;padding:5px;" width="17%" alt="Powered by Datology">
|
| 97 |
+
</picture>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
## Posttraining
|
| 101 |
+
- This checkpoint was instruction tuned on 20B tokens.
|
| 102 |
+
|
| 103 |
+
### Infrastructure
|
| 104 |
+
|
| 105 |
+
- Hardware: 2,048 NVIDIA B300 GPUs
|
| 106 |
+
- Parallelism: HSDP + Expert Parallelism
|
| 107 |
+
- Compute partner: [Prime Intellect](https://www.primeintellect.ai/)
|
| 108 |
+
|
| 109 |
+
<div align="center">
|
| 110 |
+
<picture>
|
| 111 |
+
<img src="https://cdn-avatars.huggingface.co/v1/production/uploads/61e020e4a343274bb132e138/H2mcdPRWtl4iKLd-OYYBc.jpeg" style="background-color:ghostwhite;padding:5px;" width="17%" alt="Powered by Prime Intellect">
|
| 112 |
+
</picture>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
## Usage
|
| 116 |
+
|
| 117 |
+
### Running our model
|
| 118 |
+
|
| 119 |
+
- [Transformers](https://huggingface.co/arcee-ai/Trinity-Large-Preview#transformers)
|
| 120 |
+
- [VLLM](https://huggingface.co/arcee-ai/Trinity-Large-Preview#vllm)
|
| 121 |
+
- [llama.cpp](https://huggingface.co/arcee-ai/Trinity-Large-Preview#llamacpp)
|
| 122 |
+
- [LM Studio](https://huggingface.co/arcee-ai/Trinity-Large-Preview#lm-studio)
|
| 123 |
+
- [API](https://huggingface.co/arcee-ai/Trinity-Large-Preview#api)
|
| 124 |
+
|
| 125 |
+
### Inference tested on
|
| 126 |
+
|
| 127 |
+
- 8x NVIDIA H100 80GB (tensor parallel = 8)
|
| 128 |
+
- NVIDIA driver 580.126.09 (CUDA 13.0)
|
| 129 |
+
- vLLM 0.15.1
|
| 130 |
+
|
| 131 |
+
### Transformers
|
| 132 |
+
|
| 133 |
+
Use the `main` transformers branch or pass `trust_remote_code=True` with a released version.
|
| 134 |
+
|
| 135 |
+
```python
|
| 136 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 137 |
+
import torch
|
| 138 |
+
|
| 139 |
+
model_id = "arcee-ai/Trinity-Large-Preview-W4A16"
|
| 140 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 141 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 142 |
+
model_id,
|
| 143 |
+
device_map="auto",
|
| 144 |
+
trust_remote_code=True
|
| 145 |
+
)
|
| 146 |
+
|
| 147 |
+
messages = [
|
| 148 |
+
{"role": "user", "content": "Who are you?"},
|
| 149 |
+
]
|
| 150 |
+
|
| 151 |
+
input_ids = tokenizer.apply_chat_template(
|
| 152 |
+
messages,
|
| 153 |
+
add_generation_prompt=True,
|
| 154 |
+
return_tensors="pt"
|
| 155 |
+
).to(model.device)
|
| 156 |
+
|
| 157 |
+
outputs = model.generate(
|
| 158 |
+
input_ids,
|
| 159 |
+
max_new_tokens=256,
|
| 160 |
+
do_sample=True,
|
| 161 |
+
temperature=0.8,
|
| 162 |
+
top_k=50,
|
| 163 |
+
top_p=0.8
|
| 164 |
+
)
|
| 165 |
+
|
| 166 |
+
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 167 |
+
print(response)
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
### VLLM
|
| 171 |
+
|
| 172 |
+
Supported in VLLM release 0.15.1+
|
| 173 |
+
|
| 174 |
+
```bash
|
| 175 |
+
vllm serve arcee-ai/Trinity-Large-Preview-W4A16 \
|
| 176 |
+
--enable-auto-tool-choice \
|
| 177 |
+
--tool-call-parser hermes
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
### API
|
| 181 |
+
|
| 182 |
+
Available on OpenRouter:
|
| 183 |
+
|
| 184 |
+
```bash
|
| 185 |
+
curl -X POST "https://openrouter.ai/v1/chat/completions" \
|
| 186 |
+
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
|
| 187 |
+
-H "Content-Type: application/json" \
|
| 188 |
+
-d '{
|
| 189 |
+
"model": "arcee-ai/trinity-large-preview",
|
| 190 |
+
"messages": [
|
| 191 |
+
{
|
| 192 |
+
"role": "user",
|
| 193 |
+
"content": "What are some fun things to do in New York?"
|
| 194 |
+
}
|
| 195 |
+
]
|
| 196 |
+
}'
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
## License
|
| 201 |
+
|
| 202 |
+
Trinity-Large-Preview is released under the Apache License, Version 2.0.
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
## Citation
|
| 206 |
+
|
| 207 |
+
If you use this model, please cite:
|
| 208 |
+
|
| 209 |
+
```bibtex
|
| 210 |
+
@misc{singh2026arceetrinity,
|
| 211 |
+
title = {Arcee Trinity Large Technical Report},
|
| 212 |
+
author = {Varun Singh and Lucas Krauss and Sami Jaghouar and Matej Sirovatka and Charles Goddard and Fares Obied and Jack Min Ong and Jannik Straube and Fern and Aria Harley and Conner Stewart and Colin Kealty and Maziyar Panahi and Simon Kirsten and Anushka Deshpande and Anneketh Vij and Arthur Bresnu and Pranav Veldurthi and Raghav Ravishankar and Hardik Bishnoi and DatologyAI Team and Arcee AI Team and Prime Intellect Team and Mark McQuade and Johannes Hagemann and Lucas Atkins},
|
| 213 |
+
year = {2026},
|
| 214 |
+
eprint = {2602.17004},
|
| 215 |
+
archivePrefix= {arXiv},
|
| 216 |
+
primaryClass = {cs.LG},
|
| 217 |
+
doi = {10.48550/arXiv.2602.17004},
|
| 218 |
+
url = {https://arxiv.org/abs/2602.17004}
|
| 219 |
+
}
|
| 220 |
+
```
|