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/h5_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/h5_sealed/verdict_fulltail.json
- Command line
-
hf download hf://STAR-future/Trinity/eval/h5_sealed/verdict_fulltail.json
-
curl -L -o verdict_fulltail.json https://huggingface.co/STAR-future/Trinity/resolve/main/eval/h5_sealed/verdict_fulltail.json
3.58 kB
| { | |
| "per_set": { | |
| "holdout_chips": { | |
| "lb": 1.9697812795639038, | |
| "lb_fulltail": 1.9662367105484009, | |
| "base": 1.9667123556137085, | |
| "lb_vs_base_rel": 0.001550352550111711, | |
| "lb_vs_base_ci95": [ | |
| 0.0008378281258046627, | |
| 0.002187892282381653 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0002985858591273427, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0015246899682097137, | |
| 0.0008540984505088991 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_physics": { | |
| "lb": 2.0336203575134277, | |
| "lb_fulltail": 2.028172016143799, | |
| "base": 2.0305306911468506, | |
| "lb_vs_base_rel": 0.0015141831245273352, | |
| "lb_vs_base_ci95": [ | |
| 0.0007008398679317906, | |
| 0.0022891765693202615 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0012096110731363297, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0022700940899085253, | |
| -0.0001225081221491568 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_space": { | |
| "lb": 1.6956207752227783, | |
| "lb_fulltail": 1.6921690702438354, | |
| "base": 1.6933351755142212, | |
| "lb_vs_base_rel": 0.0013593655312433839, | |
| "lb_vs_base_ci95": [ | |
| 0.0008214649089495652, | |
| 0.0019411887478781855 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.000726227939594537, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0017265531903831288, | |
| 0.00015831043674552342 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "wikipedia": { | |
| "lb": 1.4581892490386963, | |
| "lb_fulltail": 1.4590559005737305, | |
| "base": 1.4576597213745117, | |
| "lb_vs_base_rel": 0.00021086647757329047, | |
| "lb_vs_base_ci95": [ | |
| -0.0005579881559242495, | |
| 0.000990384438773617 | |
| ], | |
| "lb_fulltail_vs_base_rel": 0.0010318405693396926, | |
| "lb_fulltail_vs_base_ci95": [ | |
| 0.00014971287127991674, | |
| 0.0020950764883309603 | |
| ], | |
| "n_seqs": 16 | |
| } | |
| }, | |
| "per_set_no_prefix": { | |
| "holdout_chips": { | |
| "lb": 1.9654088020324707, | |
| "lb_fulltail": 1.9629794359207153, | |
| "base": 1.962363839149475, | |
| "lb_vs_base_rel": 0.0015411931090056896, | |
| "lb_vs_base_ci95": [ | |
| 0.0008274689593235962, | |
| 0.0021819700137712056 | |
| ], | |
| "lb_fulltail_vs_base_rel": 0.0002568952040746808, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.000999132529250346, | |
| 0.0014313935098471116 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_physics": { | |
| "lb": 2.030272960662842, | |
| "lb_fulltail": 2.0262444019317627, | |
| "base": 2.0272367000579834, | |
| "lb_vs_base_rel": 0.0014904385898262262, | |
| "lb_vs_base_ci95": [ | |
| 0.0006742609897628426, | |
| 0.0022617472161073236 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0005348465056158602, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0015674914291594177, | |
| 0.0005464247195050117 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "holdout_space": { | |
| "lb": 1.6912583112716675, | |
| "lb_fulltail": 1.6891752481460571, | |
| "base": 1.6890047788619995, | |
| "lb_vs_base_rel": 0.0013437153538689017, | |
| "lb_vs_base_ci95": [ | |
| 0.0008031572317122482, | |
| 0.001932191880769096 | |
| ], | |
| "lb_fulltail_vs_base_rel": 6.741214019712061e-05, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0008766205093706958, | |
| 0.0009333564084954559 | |
| ], | |
| "n_seqs": 15 | |
| }, | |
| "wikipedia": { | |
| "lb": 1.4581892490386963, | |
| "lb_fulltail": 1.4590559005737305, | |
| "base": 1.4576597213745117, | |
| "lb_vs_base_rel": 0.00021086647757329047, | |
| "lb_vs_base_ci95": [ | |
| -0.0005579881559242495, | |
| 0.000990384438773617 | |
| ], | |
| "lb_fulltail_vs_base_rel": 0.0010318405693396926, | |
| "lb_fulltail_vs_base_ci95": [ | |
| 0.00014971287127991674, | |
| 0.0020950764883309603 | |
| ], | |
| "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" | |
| } | |
| } |