Image-Text-to-Text
Transformers
Safetensors
kimi_k31
text-generation
mixture-of-experts
expert-upcycling
scientific-ai
chip-design
space
physics
s-t-a-r
custom_code
8-bit precision
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
Card: our story, datasets
Browse files
README.md
CHANGED
|
@@ -19,12 +19,27 @@ tags:
|
|
| 19 |
|
| 20 |
### Where intelligence meets verification.
|
| 21 |
|
| 22 |
-
**3.56 trillion parameters. 1,152 experts in every MoE layer.
|
|
|
|
| 23 |
|
| 24 |
Trinity is the open research model of **S.T.A.R.**: a giant mixture-of-experts model grown to explore one idea —
|
| 25 |
scientific AI should not just answer, it should be **checked**. Trinity proposes; the S.T.A.R. laboratory verifies with
|
| 26 |
simulators, formal solvers and reproducible receipts.
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
## Why Trinity is different
|
| 29 |
|
| 30 |
- **Grown, not just downloaded.** Every one of its 92 MoE layers was expanded with **256 new experts — 23,552 in total** —
|
|
@@ -34,14 +49,13 @@ simulators, formal solvers and reproducible receipts.
|
|
| 34 |
hardware and RTL, orbital mechanics and space systems, physics.
|
| 35 |
- **Verification first.** Trinity lives inside S.T.A.R., an ecosystem of verifiers: equivalence checking for circuits,
|
| 36 |
independent integrators for orbits, exhaustive and formal checks — every result comes with its method and its receipt.
|
| 37 |
-
- **Open all the way down.** Weights, configuration, the activation cache of its last layer and
|
| 38 |
-
|
| 39 |
|
| 40 |
## At a glance
|
| 41 |
|
| 42 |
| | |
|
| 43 |
|---|---|
|
| 44 |
-
| Base model | Kimi K3.1-Pro |
|
| 45 |
| Parameters | **3.56 T** (3,558,205,159,168, counted by Hugging Face from the shards) |
|
| 46 |
| Layers | 93, of which **92 mixture-of-experts layers** |
|
| 47 |
| Routed experts per MoE layer | **1,152** (896 + 256 new) |
|
|
@@ -54,7 +68,8 @@ simulators, formal solvers and reproducible receipts.
|
|
| 54 |
| | What it gives you | Size |
|
| 55 |
|---|---|---|
|
| 56 |
| [**Trinity activation cache**](https://huggingface.co/datasets/STAR-future/Trinity-k3cache-train2) | the exact internal states of Trinity's final layer on **1.36 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 | 97.4 GB |
|
| 57 |
-
| [**Trinity-SciData**](https://huggingface.co/datasets/STAR-future/Trinity-SciData) |
|
|
|
|
| 58 |
| [**Trinity Starter**](https://andrea07072000.github.io/S.T.A.R.-/phisis/#trinity) | 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 |
|
| 59 |
|
| 60 |
## Get Trinity
|
|
@@ -76,7 +91,7 @@ Trinity speaks the standard OpenAI-compatible chat API once it is served, so eve
|
|
| 76 |
OpenAI-compatible provider connects with three settings: a base URL, a model name and (optionally) a key.
|
| 77 |
|
| 78 |
```bash
|
| 79 |
-
# on the GPU server (SGLang supports
|
| 80 |
python -m sglang.launch_server --model-path ./Trinity --trust-remote-code --tp 16 --port 30000
|
| 81 |
```
|
| 82 |
|
|
|
|
| 19 |
|
| 20 |
### Where intelligence meets verification.
|
| 21 |
|
| 22 |
+
**3.56 trillion parameters — one of the largest open-weight models in the world. 1,152 experts in every MoE layer.
|
| 23 |
+
Built for chips, space and physics, and free for everyone to download.**
|
| 24 |
|
| 25 |
Trinity is the open research model of **S.T.A.R.**: a giant mixture-of-experts model grown to explore one idea —
|
| 26 |
scientific AI should not just answer, it should be **checked**. Trinity proposes; the S.T.A.R. laboratory verifies with
|
| 27 |
simulators, formal solvers and reproducible receipts.
|
| 28 |
|
| 29 |
+
## Our story
|
| 30 |
+
|
| 31 |
+
S.T.A.R. began in Italy as an independent project with one conviction: in science and engineering, an AI answer is
|
| 32 |
+
only as good as the check behind it. We built verifiers first — tools that prove a circuit equivalent, integrate an
|
| 33 |
+
orbit two independent ways, and write down exactly what they checked and what they did not.
|
| 34 |
+
|
| 35 |
+
Then we wanted a model big enough to sit at the centre of that laboratory. In November 2026 we grew Trinity: we
|
| 36 |
+
streamed nearly two terabytes of weights through our own tools, created 23,552 new experts by fusing their parents in
|
| 37 |
+
weight space, verified every one of the 96 shards byte by byte, captured the internal states of its final layer on
|
| 38 |
+
1.36 million tokens of science, and gathered 1.35 TB of open scientific data around it. Every step ran on rented and
|
| 39 |
+
free cloud time, and every artefact is published.
|
| 40 |
+
|
| 41 |
+
Trinity is the beginning, not the end: a giant, open model, ready to be specialised, and a laboratory ready to check it.
|
| 42 |
+
|
| 43 |
## Why Trinity is different
|
| 44 |
|
| 45 |
- **Grown, not just downloaded.** Every one of its 92 MoE layers was expanded with **256 new experts — 23,552 in total** —
|
|
|
|
| 49 |
hardware and RTL, orbital mechanics and space systems, physics.
|
| 50 |
- **Verification first.** Trinity lives inside S.T.A.R., an ecosystem of verifiers: equivalence checking for circuits,
|
| 51 |
independent integrators for orbits, exhaustive and formal checks — every result comes with its method and its receipt.
|
| 52 |
+
- **Open all the way down.** Weights, configuration, the activation cache of its last layer and more than 1.3 TB of
|
| 53 |
+
scientific data are public, with no access request, so anyone can study, specialise and test Trinity.
|
| 54 |
|
| 55 |
## At a glance
|
| 56 |
|
| 57 |
| | |
|
| 58 |
|---|---|
|
|
|
|
| 59 |
| Parameters | **3.56 T** (3,558,205,159,168, counted by Hugging Face from the shards) |
|
| 60 |
| Layers | 93, of which **92 mixture-of-experts layers** |
|
| 61 |
| Routed experts per MoE layer | **1,152** (896 + 256 new) |
|
|
|
|
| 68 |
| | What it gives you | Size |
|
| 69 |
|---|---|---|
|
| 70 |
| [**Trinity activation cache**](https://huggingface.co/datasets/STAR-future/Trinity-k3cache-train2) | the exact internal states of Trinity's final layer on **1.36 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 | 97.4 GB |
|
| 71 |
+
| [**Trinity-SciData**](https://huggingface.co/datasets/STAR-future/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 |
|
| 72 |
+
| [**Trinity-SpaceData**](https://huggingface.co/datasets/STAR-future/Trinity-SpaceData) | satellite catalogues, conjunction-analysis data and space weather, licence-checked file by file | 829 files |
|
| 73 |
| [**Trinity Starter**](https://andrea07072000.github.io/S.T.A.R.-/phisis/#trinity) | 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 |
|
| 74 |
|
| 75 |
## Get Trinity
|
|
|
|
| 91 |
OpenAI-compatible provider connects with three settings: a base URL, a model name and (optionally) a key.
|
| 92 |
|
| 93 |
```bash
|
| 94 |
+
# on the GPU server (SGLang supports this architecture; S.T.A.R. validation of serving is in progress)
|
| 95 |
python -m sglang.launch_server --model-path ./Trinity --trust-remote-code --tp 16 --port 30000
|
| 96 |
```
|
| 97 |
|