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
h6_train.log (running)
Browse files- eval/h6_train.log +20 -0
eval/h6_train.log
CHANGED
|
@@ -20,3 +20,23 @@ val_before=1.811077 identity_check=1.811077 val_gen_before=0.11098629981279373
|
|
| 20 |
{"step": 300, "loss_domain": 1.834093451499939, "loss_kl": 0.00025800312869250774, "s_per_step": 1.465, "io_ms": 867.6}
|
| 21 |
{"step": 320, "loss_domain": 1.706024408340454, "loss_kl": 0.00010568042489467189, "s_per_step": 1.452, "io_ms": 868.1}
|
| 22 |
{"step": 340, "loss_domain": 1.8530840873718262, "loss_kl": 0.0001466285320930183, "s_per_step": 1.44, "io_ms": 868.6}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
{"step": 300, "loss_domain": 1.834093451499939, "loss_kl": 0.00025800312869250774, "s_per_step": 1.465, "io_ms": 867.6}
|
| 21 |
{"step": 320, "loss_domain": 1.706024408340454, "loss_kl": 0.00010568042489467189, "s_per_step": 1.452, "io_ms": 868.1}
|
| 22 |
{"step": 340, "loss_domain": 1.8530840873718262, "loss_kl": 0.0001466285320930183, "s_per_step": 1.44, "io_ms": 868.6}
|
| 23 |
+
{"step": 360, "loss_domain": 1.7486896514892578, "loss_kl": 0.0002478684182278812, "s_per_step": 1.429, "io_ms": 868.1}
|
| 24 |
+
{"step": 380, "loss_domain": 1.7543526887893677, "loss_kl": 0.0003904197656083852, "s_per_step": 1.418, "io_ms": 866.4}
|
| 25 |
+
{"step": 400, "loss_domain": 1.834913730621338, "loss_kl": 0.00020755105651915073, "s_per_step": 1.408, "io_ms": 865.4}
|
| 26 |
+
{"step": 420, "loss_domain": 1.7239868640899658, "loss_kl": 0.00026509235613048077, "s_per_step": 1.398, "io_ms": 863.0}
|
| 27 |
+
{"step": 440, "loss_domain": 1.7783091068267822, "loss_kl": 0.00011548399925231934, "s_per_step": 1.39, "io_ms": 861.6}
|
| 28 |
+
{"step": 460, "loss_domain": 1.676084280014038, "loss_kl": 0.00019031506963074207, "s_per_step": 1.381, "io_ms": 859.7}
|
| 29 |
+
{"step": 480, "loss_domain": 1.6346447467803955, "loss_kl": 0.00018780518439598382, "s_per_step": 1.372, "io_ms": 855.9}
|
| 30 |
+
{"step": 500, "loss_domain": 1.552187442779541, "loss_kl": 0.0003653417224995792, "s_per_step": 1.365, "io_ms": 854.6}
|
| 31 |
+
{"step": 520, "loss_domain": 1.8644002676010132, "loss_kl": 0.00014427720452658832, "s_per_step": 1.489, "io_ms": 855.0}
|
| 32 |
+
{"step": 540, "loss_domain": 1.9788585901260376, "loss_kl": 0.00016289990162476897, "s_per_step": 1.48, "io_ms": 855.5}
|
| 33 |
+
{"step": 560, "loss_domain": 1.5889108180999756, "loss_kl": 0.00030174036510288715, "s_per_step": 1.471, "io_ms": 856.0}
|
| 34 |
+
{"step": 580, "loss_domain": 1.8621129989624023, "loss_kl": 0.00030501832952722907, "s_per_step": 1.463, "io_ms": 855.8}
|
| 35 |
+
{"step": 600, "loss_domain": 1.5730628967285156, "loss_kl": 0.0002157585695385933, "s_per_step": 1.455, "io_ms": 855.3}
|
| 36 |
+
{"step": 620, "loss_domain": 1.6340140104293823, "loss_kl": 0.00021901710715610534, "s_per_step": 1.447, "io_ms": 854.6}
|
| 37 |
+
{"step": 640, "loss_domain": 1.7088487148284912, "loss_kl": 0.0003334375796839595, "s_per_step": 1.439, "io_ms": 853.3}
|
| 38 |
+
{"step": 660, "loss_domain": 1.8535516262054443, "loss_kl": 0.0003963243216276169, "s_per_step": 1.431, "io_ms": 851.3}
|
| 39 |
+
{"step": 680, "loss_domain": 1.6387689113616943, "loss_kl": 0.00017990454216487706, "s_per_step": 1.423, "io_ms": 849.3}
|
| 40 |
+
{"step": 700, "loss_domain": 1.8697435855865479, "loss_kl": 0.0003749538154806942, "s_per_step": 1.415, "io_ms": 847.1}
|
| 41 |
+
{"step": 720, "loss_domain": 1.6228852272033691, "loss_kl": 0.0002482358831912279, "s_per_step": 1.408, "io_ms": 845.1}
|
| 42 |
+
{"step": 740, "loss_domain": 1.670912742614746, "loss_kl": 5.6320328440051526e-05, "s_per_step": 1.401, "io_ms": 843.2}
|