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/k3pass_holdout_summary.json from STAR-future/Trinity: direct link, hf CLI and curl.
- Browser
- Download file 3.74 kB
-
https://huggingface.co/STAR-future/Trinity/resolve/main/eval/k3pass_holdout_summary.json
- Command line
-
hf download hf://STAR-future/Trinity/eval/k3pass_holdout_summary.json
-
curl -L -o k3pass_holdout_summary.json https://huggingface.co/STAR-future/Trinity/resolve/main/eval/k3pass_holdout_summary.json
3.74 kB
| { | |
| "seq": 2048, | |
| "n_seqs": 84, | |
| "streams": 168, | |
| "layers_run": 93, | |
| "new_share_lb_by_layer": { | |
| "0": 0.0, | |
| "1": 0.013238816522061825, | |
| "2": 0.0019814628176391125, | |
| "3": 0.0018241519574075937, | |
| "4": 0.00546918623149395, | |
| "5": 0.0049892608076334, | |
| "6": 0.008883158676326275, | |
| "7": 0.0125885009765625, | |
| "8": 0.007046291138976812, | |
| "9": 0.011134919710457325, | |
| "10": 0.008432297967374325, | |
| "11": 0.01776450127363205, | |
| "12": 6.212507287273183e-05, | |
| "13": 0.00536273792386055, | |
| "14": 0.0024661109782755375, | |
| "15": 0.004229591228067875, | |
| "16": 0.0036159697920084, | |
| "17": 0.001674470491707325, | |
| "18": 0.00171661376953125, | |
| "19": 0.00380670465528965, | |
| "20": 0.001410711440257728, | |
| "21": 0.006146022584289312, | |
| "22": 0.0013126191915944219, | |
| "23": 0.0018299648072570562, | |
| "24": 0.0011952718487009406, | |
| "25": 0.0056973411701619625, | |
| "26": 0.0012828281614929438, | |
| "27": 0.000968569831456989, | |
| "28": 0.0062274024821817875, | |
| "29": 0.005106608383357525, | |
| "30": 0.0033260527998209, | |
| "31": 0.0064061484299600124, | |
| "32": 0.007645380217581987, | |
| "33": 0.007984706200659275, | |
| "34": 0.006938752718269825, | |
| "35": 0.00876363180577755, | |
| "36": 0.0056668235920369625, | |
| "37": 0.006992158479988575, | |
| "38": 0.0021427699830383062, | |
| "39": 0.0018205188680440187, | |
| "40": 0.0025093441363424063, | |
| "41": 0.0046019782312214375, | |
| "42": 0.01042683981359005, | |
| "43": 0.00260162353515625, | |
| "44": 0.0076450165361166, | |
| "45": 0.011601402424275875, | |
| "46": 0.0167646873742342, | |
| "47": 0.0270538330078125, | |
| "48": 0.0030535743571817875, | |
| "49": 0.0008675711578689516, | |
| "50": 0.0027745566330850124, | |
| "51": 0.007324945647269487, | |
| "52": 0.014064607210457325, | |
| "53": 0.0325295589864254, | |
| "54": 0.01956903375685215, | |
| "55": 0.04738471657037735, | |
| "56": 0.0187832061201334, | |
| "57": 0.0364844910800457, | |
| "58": 0.04086049646139145, | |
| "59": 0.05180395394563675, | |
| "60": 0.02049800381064415, | |
| "61": 0.010311308316886425, | |
| "62": 0.02434648759663105, | |
| "63": 0.01523408479988575, | |
| "64": 0.007838294841349125, | |
| "65": 0.01135762594640255, | |
| "66": 0.009531657211482525, | |
| "67": 0.02469199150800705, | |
| "68": 0.03601764515042305, | |
| "69": 0.01605588011443615, | |
| "70": 0.017930893227458, | |
| "71": 0.01252019964158535, | |
| "72": 0.011260986328125, | |
| "73": 0.01758139580488205, | |
| "74": 0.0114600770175457, | |
| "75": 0.01026262529194355, | |
| "76": 0.0272056944668293, | |
| "77": 0.0272067841142416, | |
| "78": 0.02431451715528965, | |
| "79": 0.02107783779501915, | |
| "80": 0.0284129548817873, | |
| "81": 0.06049274280667305, | |
| "82": 0.04520125687122345, | |
| "83": 0.0555463545024395, | |
| "84": 0.02372051402926445, | |
| "85": 0.0270069669932127, | |
| "86": 0.02525983564555645, | |
| "87": 0.04222579300403595, | |
| "88": 0.04994020238518715, | |
| "89": 0.0508481003344059, | |
| "90": 0.04550570622086525, | |
| "91": 0.09350113570690155, | |
| "92": 0.0791546031832695 | |
| }, | |
| "per_set": { | |
| "littleboy": { | |
| "holdout_chips": { | |
| "mean_nll": 2.0153141021728516, | |
| "ppl": 7.503083746021646, | |
| "n_seqs": 23 | |
| }, | |
| "holdout_physics": { | |
| "mean_nll": 2.017322063446045, | |
| "ppl": 7.518164783615795, | |
| "n_seqs": 12 | |
| }, | |
| "holdout_space": { | |
| "mean_nll": 1.8148294687271118, | |
| "ppl": 6.1400290211964785, | |
| "n_seqs": 33 | |
| }, | |
| "wikipedia": { | |
| "mean_nll": 0.07447204738855362, | |
| "ppl": 1.0773152293273611, | |
| "n_seqs": 16 | |
| } | |
| }, | |
| "base": { | |
| "holdout_chips": { | |
| "mean_nll": 2.0126826763153076, | |
| "ppl": 7.483365891854564, | |
| "n_seqs": 23 | |
| }, | |
| "holdout_physics": { | |
| "mean_nll": 2.01423978805542, | |
| "ppl": 7.495027405524041, | |
| "n_seqs": 12 | |
| }, | |
| "holdout_space": { | |
| "mean_nll": 1.81289803981781, | |
| "ppl": 6.128181436707617, | |
| "n_seqs": 33 | |
| }, | |
| "wikipedia": { | |
| "mean_nll": 0.07404302805662155, | |
| "ppl": 1.076853139397239, | |
| "n_seqs": 16 | |
| } | |
| } | |
| } | |
| } |