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 +21 -0
eval/h6_train.log
CHANGED
|
@@ -84,3 +84,24 @@ val_before=1.811077 identity_check=1.811077 val_gen_before=0.11098629981279373
|
|
| 84 |
{"step": 1580, "loss_domain": 1.9041551351547241, "loss_kl": 0.00040641031228005886, "s_per_step": 1.445, "io_ms": 818.8}
|
| 85 |
{"step": 1600, "loss_domain": 1.799452781677246, "loss_kl": 0.00010877310705836862, "s_per_step": 1.441, "io_ms": 818.5}
|
| 86 |
{"step": 1620, "loss_domain": 1.7603046894073486, "loss_kl": 0.00011143281881231815, "s_per_step": 1.437, "io_ms": 817.7}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
{"step": 1580, "loss_domain": 1.9041551351547241, "loss_kl": 0.00040641031228005886, "s_per_step": 1.445, "io_ms": 818.8}
|
| 85 |
{"step": 1600, "loss_domain": 1.799452781677246, "loss_kl": 0.00010877310705836862, "s_per_step": 1.441, "io_ms": 818.5}
|
| 86 |
{"step": 1620, "loss_domain": 1.7603046894073486, "loss_kl": 0.00011143281881231815, "s_per_step": 1.437, "io_ms": 817.7}
|
| 87 |
+
{"step": 1640, "loss_domain": 1.7244521379470825, "loss_kl": 6.024114554747939e-05, "s_per_step": 1.434, "io_ms": 817.3}
|
| 88 |
+
{"step": 1660, "loss_domain": 1.6380195617675781, "loss_kl": 0.0001916767068905756, "s_per_step": 1.431, "io_ms": 816.7}
|
| 89 |
+
{"step": 1680, "loss_domain": 1.7383995056152344, "loss_kl": 0.00033045472810044885, "s_per_step": 1.427, "io_ms": 816.2}
|
| 90 |
+
{"step": 1700, "loss_domain": 1.5711733102798462, "loss_kl": 8.445176354143769e-05, "s_per_step": 1.424, "io_ms": 815.9}
|
| 91 |
+
{"step": 1720, "loss_domain": 1.614525556564331, "loss_kl": 0.00022588200226891786, "s_per_step": 1.421, "io_ms": 815.4}
|
| 92 |
+
{"step": 1740, "loss_domain": 1.8212406635284424, "loss_kl": 0.0004951234441250563, "s_per_step": 1.418, "io_ms": 814.8}
|
| 93 |
+
{"step": 1760, "loss_domain": 1.3475840091705322, "loss_kl": 7.40732648409903e-05, "s_per_step": 1.415, "io_ms": 814.3}
|
| 94 |
+
{"step": 1780, "loss_domain": 1.7660435438156128, "loss_kl": 0.00023692019749432802, "s_per_step": 1.449, "io_ms": 814.7}
|
| 95 |
+
{"step": 1800, "loss_domain": 1.6603292226791382, "loss_kl": 0.00010073707380797714, "s_per_step": 1.446, "io_ms": 815.1}
|
| 96 |
+
{"step": 1820, "loss_domain": 1.8072260618209839, "loss_kl": 4.9311380280414596e-05, "s_per_step": 1.444, "io_ms": 815.3}
|
| 97 |
+
{"step": 1840, "loss_domain": 1.6345198154449463, "loss_kl": 0.00021023029694333673, "s_per_step": 1.441, "io_ms": 815.2}
|
| 98 |
+
{"step": 1860, "loss_domain": 1.4819965362548828, "loss_kl": 0.00030308979330584407, "s_per_step": 1.438, "io_ms": 814.9}
|
| 99 |
+
{"step": 1880, "loss_domain": 1.6060091257095337, "loss_kl": 4.8995585530065e-05, "s_per_step": 1.435, "io_ms": 814.8}
|
| 100 |
+
{"step": 1900, "loss_domain": 1.618401050567627, "loss_kl": 0.00026578622055239975, "s_per_step": 1.432, "io_ms": 814.3}
|
| 101 |
+
{"step": 1920, "loss_domain": 1.799774169921875, "loss_kl": 0.00013391170068643987, "s_per_step": 1.43, "io_ms": 814.1}
|
| 102 |
+
{"step": 1940, "loss_domain": 1.746439814567566, "loss_kl": 0.00012347391748335212, "s_per_step": 1.427, "io_ms": 814.0}
|
| 103 |
+
{"step": 1960, "loss_domain": 1.5915369987487793, "loss_kl": 0.0002812349994201213, "s_per_step": 1.425, "io_ms": 814.1}
|
| 104 |
+
{"step": 1980, "loss_domain": 1.6929266452789307, "loss_kl": 0.0006946760113351047, "s_per_step": 1.422, "io_ms": 813.7}
|
| 105 |
+
{"step": 2000, "loss_domain": 1.7366943359375, "loss_kl": 2.459615279803984e-05, "s_per_step": 1.42, "io_ms": 813.4}
|
| 106 |
+
{"step": 2015, "loss_domain": 1.4657889604568481, "loss_kl": 0.00032386122620664537, "s_per_step": 1.418, "io_ms": 813.1}
|
| 107 |
+
val_after=1.795898 rel_dom=-0.00838 rel_gen=0.00227606412291243
|