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/t3/k3p/t3_2.0.log from STAR-future/Trinity: direct link, hf CLI and curl.
- Browser
- Download file 4.71 kB
-
https://huggingface.co/STAR-future/Trinity/resolve/main/eval/t3/k3p/t3_2.0.log
- Command line
-
hf download hf://STAR-future/Trinity/eval/t3/k3p/t3_2.0.log
-
curl -L -o t3_2.0.log https://huggingface.co/STAR-future/Trinity/resolve/main/eval/t3/k3p/t3_2.0.log
4.71 kB
| { | |
| "trained_h4": null, | |
| "cos_cap": 2.0, | |
| "datastore_tokens": 552690, | |
| "fit_vs_holdout_stream_id_overlap": 0, | |
| "val_base_for_tuning": 1.7924848424977269, | |
| "best_nw1": [ | |
| 1.7911352864627181, | |
| 0.005 | |
| ], | |
| "best_nw2": [ | |
| 1.7899860595834667, | |
| 0.0, | |
| 1.05 | |
| ], | |
| "best_nw6_bayes_prior": [ | |
| 1.7924848424977269, | |
| 0.0 | |
| ], | |
| "nw1c_adaptive_5scalar": { | |
| "lam_max": 0.14605014026165009, | |
| "w_e": 0.5117327570915222, | |
| "w_s": 0.30714601278305054, | |
| "w_k": -0.8405895233154297, | |
| "b0": -2.5848870277404785, | |
| "e_mu": 1.6718206405639648, | |
| "e_sd": 1.4133943319320679, | |
| "s_mu": 0.8526877164840698, | |
| "s_sd": 0.07610781490802765, | |
| "k_mu": 2.4422430992126465, | |
| "k_sd": 0.8638404607772827 | |
| }, | |
| "holdout": { | |
| "holdout_chips": { | |
| "n_seqs": 23, | |
| "base": 2.0153139363164487, | |
| "nw1_rel": -0.00042414020451567885, | |
| "nw1_ci95": [ | |
| -0.0006500189359592208, | |
| -0.00018184507492562856 | |
| ], | |
| "nw1_adaptive_rel": -0.0018185021156319166, | |
| "nw1_adaptive_ci95": [ | |
| -0.0022234668262848495, | |
| -0.0014269747290495188 | |
| ], | |
| "nw2_rel": -0.0019464853235597703, | |
| "nw2_ci95": [ | |
| -0.002294339528135086, | |
| -0.0016002829460311702 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": -0.0021528139902816093, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| -0.0026171301714501037, | |
| -0.001696819373172624 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.5774, | |
| "smax_p50_p95_p99_max": [ | |
| 0.8418, | |
| 0.9839, | |
| 1.0, | |
| 1.001 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.05658 | |
| } | |
| }, | |
| "holdout_physics": { | |
| "n_seqs": 12, | |
| "base": 2.0173222521940866, | |
| "nw1_rel": -0.00011290059105216108, | |
| "nw1_ci95": [ | |
| -0.00040071157080284145, | |
| 0.00016308638957202753 | |
| ], | |
| "nw1_adaptive_rel": -0.0011584487260150706, | |
| "nw1_adaptive_ci95": [ | |
| -0.00143419660762742, | |
| -0.0008897113175192177 | |
| ], | |
| "nw2_rel": -0.0019486802541808486, | |
| "nw2_ci95": [ | |
| -0.002488130153467809, | |
| -0.001328131891249284 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": -0.0018801085830723466, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| -0.0025104870554192825, | |
| -0.0011537946113945555 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.514, | |
| "smax_p50_p95_p99_max": [ | |
| 0.8149, | |
| 0.9688, | |
| 1.0, | |
| 1.001 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.03684 | |
| } | |
| }, | |
| "holdout_space": { | |
| "n_seqs": 33, | |
| "base": 1.814829490401528, | |
| "nw1_rel": -0.0004809218499076511, | |
| "nw1_ci95": [ | |
| -0.0006787515025836895, | |
| -0.00029849930451560314 | |
| ], | |
| "nw1_adaptive_rel": -0.0017923262484766415, | |
| "nw1_adaptive_ci95": [ | |
| -0.0020996119930045947, | |
| -0.001501971090376825 | |
| ], | |
| "nw2_rel": -0.0018393376533232275, | |
| "nw2_ci95": [ | |
| -0.0021738291891191443, | |
| -0.0014506555957402444 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": -0.002098739982701335, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| -0.0024797602883544906, | |
| -0.0016491764518195304 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.6021, | |
| "smax_p50_p95_p99_max": [ | |
| 0.8569, | |
| 0.9844, | |
| 1.0, | |
| 1.001 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.05887 | |
| } | |
| }, | |
| "wikipedia": { | |
| "n_seqs": 16, | |
| "base": 0.07447204540949315, | |
| "nw1_rel": 4.829608909425421e-05, | |
| "nw1_ci95": [ | |
| 2.013569134848552e-05, | |
| 9.125179626484646e-05 | |
| ], | |
| "nw1_adaptive_rel": 6.598993405139734e-05, | |
| "nw1_adaptive_ci95": [ | |
| 3.614792103597795e-05, | |
| 0.00010768547907878701 | |
| ], | |
| "nw2_rel": 7.376605751040735e-05, | |
| "nw2_ci95": [ | |
| 3.332229943911483e-05, | |
| 0.00011665616993535365 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": 0.00012204446987720483, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| 5.8133702476758635e-05, | |
| 0.00020114681995437556 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.3203, | |
| "smax_p50_p95_p99_max": [ | |
| 0.835, | |
| 1.0, | |
| 1.0, | |
| 1.001 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.0734 | |
| } | |
| } | |
| } | |
| } | |