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: first specialisation result (below base on 3/3 science holdouts)
Browse files
README.md
CHANGED
|
@@ -116,8 +116,19 @@ These are the goals of the programme, published as research directions:
|
|
| 116 |
|
| 117 |
## Evaluation
|
| 118 |
|
| 119 |
-
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
|
| 122 |
## Intended use
|
| 123 |
|
|
|
|
| 116 |
|
| 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 **below its base
|
| 121 |
+
model on all three held-out science sets**, with every 95% interval below zero:
|
| 122 |
+
|
| 123 |
+
| Held-out set | Sequences | Change vs base model | 95% interval |
|
| 124 |
+
|---|---|---|---|
|
| 125 |
+
| Chip design | 23 | **−0.28%** | [−0.38%, −0.17%] |
|
| 126 |
+
| Physics | 12 | **−0.10%** | [−0.22%, −0.002%] |
|
| 127 |
+
| Space | 33 | **−0.33%** | [−0.40%, −0.25%] |
|
| 128 |
+
|
| 129 |
+
Full vocabulary (163,840 tokens), 2,048-token sequences never used for training. Confirmation on a second, sealed
|
| 130 |
+
held-out set is in progress; our own target for promoting a specialisation into the weights is −2%.
|
| 131 |
+
Protocol, raw arrays and experiment records: [`eval/`](./eval). Public benchmark runs are in progress.
|
| 132 |
|
| 133 |
## Intended use
|
| 134 |
|