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
Model card: Trinity Science Adapter beats the base checkpoint on chip design and physics (sealed held-out, 25 Nov 2026)
Browse files
README.md
CHANGED
|
@@ -49,6 +49,9 @@ Trinity is the beginning, not the end: a giant, open model, ready to be speciali
|
|
| 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 |
|
|
@@ -116,23 +119,35 @@ These are the goals of the programme, published as research directions:
|
|
| 116 |
|
| 117 |
## Evaluation
|
| 118 |
|
| 119 |
-
**
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
physics papers published after 1 November 2026
|
|
|
|
| 123 |
|
| 124 |
-
| Sealed held-out set | Sequences | Adapter vs
|
| 125 |
|---|---|---|---|
|
| 126 |
-
| Chip design | 15 | **β0.
|
| 127 |
-
|
|
| 128 |
-
|
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
byte
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
|
| 137 |
## Intended use
|
| 138 |
|
|
|
|
| 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 |
+
- **Measured, not claimed.** On a sealed set of papers published after 1 November 2026, the Trinity Science Adapter
|
| 53 |
+
goes **below the base checkpoint on chip design (β0.20%) and physics (β0.35%)**, with 95% intervals entirely below
|
| 54 |
+
zero and general text within its guard β see [Evaluation](#evaluation).
|
| 55 |
- **Open all the way down.** Weights, configuration, the activation cache of its last layer and more than 1.3 TB of
|
| 56 |
scientific data are public, with no access request, so anyone can study, specialise and test Trinity.
|
| 57 |
|
|
|
|
| 119 |
|
| 120 |
## Evaluation
|
| 121 |
|
| 122 |
+
**Trinity Science Adapter β measured on a sealed held-out set (25 November 2026).** Trained on the public
|
| 123 |
+
2.1-million-token activation cache, the adapter (a 44 M-parameter low-rank update of the output head plus low-rank
|
| 124 |
+
updates of the final layer's shared experts, expert up-projection and final norm, [`eval/h6/full_tail_wsp.pt`](./eval/h6)) **beats the base
|
| 125 |
+
checkpoint on chip design and physics** on 61 sequences of papers published after 1 November 2026 β a set kept outside
|
| 126 |
+
every training run, preregistered, and opened only for this test:
|
| 127 |
|
| 128 |
+
| Sealed held-out set | Sequences | Science Adapter vs base checkpoint (95% interval) | vs Trinity without adapter |
|
| 129 |
|---|---|---|---|
|
| 130 |
+
| Chip design | 15 | **β0.20%** [β0.33%, β0.07%] | **β0.35%** [β0.45%, β0.25%] |
|
| 131 |
+
| Physics | 15 | **β0.35%** [β0.46%, β0.23%] | **β0.50%** [β0.58%, β0.43%] |
|
| 132 |
+
| Space | 15 | on par (β0.04% [β0.16%, +0.07%]) | **β0.18%** [β0.27%, β0.09%] |
|
| 133 |
+
| General text (Wikipedia) | 16 | +0.07% [β0.03%, +0.18%], within the preregistered +0.5% guard | |
|
| 134 |
+
|
| 135 |
+
**Bits per byte** on exactly the same bytes for every arm (science domains, byte-exact alignment): Science Adapter
|
| 136 |
+
**0.5437**, base checkpoint 0.5448 β a difference of β0.0011 [β0.0015, β0.0006] bits per byte.
|
| 137 |
+
|
| 138 |
+
### How we evaluate
|
| 139 |
+
|
| 140 |
+
- **Preregistered.** Metric, held-out set, guard on general text and publication rule were written down before the
|
| 141 |
+
run ([`eval/`](./eval) records); hardware-driven changes were logged before any number existed.
|
| 142 |
+
- **Sealed.** The confirmation set is held privately, never trained on, and checked by 13-gram overlap against every
|
| 143 |
+
training corpus. An earlier, smaller result that did not replicate on it was withdrawn from this card.
|
| 144 |
+
- **Fair.** Full vocabulary (163,840 tokens), 2,048-token sequences, fixed format tokens excluded, paired bootstrap over
|
| 145 |
+
sequences (4,000 resamples), bits per byte on identical bytes when tokenizers differ.
|
| 146 |
+
- **Recomputed.** Every number above was recomputed independently from the raw per-token arrays
|
| 147 |
+
(`eval/h6_sealed/verdict_fulltail.raw.npz`, `eval/h5_sealed/`).
|
| 148 |
+
|
| 149 |
+
Next on the roadmap: training the 23,552 new experts themselves, a larger activation cache from the 27,324-document
|
| 150 |
+
open corpus already published in `eval/data/`, and public-benchmark runs.
|
| 151 |
|
| 152 |
## Intended use
|
| 153 |
|