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_0.98.log from STAR-future/Trinity: direct link, hf CLI and curl.
- Browser
- Download file 4.69 kB
-
https://huggingface.co/STAR-future/Trinity/resolve/main/eval/t3/k3p/t3_0.98.log
- Command line
-
hf download hf://STAR-future/Trinity/eval/t3/k3p/t3_0.98.log
-
curl -L -o t3_0.98.log https://huggingface.co/STAR-future/Trinity/resolve/main/eval/t3/k3p/t3_0.98.log
4.69 kB
| { | |
| "trained_h4": null, | |
| "cos_cap": 0.98, | |
| "datastore_tokens": 552690, | |
| "fit_vs_holdout_stream_id_overlap": 0, | |
| "val_base_for_tuning": 1.7924848424977269, | |
| "best_nw1": [ | |
| 1.7914481820731327, | |
| 0.005 | |
| ], | |
| "best_nw2": [ | |
| 1.7899571369434226, | |
| 0.0, | |
| 1.05 | |
| ], | |
| "best_nw6_bayes_prior": [ | |
| 1.7924848424977269, | |
| 0.0 | |
| ], | |
| "nw1c_adaptive_5scalar": { | |
| "lam_max": 0.14282803237438202, | |
| "w_e": 0.4663425385951996, | |
| "w_s": 0.271704763174057, | |
| "w_k": -0.8989843130111694, | |
| "b0": -2.5834829807281494, | |
| "e_mu": 1.6718206405639648, | |
| "e_sd": 1.4133943319320679, | |
| "s_mu": 0.8516169786453247, | |
| "s_sd": 0.07401741296052933, | |
| "k_mu": 2.4742469787597656, | |
| "k_sd": 0.8370717763900757 | |
| }, | |
| "holdout": { | |
| "holdout_chips": { | |
| "n_seqs": 23, | |
| "base": 2.0153139363164487, | |
| "nw1_rel": -0.00042653480858033583, | |
| "nw1_ci95": [ | |
| -0.000643985426272733, | |
| -0.00020769715803073448 | |
| ], | |
| "nw1_adaptive_rel": -0.001875163229958, | |
| "nw1_adaptive_ci95": [ | |
| -0.0022699556809408833, | |
| -0.0015104289633614742 | |
| ], | |
| "nw2_rel": -0.0019567632121379143, | |
| "nw2_ci95": [ | |
| -0.0023103918725674473, | |
| -0.0016070158045527166 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": -0.00215970304344553, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| -0.0026217470214250312, | |
| -0.001703164735271886 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.5754, | |
| "smax_p50_p95_p99_max": [ | |
| 0.8423, | |
| 0.9785, | |
| 0.98, | |
| 0.98 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.0 | |
| } | |
| }, | |
| "holdout_physics": { | |
| "n_seqs": 12, | |
| "base": 2.0173222521940866, | |
| "nw1_rel": -5.974977117287474e-05, | |
| "nw1_ci95": [ | |
| -0.0003639112275461426, | |
| 0.0002315192313519037 | |
| ], | |
| "nw1_adaptive_rel": -0.0011411230644196191, | |
| "nw1_adaptive_ci95": [ | |
| -0.0014091555112269465, | |
| -0.0008682341848688492 | |
| ], | |
| "nw2_rel": -0.0019152414571944438, | |
| "nw2_ci95": [ | |
| -0.002443890050282616, | |
| -0.0012973097923860025 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": -0.0018050443831928826, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| -0.0024403850903506577, | |
| -0.001063497393246714 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.5118, | |
| "smax_p50_p95_p99_max": [ | |
| 0.8154, | |
| 0.9678, | |
| 0.98, | |
| 0.98 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.0 | |
| } | |
| }, | |
| "holdout_space": { | |
| "n_seqs": 33, | |
| "base": 1.814829490401528, | |
| "nw1_rel": -0.00040632365005781887, | |
| "nw1_ci95": [ | |
| -0.0006014884107934973, | |
| -0.0002172654070921145 | |
| ], | |
| "nw1_adaptive_rel": -0.001658448171937052, | |
| "nw1_adaptive_ci95": [ | |
| -0.0019581278293456846, | |
| -0.0013677957655677966 | |
| ], | |
| "nw2_rel": -0.0018439196098273371, | |
| "nw2_ci95": [ | |
| -0.0021768300188486104, | |
| -0.0014538277569519798 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": -0.0020307228911406365, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| -0.002399615168757175, | |
| -0.0015901441067258755 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.6004, | |
| "smax_p50_p95_p99_max": [ | |
| 0.8569, | |
| 0.9785, | |
| 0.98, | |
| 0.98 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.0 | |
| } | |
| }, | |
| "wikipedia": { | |
| "n_seqs": 16, | |
| "base": 0.07447204540949315, | |
| "nw1_rel": 5.455925035083914e-05, | |
| "nw1_ci95": [ | |
| 2.4674104792397963e-05, | |
| 9.637710010909884e-05 | |
| ], | |
| "nw1_adaptive_rel": 8.758588332674985e-05, | |
| "nw1_adaptive_ci95": [ | |
| 5.222667963225285e-05, | |
| 0.00013230206498652825 | |
| ], | |
| "nw2_rel": 0.0001418849945839271, | |
| "nw2_ci95": [ | |
| 6.718764286737093e-05, | |
| 0.00021838387015489478 | |
| ], | |
| "nw6_bayes_prior_rel": 0.0, | |
| "nw6_bayes_prior_ci95": [ | |
| 0.0, | |
| 0.0 | |
| ], | |
| "nw1_plus_nw2_nw6_rel": 0.00019641872797673116, | |
| "nw1_plus_nw2_nw6_ci95": [ | |
| 9.676790443504062e-05, | |
| 0.0003069293068146812 | |
| ], | |
| "knn_forensics": { | |
| "exact_163k_top32_hit_rate": 0.3257, | |
| "smax_p50_p95_p99_max": [ | |
| 0.8354, | |
| 0.979, | |
| 0.98, | |
| 0.98 | |
| ], | |
| "frac_neighbors_cos_gt_098": 0.0 | |
| } | |
| } | |
| } | |
| } | |