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/h6_sealed/verdict_fulltail.json from STAR-future/Trinity: direct link, hf CLI and curl.
- Browser
- Download file 3.58 kB
-
https://huggingface.co/STAR-future/Trinity/resolve/main/eval/h6_sealed/verdict_fulltail.json
- Command line
-
hf download hf://STAR-future/Trinity/eval/h6_sealed/verdict_fulltail.json
-
curl -L -o verdict_fulltail.json https://huggingface.co/STAR-future/Trinity/resolve/main/eval/h6_sealed/verdict_fulltail.json
3.58 kB
| { | |
| "per_set": { | |
| "holdout_chips": { | |
| "lb": 1.9697812795639038, | |
| "lb_fulltail": 1.9628031253814697, | |
| "base": 1.9667123556137085, | |
| "lb_vs_base_rel": 0.001550352550111711, | |
| "lb_vs_base_ci95": [ | |
| 0.0008378281258046627, | |
| 0.002187892282381653 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.001995441038161516, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.003328450856497511, | |
| -0.0006522764873807331 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_physics": { | |
| "lb": 2.0336203575134277, | |
| "lb_fulltail": 2.0233511924743652, | |
| "base": 2.0305306911468506, | |
| "lb_vs_base_rel": 0.0015141831245273352, | |
| "lb_vs_base_ci95": [ | |
| 0.0007008398679317906, | |
| 0.0022891765693202615 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0035593812353909016, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.004725323745515197, | |
| -0.0023180414689704778 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_space": { | |
| "lb": 1.6956207752227783, | |
| "lb_fulltail": 1.69259774684906, | |
| "base": 1.6933351755142212, | |
| "lb_vs_base_rel": 0.0013593655312433839, | |
| "lb_vs_base_ci95": [ | |
| 0.0008214649089495652, | |
| 0.0019411887478781855 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0004375406133476645, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.001633458657306619, | |
| 0.0006288035539910192 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "wikipedia": { | |
| "lb": 1.4581892490386963, | |
| "lb_fulltail": 1.4584885835647583, | |
| "base": 1.4576597213745117, | |
| "lb_vs_base_rel": 0.00021086647757329047, | |
| "lb_vs_base_ci95": [ | |
| -0.0005579881559242495, | |
| 0.000990384438773617 | |
| ], | |
| "lb_fulltail_vs_base_rel": 0.0006636385223828256, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0002835542967659421, | |
| 0.001768539397744462 | |
| ], | |
| "n_seqs": 16 | |
| } | |
| }, | |
| "per_set_no_prefix": { | |
| "holdout_chips": { | |
| "lb": 1.9654088020324707, | |
| "lb_fulltail": 1.9585025310516357, | |
| "base": 1.962363839149475, | |
| "lb_vs_base_rel": 0.0015411931090056896, | |
| "lb_vs_base_ci95": [ | |
| 0.0008274689593235962, | |
| 0.0021819700137712056 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0019736401736736298, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0032924361003097147, | |
| -0.0006745724691427321 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_physics": { | |
| "lb": 2.030272960662842, | |
| "lb_fulltail": 2.020141363143921, | |
| "base": 2.0272367000579834, | |
| "lb_vs_base_rel": 0.0014904385898262262, | |
| "lb_vs_base_ci95": [ | |
| 0.0006742609897628426, | |
| 0.0022617472161073236 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0035220058634877205, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0046625552349723876, | |
| -0.0022826649481430656 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_space": { | |
| "lb": 1.6912583112716675, | |
| "lb_fulltail": 1.6882901191711426, | |
| "base": 1.6890047788619995, | |
| "lb_vs_base_rel": 0.0013437153538689017, | |
| "lb_vs_base_ci95": [ | |
| 0.0008031572317122482, | |
| 0.001932191880769096 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0004229653859511018, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0016266485705273225, | |
| 0.0006680650272755878 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "wikipedia": { | |
| "lb": 1.4581892490386963, | |
| "lb_fulltail": 1.4584885835647583, | |
| "base": 1.4576597213745117, | |
| "lb_vs_base_rel": 0.00021086647757329047, | |
| "lb_vs_base_ci95": [ | |
| -0.0005579881559242495, | |
| 0.000990384438773617 | |
| ], | |
| "lb_fulltail_vs_base_rel": 0.0006636385223828256, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0002835542967659421, | |
| 0.001768539397744462 | |
| ], | |
| "n_seqs": 16 | |
| } | |
| }, | |
| "skip_prefix_tokens": 2, | |
| "acceptance": { | |
| "domain_sets_meeting_-2%": "0/3", | |
| "general_ok": true, | |
| "verdict": "FAIL" | |
| }, | |
| "acceptance_no_prefix": { | |
| "domain_sets_meeting_-2%": "0/3", | |
| "general_ok": true, | |
| "verdict": "FAIL" | |
| } | |
| } |