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
h5_sealed/k3pass_sealed_summary.json
Browse files
eval/h5_sealed/k3pass_sealed_summary.json
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"seq": 2048,
|
| 3 |
+
"n_seqs": 61,
|
| 4 |
+
"streams": 122,
|
| 5 |
+
"layers_run": 93,
|
| 6 |
+
"new_share_lb_by_layer": {
|
| 7 |
+
"0": 0.0,
|
| 8 |
+
"1": 0.0131130525842309,
|
| 9 |
+
"2": 0.0020221646409481764,
|
| 10 |
+
"3": 0.002114717848598957,
|
| 11 |
+
"4": 0.005645251367241144,
|
| 12 |
+
"5": 0.005657258443534374,
|
| 13 |
+
"6": 0.008566433563828468,
|
| 14 |
+
"7": 0.011608686298131943,
|
| 15 |
+
"8": 0.007294200826436281,
|
| 16 |
+
"9": 0.010862256400287151,
|
| 17 |
+
"10": 0.0081386873498559,
|
| 18 |
+
"11": 0.017898809164762497,
|
| 19 |
+
"12": 2.901671177824028e-05,
|
| 20 |
+
"13": 0.0052840434946119785,
|
| 21 |
+
"14": 0.00227681128308177,
|
| 22 |
+
"15": 0.00409585889428854,
|
| 23 |
+
"16": 0.002736075781285763,
|
| 24 |
+
"17": 0.0019651318434625864,
|
| 25 |
+
"18": 0.0008865105919539928,
|
| 26 |
+
"19": 0.0021382314153015614,
|
| 27 |
+
"20": 0.002248795237392187,
|
| 28 |
+
"21": 0.006044481415301561,
|
| 29 |
+
"22": 0.001066114054992795,
|
| 30 |
+
"23": 0.002263803733512759,
|
| 31 |
+
"24": 0.0014278223970904946,
|
| 32 |
+
"25": 0.006194067653268576,
|
| 33 |
+
"26": 0.0016219341196119785,
|
| 34 |
+
"27": 0.0011256482684984803,
|
| 35 |
+
"28": 0.005844866391271353,
|
| 36 |
+
"29": 0.005684273783117533,
|
| 37 |
+
"30": 0.0037081355694681406,
|
| 38 |
+
"31": 0.006534263491630554,
|
| 39 |
+
"32": 0.006418696604669094,
|
| 40 |
+
"33": 0.0083523103967309,
|
| 41 |
+
"34": 0.006142537575215101,
|
| 42 |
+
"35": 0.008167704567313194,
|
| 43 |
+
"36": 0.005561703350394964,
|
| 44 |
+
"37": 0.005623738747090101,
|
| 45 |
+
"38": 0.0023063283879309893,
|
| 46 |
+
"39": 0.0018375583458691835,
|
| 47 |
+
"40": 0.0023028263822197914,
|
| 48 |
+
"41": 0.004143386147916317,
|
| 49 |
+
"42": 0.010738184675574303,
|
| 50 |
+
"43": 0.0024098879657685757,
|
| 51 |
+
"44": 0.007363741286098957,
|
| 52 |
+
"45": 0.0114555973559618,
|
| 53 |
+
"46": 0.013778435997664928,
|
| 54 |
+
"47": 0.02652277611196041,
|
| 55 |
+
"48": 0.003621085546910763,
|
| 56 |
+
"49": 0.001872578519396484,
|
| 57 |
+
"50": 0.0033289173152297735,
|
| 58 |
+
"51": 0.006531761959195137,
|
| 59 |
+
"52": 0.011156925931572914,
|
| 60 |
+
"53": 0.031000854447484016,
|
| 61 |
+
"54": 0.022277330979704857,
|
| 62 |
+
"55": 0.05358286201953888,
|
| 63 |
+
"56": 0.01953274942934513,
|
| 64 |
+
"57": 0.041190724819898605,
|
| 65 |
+
"58": 0.03829755634069443,
|
| 66 |
+
"59": 0.05766221135854721,
|
| 67 |
+
"60": 0.023286912590265274,
|
| 68 |
+
"61": 0.012763851322233677,
|
| 69 |
+
"62": 0.023227877914905548,
|
| 70 |
+
"63": 0.017283953726291656,
|
| 71 |
+
"64": 0.013147572055459023,
|
| 72 |
+
"65": 0.013407221995294094,
|
| 73 |
+
"66": 0.009975745342671871,
|
| 74 |
+
"67": 0.0287590641528368,
|
| 75 |
+
"68": 0.03948524221777916,
|
| 76 |
+
"69": 0.016939256340265274,
|
| 77 |
+
"70": 0.02120971493422985,
|
| 78 |
+
"71": 0.014433813281357288,
|
| 79 |
+
"72": 0.014058096334338188,
|
| 80 |
+
"73": 0.01674664579331875,
|
| 81 |
+
"74": 0.014237700030207634,
|
| 82 |
+
"75": 0.010539069771766663,
|
| 83 |
+
"76": 0.030390003696084023,
|
| 84 |
+
"77": 0.029951250180602074,
|
| 85 |
+
"78": 0.026156064122915268,
|
| 86 |
+
"79": 0.026370687410235405,
|
| 87 |
+
"80": 0.03692026436328888,
|
| 88 |
+
"81": 0.07409167289733887,
|
| 89 |
+
"82": 0.054542914032936096,
|
| 90 |
+
"83": 0.06197419390082359,
|
| 91 |
+
"84": 0.019097499549388885,
|
| 92 |
+
"85": 0.04209624603390694,
|
| 93 |
+
"86": 0.029580537229776382,
|
| 94 |
+
"87": 0.048611998558044434,
|
| 95 |
+
"88": 0.060033075511455536,
|
| 96 |
+
"89": 0.04846141114830971,
|
| 97 |
+
"90": 0.052140530198812485,
|
| 98 |
+
"91": 0.10788613557815552,
|
| 99 |
+
"92": 0.08617613464593887
|
| 100 |
+
},
|
| 101 |
+
"per_set": {
|
| 102 |
+
"littleboy": {
|
| 103 |
+
"holdout_chips": {
|
| 104 |
+
"mean_nll": 1.9697812795639038,
|
| 105 |
+
"ppl": 7.16910828636314,
|
| 106 |
+
"n_seqs": 15
|
| 107 |
+
},
|
| 108 |
+
"holdout_physics": {
|
| 109 |
+
"mean_nll": 2.0336203575134277,
|
| 110 |
+
"ppl": 7.64170203267993,
|
| 111 |
+
"n_seqs": 15
|
| 112 |
+
},
|
| 113 |
+
"holdout_space": {
|
| 114 |
+
"mean_nll": 1.6956207752227783,
|
| 115 |
+
"ppl": 5.450028157757298,
|
| 116 |
+
"n_seqs": 15
|
| 117 |
+
},
|
| 118 |
+
"wikipedia": {
|
| 119 |
+
"mean_nll": 1.4581893682479858,
|
| 120 |
+
"ppl": 4.298170075343834,
|
| 121 |
+
"n_seqs": 16
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
"base": {
|
| 125 |
+
"holdout_chips": {
|
| 126 |
+
"mean_nll": 1.9667123556137085,
|
| 127 |
+
"ppl": 7.147140564117579,
|
| 128 |
+
"n_seqs": 15
|
| 129 |
+
},
|
| 130 |
+
"holdout_physics": {
|
| 131 |
+
"mean_nll": 2.0305309295654297,
|
| 132 |
+
"ppl": 7.618129975684482,
|
| 133 |
+
"n_seqs": 15
|
| 134 |
+
},
|
| 135 |
+
"holdout_space": {
|
| 136 |
+
"mean_nll": 1.6933352947235107,
|
| 137 |
+
"ppl": 5.437586447740785,
|
| 138 |
+
"n_seqs": 15
|
| 139 |
+
},
|
| 140 |
+
"wikipedia": {
|
| 141 |
+
"mean_nll": 1.4576598405838013,
|
| 142 |
+
"ppl": 4.29589467787969,
|
| 143 |
+
"n_seqs": 16
|
| 144 |
+
}
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
}
|