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
k3pass_sealed.log (running)
Browse files- eval/k3pass_sealed.log +8 -39
eval/k3pass_sealed.log
CHANGED
|
@@ -10,42 +10,11 @@
|
|
| 10 |
- tokenization_kimi.py
|
| 11 |
- encoding_k3.py
|
| 12 |
. 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.
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
13:27:57 layer 4 wait 0s attn 83s mlp 62s new-share(LB) 0.0056 ram_free 73.1 GiB disk_free 176 GiB
|
| 22 |
-
13:30:22 layer 5 wait 0s attn 78s mlp 64s new-share(LB) 0.0057 ram_free 73.8 GiB disk_free 176 GiB
|
| 23 |
-
13:32:36 layer 6 wait 0s attn 71s mlp 62s new-share(LB) 0.0086 ram_free 74.2 GiB disk_free 176 GiB
|
| 24 |
-
13:34:46 layer 7 wait 0s attn 49s mlp 79s new-share(LB) 0.0116 ram_free 72.8 GiB disk_free 176 GiB
|
| 25 |
-
13:37:04 layer 8 wait 0s attn 72s mlp 64s new-share(LB) 0.0073 ram_free 73.5 GiB disk_free 176 GiB
|
| 26 |
-
13:39:23 layer 9 wait 0s attn 72s mlp 66s new-share(LB) 0.0109 ram_free 74.2 GiB disk_free 176 GiB
|
| 27 |
-
13:41:41 layer 10 wait 0s attn 68s mlp 68s new-share(LB) 0.0081 ram_free 74.2 GiB disk_free 176 GiB
|
| 28 |
-
13:43:46 layer 11 wait 0s attn 44s mlp 79s new-share(LB) 0.0179 ram_free 74.1 GiB disk_free 176 GiB
|
| 29 |
-
13:46:15 layer 12 wait 0s attn 91s mlp 56s new-share(LB) 0.0000 ram_free 74.2 GiB disk_free 172 GiB
|
| 30 |
-
13:48:32 layer 13 wait 0s attn 70s mlp 66s new-share(LB) 0.0053 ram_free 74.2 GiB disk_free 172 GiB
|
| 31 |
-
13:50:46 layer 14 wait 0s attn 71s mlp 61s new-share(LB) 0.0023 ram_free 74.4 GiB disk_free 173 GiB
|
| 32 |
-
13:52:52 layer 15 wait 0s attn 47s mlp 77s new-share(LB) 0.0041 ram_free 74.4 GiB disk_free 173 GiB
|
| 33 |
-
13:55:11 layer 16 wait 0s attn 78s mlp 60s new-share(LB) 0.0027 ram_free 74.5 GiB disk_free 172 GiB
|
| 34 |
-
13:57:28 layer 17 wait 0s attn 61s mlp 75s new-share(LB) 0.0020 ram_free 74.5 GiB disk_free 172 GiB
|
| 35 |
-
13:59:43 layer 18 wait 0s attn 68s mlp 65s new-share(LB) 0.0009 ram_free 74.5 GiB disk_free 173 GiB
|
| 36 |
-
14:01:49 layer 19 wait 0s attn 37s mlp 87s new-share(LB) 0.0021 ram_free 74.5 GiB disk_free 173 GiB
|
| 37 |
-
14:04:08 layer 20 wait 0s attn 68s mlp 68s new-share(LB) 0.0023 ram_free 74.5 GiB disk_free 172 GiB
|
| 38 |
-
14:06:23 layer 21 wait 0s attn 60s mlp 74s new-share(LB) 0.0060 ram_free 74.6 GiB disk_free 172 GiB
|
| 39 |
-
14:08:33 layer 22 wait 0s attn 64s mlp 65s new-share(LB) 0.0011 ram_free 74.6 GiB disk_free 173 GiB
|
| 40 |
-
14:10:44 layer 23 wait 0s attn 40s mlp 88s new-share(LB) 0.0023 ram_free 73.7 GiB disk_free 173 GiB
|
| 41 |
-
14:13:06 layer 24 wait 0s attn 84s mlp 57s new-share(LB) 0.0014 ram_free 72.8 GiB disk_free 169 GiB
|
| 42 |
-
14:15:24 layer 25 wait 0s attn 62s mlp 75s new-share(LB) 0.0062 ram_free 72.5 GiB disk_free 169 GiB
|
| 43 |
-
14:17:36 layer 26 wait 0s attn 71s mlp 59s new-share(LB) 0.0016 ram_free 72.4 GiB disk_free 169 GiB
|
| 44 |
-
14:19:41 layer 27 wait 0s attn 47s mlp 77s new-share(LB) 0.0011 ram_free 73.3 GiB disk_free 169 GiB
|
| 45 |
-
14:22:06 layer 28 wait 0s attn 87s mlp 57s new-share(LB) 0.0059 ram_free 73.6 GiB disk_free 169 GiB
|
| 46 |
-
14:24:36 layer 29 wait 0s attn 89s mlp 59s new-share(LB) 0.0057 ram_free 73.5 GiB disk_free 169 GiB
|
| 47 |
-
14:26:58 layer 30 wait 0s attn 73s mlp 67s new-share(LB) 0.0037 ram_free 73.8 GiB disk_free 169 GiB
|
| 48 |
-
14:29:19 layer 31 wait 0s attn 56s mlp 84s new-share(LB) 0.0065 ram_free 73.8 GiB disk_free 169 GiB
|
| 49 |
-
14:31:42 layer 32 wait 0s attn 80s mlp 61s new-share(LB) 0.0064 ram_free 73.9 GiB disk_free 169 GiB
|
| 50 |
-
14:34:10 layer 33 wait 0s attn 83s mlp 63s new-share(LB) 0.0084 ram_free 73.9 GiB disk_free 169 GiB
|
| 51 |
-
14:36:23 layer 34 wait 0s attn 62s mlp 70s new-share(LB) 0.0061 ram_free 74.0 GiB disk_free 169 GiB
|
|
|
|
| 10 |
- tokenization_kimi.py
|
| 11 |
- encoding_k3.py
|
| 12 |
. 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.
|
| 13 |
+
14:34:25 sequences 61 streams 122 tokens 249856 sets ['holdout_chips', 'holdout_physics', 'holdout_space', 'wikipedia']
|
| 14 |
+
14:34:25 no checkpoint in STAR-future/Trinity-k3ckpt-sealed ValueError
|
| 15 |
+
14:34:25 fingerprint 845a895a9ceffbd1 start at layer 0 ram_free 80.8 GiB disk_free 236 GiB
|
| 16 |
+
14:34:51 GPU NVIDIA A100-SXM4-40GB 39.5 GiB, sub-chunk 32768 expert group 262144
|
| 17 |
+
14:36:28 layer 0 wait 0s attn 84s mlp 13s new-share(LB) 0.0000 ram_free 74.2 GiB disk_free 196 GiB
|
| 18 |
+
14:38:42 layer 1 wait 0s attn 63s mlp 71s new-share(LB) 0.0131 ram_free 73.7 GiB disk_free 176 GiB
|
| 19 |
+
14:41:14 layer 2 wait 0s attn 86s mlp 65s new-share(LB) 0.0020 ram_free 73.7 GiB disk_free 176 GiB
|
| 20 |
+
14:43:16 layer 3 wait 0s attn 49s mlp 71s new-share(LB) 0.0021 ram_free 73.9 GiB disk_free 176 GiB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|