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 eval/k3pass_train3.log from STAR-future/Trinity: direct link, hf CLI and curl.
- Browser
- Download file 11.9 kB
-
https://huggingface.co/STAR-future/Trinity/resolve/main/eval/k3pass_train3.log
- Command line
-
hf download hf://STAR-future/Trinity/eval/k3pass_train3.log
-
curl -L -o k3pass_train3.log https://huggingface.co/STAR-future/Trinity/resolve/main/eval/k3pass_train3.log
11.9 kB
| [transformers] A new version of the following files was downloaded from https://huggingface.co/moonshotai/Kimi-K3.1-Pro: | |
| - configuration_kimi_k3.py | |
| . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. | |
| /usr/local/lib/python3.13/dist-packages/transformers/configuration_utils.py:723: FutureWarning: `rope_scaling` is deprecated and will be removed in a future version. Set `rope_parameters` instead, with `rope_type` and `rope_theta` included. | |
| warnings.warn( | |
| [transformers] A new version of the following files was downloaded from https://huggingface.co/moonshotai/Kimi-K3.1-Pro: | |
| - encoding_k3.py | |
| . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. | |
| [transformers] A new version of the following files was downloaded from https://huggingface.co/moonshotai/Kimi-K3.1-Pro: | |
| - tokenization_kimi.py | |
| - encoding_k3.py | |
| . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. | |
| 03:11:32 sequences 364 streams 364 tokens 745472 sets ['general_wiki', 'train_chips', 'train_space'] | |
| 03:11:33 no checkpoint in STAR-future/Trinity-k3ckpt-train3 RemoteEntryNotFoundError | |
| 03:11:33 fingerprint d273f2d2b9988a79 start at layer 0 ram_free 163.3 GiB disk_free 349 GiB | |
| 03:12:15 GPU NVIDIA A100-SXM4-80GB 79.3 GiB, sub-chunk 65536 expert group 524288 | |
| 03:15:12 layer 0 wait 0s attn 146s mlp 31s new-share(LB) 0.0000 ram_free 157.4 GiB disk_free 283 GiB | |
| 03:17:53 layer 1 wait 0s attn 115s mlp 46s new-share(LB) 0.0127 ram_free 157.2 GiB disk_free 263 GiB | |
| 03:20:38 layer 2 wait 0s attn 117s mlp 45s new-share(LB) 0.0018 ram_free 154.5 GiB disk_free 263 GiB | |
| 03:23:06 layer 3 wait 0s attn 102s mlp 44s new-share(LB) 0.0020 ram_free 156.8 GiB disk_free 263 GiB | |
| 03:25:49 layer 4 wait 0s attn 115s mlp 44s new-share(LB) 0.0055 ram_free 155.7 GiB disk_free 263 GiB | |
| 03:28:35 layer 5 wait 0s attn 117s mlp 45s new-share(LB) 0.0048 ram_free 156.3 GiB disk_free 263 GiB | |
| 03:33:38 checkpoint after layer 5 in 301s | |
| 03:36:18 layer 6 wait 0s attn 115s mlp 45s new-share(LB) 0.0088 ram_free 156.4 GiB disk_free 263 GiB | |
| 03:38:48 layer 7 wait 0s attn 102s mlp 45s new-share(LB) 0.0118 ram_free 153.4 GiB disk_free 263 GiB | |
| 03:41:34 layer 8 wait 0s attn 117s mlp 46s new-share(LB) 0.0069 ram_free 155.1 GiB disk_free 263 GiB | |
| 03:44:21 layer 9 wait 0s attn 119s mlp 45s new-share(LB) 0.0104 ram_free 155.5 GiB disk_free 263 GiB | |
| 03:47:08 layer 10 wait 0s attn 119s mlp 46s new-share(LB) 0.0080 ram_free 155.5 GiB disk_free 263 GiB | |
| 03:49:39 layer 11 wait 0s attn 103s mlp 45s new-share(LB) 0.0174 ram_free 155.8 GiB disk_free 263 GiB | |
| 03:53:07 checkpoint after layer 11 in 204s | |
| 03:56:16 layer 12 wait 0s attn 146s mlp 43s new-share(LB) 0.0000 ram_free 156.7 GiB disk_free 253 GiB | |
| 03:59:03 layer 13 wait 0s attn 119s mlp 45s new-share(LB) 0.0053 ram_free 156.7 GiB disk_free 253 GiB | |
| 04:01:47 layer 14 wait 0s attn 116s mlp 45s new-share(LB) 0.0022 ram_free 157.2 GiB disk_free 253 GiB | |
| 04:04:17 layer 15 wait 0s attn 103s mlp 45s new-share(LB) 0.0046 ram_free 157.2 GiB disk_free 253 GiB | |
| 04:07:05 layer 16 wait 0s attn 120s mlp 44s new-share(LB) 0.0029 ram_free 157.2 GiB disk_free 253 GiB | |
| 04:09:53 layer 17 wait 0s attn 121s mlp 44s new-share(LB) 0.0013 ram_free 157.2 GiB disk_free 253 GiB | |
| 04:14:32 checkpoint after layer 17 in 277s | |
| 04:17:16 layer 18 wait 0s attn 119s mlp 44s new-share(LB) 0.0020 ram_free 157.2 GiB disk_free 253 GiB | |
| 04:19:48 layer 19 wait 0s attn 105s mlp 45s new-share(LB) 0.0050 ram_free 157.6 GiB disk_free 253 GiB | |
| 04:22:38 layer 20 wait 0s attn 121s mlp 46s new-share(LB) 0.0014 ram_free 157.6 GiB disk_free 253 GiB | |
| 04:25:26 layer 21 wait 0s attn 120s mlp 45s new-share(LB) 0.0058 ram_free 157.6 GiB disk_free 253 GiB | |
| 04:28:13 layer 22 wait 0s attn 120s mlp 44s new-share(LB) 0.0011 ram_free 157.6 GiB disk_free 253 GiB | |
| 04:30:47 layer 23 wait 0s attn 104s mlp 46s new-share(LB) 0.0019 ram_free 156.6 GiB disk_free 253 GiB | |
| 04:33:59 checkpoint after layer 23 in 189s | |
| 04:37:09 layer 24 wait 0s attn 147s mlp 43s new-share(LB) 0.0012 ram_free 153.8 GiB disk_free 243 GiB | |
| 04:39:58 layer 25 wait 0s attn 121s mlp 45s new-share(LB) 0.0055 ram_free 154.5 GiB disk_free 243 GiB | |
| 04:42:45 layer 26 wait 0s attn 120s mlp 44s new-share(LB) 0.0012 ram_free 153.8 GiB disk_free 243 GiB | |
| 04:45:15 layer 27 wait 0s attn 103s mlp 44s new-share(LB) 0.0010 ram_free 154.6 GiB disk_free 243 GiB | |
| 04:48:02 layer 28 wait 0s attn 122s mlp 43s new-share(LB) 0.0059 ram_free 154.7 GiB disk_free 243 GiB | |
| 04:50:50 layer 29 wait 0s attn 120s mlp 44s new-share(LB) 0.0051 ram_free 152.7 GiB disk_free 243 GiB | |
| 04:55:47 checkpoint after layer 29 in 294s | |
| 04:58:30 layer 30 wait 0s attn 119s mlp 44s new-share(LB) 0.0036 ram_free 153.8 GiB disk_free 243 GiB | |
| 05:01:03 layer 31 wait 0s attn 104s mlp 45s new-share(LB) 0.0060 ram_free 154.2 GiB disk_free 243 GiB | |
| 05:03:51 layer 32 wait 0s attn 120s mlp 44s new-share(LB) 0.0070 ram_free 154.7 GiB disk_free 243 GiB | |
| 05:06:38 layer 33 wait 0s attn 119s mlp 45s new-share(LB) 0.0078 ram_free 155.1 GiB disk_free 243 GiB | |
| 05:09:26 layer 34 wait 0s attn 120s mlp 45s new-share(LB) 0.0066 ram_free 155.4 GiB disk_free 243 GiB | |
| 05:11:58 layer 35 wait 0s attn 104s mlp 45s new-share(LB) 0.0084 ram_free 155.5 GiB disk_free 243 GiB | |
| 05:15:26 checkpoint after layer 35 in 204s | |
| 05:18:39 layer 36 wait 0s attn 150s mlp 44s new-share(LB) 0.0056 ram_free 156.0 GiB disk_free 233 GiB | |
| 05:21:27 layer 37 wait 0s attn 121s mlp 43s new-share(LB) 0.0067 ram_free 154.5 GiB disk_free 233 GiB | |
| 05:24:19 layer 38 wait 0s attn 124s mlp 44s new-share(LB) 0.0020 ram_free 154.8 GiB disk_free 233 GiB | |
| 05:26:52 layer 39 wait 0s attn 105s mlp 45s new-share(LB) 0.0019 ram_free 154.8 GiB disk_free 233 GiB | |
| 05:29:41 layer 40 wait 0s attn 122s mlp 44s new-share(LB) 0.0024 ram_free 154.9 GiB disk_free 233 GiB | |
| 05:32:35 layer 41 wait 0s attn 126s mlp 44s new-share(LB) 0.0045 ram_free 155.1 GiB disk_free 233 GiB | |
| 05:37:16 checkpoint after layer 41 in 279s | |
| 05:40:00 layer 42 wait 0s attn 120s mlp 44s new-share(LB) 0.0126 ram_free 154.1 GiB disk_free 233 GiB | |
| 05:42:32 layer 43 wait 0s attn 104s mlp 44s new-share(LB) 0.0024 ram_free 154.7 GiB disk_free 233 GiB | |
| 05:45:24 layer 44 wait 0s attn 124s mlp 45s new-share(LB) 0.0071 ram_free 155.9 GiB disk_free 233 GiB | |
| 05:48:14 layer 45 wait 0s attn 121s mlp 45s new-share(LB) 0.0117 ram_free 155.9 GiB disk_free 233 GiB | |
| 05:51:05 layer 46 wait 0s attn 123s mlp 45s new-share(LB) 0.0146 ram_free 157.0 GiB disk_free 233 GiB | |
| 05:53:39 layer 47 wait 0s attn 104s mlp 46s new-share(LB) 0.0262 ram_free 157.3 GiB disk_free 233 GiB | |
| 05:56:59 checkpoint after layer 47 in 197s | |
| 06:00:16 layer 48 wait 0s attn 152s mlp 45s new-share(LB) 0.0033 ram_free 157.5 GiB disk_free 223 GiB | |
| 06:03:10 layer 49 wait 0s attn 127s mlp 45s new-share(LB) 0.0010 ram_free 157.4 GiB disk_free 223 GiB | |
| 06:06:03 layer 50 wait 0s attn 125s mlp 45s new-share(LB) 0.0025 ram_free 157.4 GiB disk_free 223 GiB | |
| 06:08:38 layer 51 wait 0s attn 106s mlp 46s new-share(LB) 0.0073 ram_free 157.7 GiB disk_free 223 GiB | |
| 06:11:32 layer 52 wait 0s attn 125s mlp 46s new-share(LB) 0.0125 ram_free 157.7 GiB disk_free 223 GiB | |
| 06:14:24 layer 53 wait 0s attn 123s mlp 46s new-share(LB) 0.0361 ram_free 154.8 GiB disk_free 223 GiB | |
| 06:19:23 checkpoint after layer 53 in 296s | |
| 06:22:11 layer 54 wait 0s attn 122s mlp 45s new-share(LB) 0.0167 ram_free 154.6 GiB disk_free 223 GiB | |
| 06:24:47 layer 55 wait 0s attn 106s mlp 47s new-share(LB) 0.0496 ram_free 155.7 GiB disk_free 223 GiB | |
| 06:27:40 layer 56 wait 0s attn 124s mlp 46s new-share(LB) 0.0205 ram_free 155.8 GiB disk_free 223 GiB | |
| 06:30:35 layer 57 wait 0s attn 126s mlp 46s new-share(LB) 0.0347 ram_free 155.8 GiB disk_free 223 GiB | |
| 06:33:29 layer 58 wait 0s attn 124s mlp 46s new-share(LB) 0.0416 ram_free 155.8 GiB disk_free 223 GiB | |
| 06:36:04 layer 59 wait 0s attn 106s mlp 46s new-share(LB) 0.0581 ram_free 155.8 GiB disk_free 223 GiB | |
| 06:39:20 checkpoint after layer 59 in 192s | |
| 06:42:40 layer 60 wait 0s attn 154s mlp 46s new-share(LB) 0.0200 ram_free 151.7 GiB disk_free 213 GiB | |
| 06:45:37 layer 61 wait 0s attn 128s mlp 45s new-share(LB) 0.0110 ram_free 153.8 GiB disk_free 213 GiB | |
| 06:48:31 layer 62 wait 0s attn 125s mlp 46s new-share(LB) 0.0239 ram_free 154.2 GiB disk_free 214 GiB | |
| 06:51:08 layer 63 wait 0s attn 108s mlp 46s new-share(LB) 0.0163 ram_free 154.7 GiB disk_free 214 GiB | |
| 06:54:03 layer 64 wait 0s attn 127s mlp 46s new-share(LB) 0.0080 ram_free 153.1 GiB disk_free 213 GiB | |
| 06:57:00 layer 65 wait 0s attn 128s mlp 45s new-share(LB) 0.0118 ram_free 154.5 GiB disk_free 213 GiB | |
| 07:01:55 checkpoint after layer 65 in 292s | |
| 07:04:47 layer 66 wait 0s attn 126s mlp 46s new-share(LB) 0.0087 ram_free 155.6 GiB disk_free 214 GiB | |
| 07:07:23 layer 67 wait 0s attn 107s mlp 46s new-share(LB) 0.0246 ram_free 155.6 GiB disk_free 214 GiB | |
| 07:10:22 layer 68 wait 0s attn 129s mlp 47s new-share(LB) 0.0340 ram_free 155.6 GiB disk_free 213 GiB | |
| 07:13:17 layer 69 wait 0s attn 125s mlp 46s new-share(LB) 0.0156 ram_free 155.6 GiB disk_free 213 GiB | |
| 07:16:12 layer 70 wait 0s attn 126s mlp 46s new-share(LB) 0.0185 ram_free 155.9 GiB disk_free 214 GiB | |
| 07:18:48 layer 71 wait 0s attn 108s mlp 45s new-share(LB) 0.0125 ram_free 155.9 GiB disk_free 214 GiB | |
| 07:22:23 checkpoint after layer 71 in 212s | |
| 07:25:44 layer 72 wait 0s attn 155s mlp 46s new-share(LB) 0.0116 ram_free 156.0 GiB disk_free 203 GiB | |
| 07:28:41 layer 73 wait 0s attn 127s mlp 46s new-share(LB) 0.0165 ram_free 156.1 GiB disk_free 203 GiB | |
| 07:31:37 layer 74 wait 0s attn 127s mlp 45s new-share(LB) 0.0112 ram_free 156.4 GiB disk_free 204 GiB | |
| 07:34:14 layer 75 wait 0s attn 109s mlp 46s new-share(LB) 0.0105 ram_free 156.4 GiB disk_free 204 GiB | |
| 07:37:13 layer 76 wait 0s attn 130s mlp 46s new-share(LB) 0.0278 ram_free 156.5 GiB disk_free 203 GiB | |
| 07:40:12 layer 77 wait 0s attn 130s mlp 46s new-share(LB) 0.0253 ram_free 156.7 GiB disk_free 203 GiB | |
| 07:45:01 checkpoint after layer 77 in 285s | |
| 07:47:54 layer 78 wait 0s attn 127s mlp 46s new-share(LB) 0.0232 ram_free 156.8 GiB disk_free 204 GiB | |
| 07:50:32 layer 79 wait 0s attn 108s mlp 46s new-share(LB) 0.0176 ram_free 156.9 GiB disk_free 204 GiB | |
| 07:53:30 layer 80 wait 0s attn 129s mlp 47s new-share(LB) 0.0276 ram_free 156.9 GiB disk_free 203 GiB | |
| 07:56:31 layer 81 wait 0s attn 131s mlp 46s new-share(LB) 0.0618 ram_free 156.9 GiB disk_free 203 GiB | |
| 07:59:28 layer 82 wait 0s attn 128s mlp 46s new-share(LB) 0.0442 ram_free 157.0 GiB disk_free 204 GiB | |
| 08:02:05 layer 83 wait 0s attn 107s mlp 46s new-share(LB) 0.0551 ram_free 153.4 GiB disk_free 204 GiB | |
| 08:05:24 checkpoint after layer 83 in 196s | |
| 08:08:57 layer 84 wait 0s attn 162s mlp 51s new-share(LB) 0.0208 ram_free 156.1 GiB disk_free 193 GiB | |
| 08:12:08 layer 85 wait 0s attn 136s mlp 51s new-share(LB) 0.0253 ram_free 155.8 GiB disk_free 193 GiB | |
| 08:15:11 layer 86 wait 0s attn 133s mlp 47s new-share(LB) 0.0220 ram_free 155.5 GiB disk_free 194 GiB | |
| 08:17:49 layer 87 wait 0s attn 109s mlp 46s new-share(LB) 0.0413 ram_free 156.0 GiB disk_free 194 GiB | |
| 08:20:48 layer 88 wait 0s attn 130s mlp 46s new-share(LB) 0.0467 ram_free 156.3 GiB disk_free 193 GiB | |
| 08:23:49 layer 89 wait 0s attn 132s mlp 46s new-share(LB) 0.0497 ram_free 156.1 GiB disk_free 193 GiB | |
| 08:28:59 checkpoint after layer 89 in 307s | |
| 08:31:55 layer 90 wait 0s attn 129s mlp 47s new-share(LB) 0.0432 ram_free 155.8 GiB disk_free 194 GiB | |
| 08:34:30 layer 91 wait 0s attn 106s mlp 46s new-share(LB) 0.0902 ram_free 155.9 GiB disk_free 194 GiB | |
| 08:37:18 layer 92 wait 0s attn 68s mlp 97s new-share(LB) 0.0778 ram_free 155.9 GiB disk_free 194 GiB | |
| 08:39:12 DONE {"littleboy": {"general_wiki": {"mean_nll": 0.12713955342769623, "ppl": 1.1355754801749103, "n_seqs": 64}, "train_chips": {"mean_nll": 1.9303408861160278, "ppl": 6.891859180306433, "n_seqs": 151}, "train_space": {"mean_nll": 1.6638306379318237, "ppl": 5.2794959963845125, "n_seqs": 149}}} | |