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/h4/dev_verdict_h4.json from STAR-future/Trinity: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/STAR-future/Trinity/resolve/main/eval/h4/dev_verdict_h4.json
- Command line
-
hf download hf://STAR-future/Trinity/eval/h4/dev_verdict_h4.json
-
curl -L -o dev_verdict_h4.json https://huggingface.co/STAR-future/Trinity/resolve/main/eval/h4/dev_verdict_h4.json
1.76 kB
| { | |
| "per_set": { | |
| "holdout_chips": { | |
| "lb": 2.0153141021728516, | |
| "lb_fulltail": 2.007251262664795, | |
| "base": 2.0126824378967285, | |
| "lb_vs_base_rel": 0.0012939341831952333, | |
| "lb_vs_base_ci95": [ | |
| 0.0007877314215875231, | |
| 0.0018433852528687564 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.002762849209830165, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.003780279657803476, | |
| -0.0017015654593706133 | |
| ], | |
| "n_seqs": 23 | |
| }, | |
| "holdout_physics": { | |
| "lb": 2.017322301864624, | |
| "lb_fulltail": 2.012094259262085, | |
| "base": 2.014240026473999, | |
| "lb_vs_base_rel": 0.001520944177173078, | |
| "lb_vs_base_ci95": [ | |
| 0.0006466533057391643, | |
| 0.002257457881933078 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0010340148583054543, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0021781119285151362, | |
| -1.5759651660119163e-05 | |
| ], | |
| "n_seqs": 12 | |
| }, | |
| "holdout_space": { | |
| "lb": 1.8148294687271118, | |
| "lb_fulltail": 1.8069287538528442, | |
| "base": 1.8128981590270996, | |
| "lb_vs_base_rel": 0.001064121606759727, | |
| "lb_vs_base_ci95": [ | |
| 0.0006397994919097982, | |
| 0.0014875638647936283 | |
| ], | |
| "lb_fulltail_vs_base_rel": -0.0032975950744003057, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.004030649410560727, | |
| -0.0024991867889184506 | |
| ], | |
| "n_seqs": 33 | |
| }, | |
| "wikipedia": { | |
| "lb": 0.07447204738855362, | |
| "lb_fulltail": 0.07440413534641266, | |
| "base": 0.07404302805662155, | |
| "lb_vs_base_rel": 0.00538376672193408, | |
| "lb_vs_base_ci95": [ | |
| -0.0002494675063644536, | |
| 0.011335790297016497 | |
| ], | |
| "lb_fulltail_vs_base_rel": 0.00511905737221241, | |
| "lb_fulltail_vs_base_ci95": [ | |
| -0.0006487372258561663, | |
| 0.011820399155840275 | |
| ], | |
| "n_seqs": 16 | |
| } | |
| }, | |
| "acceptance": { | |
| "domain_sets_meeting_-2%": "0/3", | |
| "general_ok": false, | |
| "verdict": "FAIL" | |
| } | |
| } |