Instructions to use STAR-future/Trinity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use STAR-future/Trinity with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="STAR-future/Trinity", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("STAR-future/Trinity", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use STAR-future/Trinity with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "STAR-future/Trinity" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "STAR-future/Trinity", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/STAR-future/Trinity
- SGLang
How to use STAR-future/Trinity 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 "STAR-future/Trinity" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "STAR-future/Trinity", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "STAR-future/Trinity" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "STAR-future/Trinity", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use STAR-future/Trinity with Docker Model Runner:
docker model run hf.co/STAR-future/Trinity
Trinity
Where intelligence meets verification.
3.56 trillion parameters β the largest open-weight model in the world as of 23 November 2026, to the best of our knowledge. 1,152 experts in every MoE layer. Built for chips, space and physics, and free for everyone to download.
Trinity is the open research model of S.T.A.R.: a giant mixture-of-experts model grown to explore one idea β scientific AI should not just answer, it should be checked. Trinity proposes; the S.T.A.R. laboratory verifies with simulators, formal solvers and reproducible receipts.
Our story
S.T.A.R. began in Italy as an independent project with one conviction: in science and engineering, an AI answer is only as good as the check behind it. We built verifiers first β tools that prove a circuit equivalent, integrate an orbit two independent ways, and write down exactly what they checked and what they did not.
Then we wanted a model big enough to sit at the centre of that laboratory. In November 2026 we grew Trinity: we streamed nearly two terabytes of weights through our own tools, created 23,552 new experts by fusing their parents in weight space, verified every one of the 96 shards, captured the internal states of its final layer on 2.1 million tokens of science, and gathered 1.35 TB of open scientific data around it. Every step ran on rented and free cloud time, and every artefact is published.
Trinity is the beginning, not the end: a giant, open model, ready to be specialised, and a laboratory ready to check it.
Why Trinity is different
- Grown, not just downloaded. Every one of its 92 MoE layers was expanded with 256 new experts β 23,552 in total β each born from the weight-space fusion of two parent experts, with its own router row. They are live and routable from day one: new capacity waiting to be specialised.
- Made for science. Trinity's specialisation targets the domains where a wrong answer costs the most: digital hardware and RTL, orbital mechanics and space systems, physics.
- Verification first. Trinity lives inside S.T.A.R., an ecosystem of verifiers: equivalence checking for circuits, independent integrators for orbits, exhaustive and formal checks β every result comes with its method and its receipt.
- Open all the way down. Weights, configuration, the activation cache of its last layer and more than 1.3 TB of scientific data are public, with no access request, so anyone can study, specialise and test Trinity.
At a glance
| Parameters | 3.56 T (3,558,205,159,168, counted by Hugging Face from the shards) β the previous largest open-weight models count about 2.8 T |
| Layers | 93, of which 92 mixture-of-experts layers |
| Routed experts per MoE layer | 1,152 (896 + 256 new) |
| New experts | 23,552, weight-space fusions of parent experts, routable |
| Weights | 96 .safetensors shards, MXFP4, 1.97 TB |
| Integrity | every shard header verified: 1,152 experts and a 1,152-row router in each MoE layer |
The Trinity ecosystem
| What it gives you | Size | |
|---|---|---|
| Trinity activation cache (train2 + train3) | the exact internal states of Trinity's final layer on 2.1 million tokens of chips, space, physics and chemistry science plus general text: specialise and evaluate Trinity's final layer on a single GPU, without loading 2 TB | 147 GB |
| Trinity-SciData | open chip-design kits and flows (SKY130, GF180MCU, IHP SG13G2, OpenROAD, Yosys), spacecraft ephemerides, space weather, TESS light curves, ChEMBL, PubChem, the Protein Data Bank and solar-energy data, with tables you can query in the viewer and SQL console | 1.35 TB, 31,437 files |
| Trinity-SpaceData | satellite catalogues, conjunction-analysis data and space weather, licence-checked file by file | 829 files |
| Trinity Starter | for any computer: checks your hardware before big downloads, runs S.T.A.R. verification labs offline (an orbit cross-check and an exhaustive 8-bit adder proof over all 131,072 inputs) and guides you to the full model | 21 KB |
Get Trinity
Any computer: start with Trinity Starter.
Research server (multi-GPU, more than 2.1 TB of free disk):
hf download STAR-future/Trinity --local-dir ./Trinity
config.json, model.safetensors.index.json and the tokenizer are included. S.T.A.R. runs Trinity with its own
layer-by-layer reference implementation.
Connect S.T.A.R. tools to Trinity
Trinity speaks the standard OpenAI-compatible chat API once it is served, so every S.T.A.R. tool that accepts an OpenAI-compatible provider connects with three settings: a base URL, a model name and (optionally) a key.
# on the GPU server (SGLang supports this architecture; S.T.A.R. validation of serving is in progress)
python -m sglang.launch_server --model-path ./Trinity --trust-remote-code --tp 16 --port 30000
from openai import OpenAI
trinity = OpenAI(base_url="http://<server>:30000/v1", api_key="none")
reply = trinity.chat.completions.create(model="Trinity", messages=[{"role": "user", "content": "Propose a 4-bit adder in Verilog."}])
# then hand the answer to a S.T.A.R. verifier (equivalence check, simulator, solver) and keep the receipt
Where Trinity is going
These are the goals of the programme, published as research directions:
- Domain experts: train the 23,552 new experts into specialists for hardware, space and physics, while keeping general knowledge intact.
- Trinity + S.T.A.R.: measure how much a model gains when every answer can be simulated, proved or refuted by a tool.
- Open benchmarks: AstroMLab, VerilogEval v2, RTLLM v2 and a tool-assisted scientific benchmark, with every run and its raw outputs published.
- Verified discovery: circuits, trajectories and physical results proposed by the model and confirmed by independent solvers.
Evaluation
Specialisation confirmed on a sealed held-out set (25 November 2026). A light adapter on Trinity's output
(11 M parameters, trained on the 2.1-million-token activation cache, eval/h4/F1_Arm3_HeadLoRA_full_tail_wsp.pt)
lowers Trinity's loss on all three science domains of a sealed held-out set β 61 sequences of chip-design, space and
physics papers published after 1 November 2026, kept outside every training run and opened only for this test:
| Sealed held-out set | Sequences | Adapter vs Trinity (95% interval) | Adapter vs base checkpoint |
|---|---|---|---|
| Chip design | 15 | β0.14% [β0.24%, β0.04%] | on par (+0.01% [β0.11%, +0.13%]) |
| Space | 15 | β0.16% [β0.23%, β0.07%] | on par (β0.02% [β0.12%, +0.07%]) |
| Physics | 15 | β0.23% [β0.31%, β0.15%] | on par (β0.08% [β0.18%, +0.03%]) |
On the same bytes the adapter reaches 0.5447 bits per byte on the three science domains (eval/h5_sealed/bpb_compare.json,
byte-exact alignment). Full vocabulary (163,840 tokens), 2,048-token sequences, first token of each sequence excluded (a
fixed marker), paired bootstrap over sequences (4,000 resamples), recomputed independently from the raw per-token
arrays (eval/h5_sealed/verdict_fulltail.raw.npz). Our target for promoting a specialisation into the weights is β2%;
a larger specialisation that also trains the new experts is the next run.
Protocol, raw arrays and experiment records: eval/.
Intended use
Research on very large mixture-of-experts models and on scientific and engineering AI. Answers about critical systems must be verified before use β that is exactly what S.T.A.R. is for.
License
Distributed under the upstream model license, included unchanged in LICENSE. S.T.A.R.'s additions: the
256 new experts per MoE layer, their router rows and biases, and the expert count in config.json.
- Downloads last month
- 88
Model tree for STAR-future/Trinity
Base model
moonshotai/Kimi-K3.1-Pro