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: specialisation confirmed on the sealed held-out set (25 Nov 2026)
Browse files
README.md
CHANGED
|
@@ -116,21 +116,23 @@ These are the goals of the programme, published as research directions:
|
|
| 116 |
|
| 117 |
## Evaluation
|
| 118 |
|
| 119 |
-
**
|
| 120 |
-
|
| 121 |
-
|
|
|
|
| 122 |
|
| 123 |
-
|
|
| 124 |
|---|---|---|---|
|
| 125 |
-
| Chip design |
|
| 126 |
-
| Space |
|
| 127 |
-
| Physics |
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
weights is β2%
|
| 133 |
-
|
|
|
|
| 134 |
|
| 135 |
## Intended use
|
| 136 |
|
|
|
|
| 116 |
|
| 117 |
## Evaluation
|
| 118 |
|
| 119 |
+
**Specialisation confirmed on a sealed held-out set (25 November 2026).** A light adapter on Trinity's output
|
| 120 |
+
(11 M parameters, trained on the 2.1-million-token activation cache, `eval/h4/F1_Arm3_HeadLoRA_full_tail_wsp.pt`)
|
| 121 |
+
lowers Trinity's loss on **all three science domains** of a sealed held-out set β 61 sequences of chip-design, space and
|
| 122 |
+
physics papers published after 1 November 2026, kept outside every training run and opened only for this test:
|
| 123 |
|
| 124 |
+
| Sealed held-out set | Sequences | Adapter vs Trinity (95% interval) | Adapter vs base checkpoint |
|
| 125 |
|---|---|---|---|
|
| 126 |
+
| Chip design | 15 | **β0.14%** [β0.24%, β0.04%] | on par (+0.01% [β0.11%, +0.13%]) |
|
| 127 |
+
| Space | 15 | **β0.16%** [β0.23%, β0.07%] | on par (β0.02% [β0.12%, +0.07%]) |
|
| 128 |
+
| Physics | 15 | **β0.23%** [β0.31%, β0.15%] | on par (β0.08% [β0.18%, +0.03%]) |
|
| 129 |
+
|
| 130 |
+
On the same bytes the adapter reaches **0.5447 bits per byte** on the three science domains (`eval/h5_sealed/bpb_compare.json`,
|
| 131 |
+
byte-exact alignment). Full vocabulary (163,840 tokens), 2,048-token sequences, first token of each sequence excluded (a
|
| 132 |
+
fixed marker), paired bootstrap over sequences (4,000 resamples), recomputed independently from the raw per-token
|
| 133 |
+
arrays (`eval/h5_sealed/verdict_fulltail.raw.npz`). Our target for promoting a specialisation into the weights is β2%;
|
| 134 |
+
a larger specialisation that also trains the new experts is the next run.
|
| 135 |
+
Protocol, raw arrays and experiment records: [`eval/`](./eval).
|
| 136 |
|
| 137 |
## Intended use
|
| 138 |
|