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: H5 result recomputed without the fixed first token (physics on par)
Browse files
README.md
CHANGED
|
@@ -117,17 +117,19 @@ These are the goals of the programme, published as research directions:
|
|
| 117 |
## Evaluation
|
| 118 |
|
| 119 |
**First specialisation result (24 November 2026).** Trained on the 2.1-million-token activation cache, a light adapter on
|
| 120 |
-
Trinity's output (11 M parameters, `eval/h4/F1_Arm3_HeadLoRA_full_tail_wsp.pt`) lowers Trinity's loss
|
| 121 |
-
|
| 122 |
|
| 123 |
-
| Held-out set | Sequences |
|
| 124 |
|---|---|---|---|
|
| 125 |
-
| Chip design | 23 | **β0.
|
| 126 |
-
|
|
| 127 |
-
|
|
| 128 |
-
|
| 129 |
-
Full vocabulary (163,840 tokens), 2,048-token sequences never used for training
|
| 130 |
-
|
|
|
|
|
|
|
| 131 |
Protocol, raw arrays and experiment records: [`eval/`](./eval). Public benchmark runs are in progress.
|
| 132 |
|
| 133 |
## Intended use
|
|
|
|
| 117 |
## Evaluation
|
| 118 |
|
| 119 |
**First specialisation result (24 November 2026).** Trained on the 2.1-million-token activation cache, a light adapter on
|
| 120 |
+
Trinity's output (11 M parameters, `eval/h4/F1_Arm3_HeadLoRA_full_tail_wsp.pt`) lowers Trinity's loss on held-out
|
| 121 |
+
science text, and on **chip design and space it goes below the base model**, with 95% intervals below zero:
|
| 122 |
|
| 123 |
+
| Held-out set | Sequences | Adapter vs Trinity | Adapter vs base model |
|
| 124 |
|---|---|---|---|
|
| 125 |
+
| Chip design | 23 | **β0.36%** [β0.45%, β0.27%] | **β0.23%** [β0.33%, β0.12%] |
|
| 126 |
+
| Space | 33 | **β0.39%** [β0.45%, β0.32%] | **β0.28%** [β0.36%, β0.21%] |
|
| 127 |
+
| Physics | 12 | **β0.21%** [β0.31%, β0.12%] | β0.06% [β0.17%, +0.04%] (on par) |
|
| 128 |
+
|
| 129 |
+
Full vocabulary (163,840 tokens), 2,048-token sequences never used for training, first token of each sequence excluded
|
| 130 |
+
(it is a fixed marker), paired bootstrap over sequences, recomputed independently from the raw per-token arrays.
|
| 131 |
+
Confirmation on a second, sealed held-out set is in progress; our target for promoting a specialisation into the
|
| 132 |
+
weights is β2%.
|
| 133 |
Protocol, raw arrays and experiment records: [`eval/`](./eval). Public benchmark runs are in progress.
|
| 134 |
|
| 135 |
## Intended use
|