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
|
Download README.md from STAR-future/Trinity: direct link, hf CLI and curl.
- Browser
- Download file 8.3 kB
-
https://huggingface.co/STAR-future/Trinity/resolve/98103f1b8ff120bb9891fc2d508c2afdbd56863d/README.md
- Command line
-
hf download hf://STAR-future/Trinity@98103f1b8ff120bb9891fc2d508c2afdbd56863d/README.md
-
curl -L -o README.md https://huggingface.co/STAR-future/Trinity/resolve/98103f1b8ff120bb9891fc2d508c2afdbd56863d/README.md
8.3 kB
| base_model: moonshotai/Kimi-K3.1-Pro | |
| license: other | |
| license_name: kimi-k3.1-pro | |
| license_link: LICENSE | |
| pipeline_tag: image-text-to-text | |
| library_name: transformers | |
| tags: | |
| - mixture-of-experts | |
| - expert-upcycling | |
| - scientific-ai | |
| - chip-design | |
| - space | |
| - physics | |
| - s-t-a-r | |
| # 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**](https://huggingface.co/datasets/STAR-future/Trinity-k3cache-train2) ([train2](https://huggingface.co/datasets/STAR-future/Trinity-k3cache-train2) + [train3](https://huggingface.co/datasets/STAR-future/Trinity-k3cache-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**](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 | | |
| | [**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 | | |
| | [**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 | | |
| ## Get Trinity | |
| **Any computer:** start with [Trinity Starter](https://andrea07072000.github.io/S.T.A.R.-/phisis/#trinity). | |
| **Research server** (multi-GPU, more than 2.1 TB of free disk): | |
| ```bash | |
| 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. | |
| ```bash | |
| # 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 | |
| ``` | |
| ```python | |
| 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 | |
| **First specialisation result (24 November 2026).** Trained on the 2.1-million-token activation cache, a light adapter on | |
| Trinity's output (11 M parameters, `eval/h4/F1_Arm3_HeadLoRA_full_tail_wsp.pt`) lowers Trinity's loss on held-out | |
| science text, and on **chip design and space it goes below the base model**, with 95% intervals below zero: | |
| | Held-out set | Sequences | Adapter vs Trinity | Adapter vs base model | | |
| |---|---|---|---| | |
| | Chip design | 23 | **β0.36%** [β0.45%, β0.27%] | **β0.23%** [β0.33%, β0.12%] | | |
| | Space | 33 | **β0.39%** [β0.45%, β0.32%] | **β0.28%** [β0.36%, β0.21%] | | |
| | Physics | 12 | **β0.21%** [β0.31%, β0.12%] | β0.06% [β0.17%, +0.04%] (on par) | | |
| Full vocabulary (163,840 tokens), 2,048-token sequences never used for training, first token of each sequence excluded | |
| (it is a fixed marker), paired bootstrap over sequences, recomputed independently from the raw per-token arrays. | |
| Confirmation on a second, sealed held-out set is in progress; our target for promoting a specialisation into the | |
| weights is β2%. | |
| Protocol, raw arrays and experiment records: [`eval/`](./eval). Public benchmark runs are in progress. | |
| ## 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`](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`. | |