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
File size: 1,760 Bytes
f80e81a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | {
"per_set": {
"holdout_chips": {
"lb": 2.0153141021728516,
"lb_unfrozen": 2.014695405960083,
"base": 2.0126824378967285,
"lb_vs_base_rel": 0.0012939341831952333,
"lb_vs_base_ci95": [
0.0007877314215875231,
0.0018433852528687564
],
"lb_unfrozen_vs_base_rel": 0.000986854312941432,
"lb_unfrozen_vs_base_ci95": [
0.0004770590050611645,
0.0014949543809052556
],
"n_seqs": 23
},
"holdout_physics": {
"lb": 2.017322301864624,
"lb_unfrozen": 2.0166289806365967,
"base": 2.014240026473999,
"lb_vs_base_rel": 0.001520944177173078,
"lb_vs_base_ci95": [
0.0006466533057391643,
0.002257457881933078
],
"lb_unfrozen_vs_base_rel": 0.0011796689359471202,
"lb_unfrozen_vs_base_ci95": [
0.00034601826482685285,
0.0019321340427268295
],
"n_seqs": 12
},
"holdout_space": {
"lb": 1.8148294687271118,
"lb_unfrozen": 1.8143576383590698,
"base": 1.8128981590270996,
"lb_vs_base_rel": 0.001064121606759727,
"lb_vs_base_ci95": [
0.0006397994919097982,
0.0014875638647936283
],
"lb_unfrozen_vs_base_rel": 0.0008069642353802919,
"lb_unfrozen_vs_base_ci95": [
0.00036122833043918947,
0.0012642378715099767
],
"n_seqs": 33
},
"wikipedia": {
"lb": 0.07447204738855362,
"lb_unfrozen": 0.0744750052690506,
"base": 0.07404302805662155,
"lb_vs_base_rel": 0.00538376672193408,
"lb_vs_base_ci95": [
-0.0002494675063644536,
0.011335790297016497
],
"lb_unfrozen_vs_base_rel": 0.0055040777660906315,
"lb_unfrozen_vs_base_ci95": [
-0.0001255403592949733,
0.011381046939641233
],
"n_seqs": 16
}
},
"acceptance": {
"domain_sets_meeting_-2%": "0/3",
"general_ok": false,
"verdict": "FAIL"
}
} |