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 +22 -0
eval/h6_train.log
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You have used a large amount of egress over the last 30 days. To protect our platform health, once you reach your account's max quota, your downloads will be throttled or blocked. If you regularly need more, you may consider upgrading your current user or organization plan to benefit from higher allowances.
|
| 2 |
+
MultiCache (2 dirs) domains=['chips', 'physics', 'space'] modular=False oof_ema=False wiki_shield=False sensor=h tr_lambda=0.0 skip_prefix=2 | tr_dom=1,376,285 tr_gen=243,593 va_dom=153,375 va_gen=18,423
|
| 3 |
+
Total trainable params: 50,276,864 (tr_lambda=0.0)
|
| 4 |
+
val_before=1.811077 identity_check=1.811077 val_gen_before=0.11098629981279373
|
| 5 |
+
{"step": 0, "loss_domain": 1.9204634428024292, "loss_kl": 0.0, "s_per_step": 1.896, "io_ms": 910.9}
|
| 6 |
+
{"step": 20, "loss_domain": 1.8429768085479736, "loss_kl": 7.23060611562687e-06, "s_per_step": 1.336, "io_ms": 932.2}
|
| 7 |
+
{"step": 40, "loss_domain": 1.9932971000671387, "loss_kl": 3.9361002563964576e-05, "s_per_step": 1.318, "io_ms": 928.9}
|
| 8 |
+
{"step": 60, "loss_domain": 1.8038663864135742, "loss_kl": 6.375199882313609e-05, "s_per_step": 1.302, "io_ms": 917.7}
|
| 9 |
+
{"step": 80, "loss_domain": 1.993436336517334, "loss_kl": 0.00013090268475934863, "s_per_step": 1.296, "io_ms": 913.0}
|
| 10 |
+
{"step": 100, "loss_domain": 1.8224519491195679, "loss_kl": 0.0002355835458729416, "s_per_step": 1.285, "io_ms": 902.9}
|
| 11 |
+
{"step": 120, "loss_domain": 1.7190802097320557, "loss_kl": 0.00021359663514886051, "s_per_step": 1.28, "io_ms": 898.9}
|
| 12 |
+
{"step": 140, "loss_domain": 1.7092007398605347, "loss_kl": 0.00013272430805955082, "s_per_step": 1.274, "io_ms": 893.5}
|
| 13 |
+
{"step": 160, "loss_domain": 1.6503560543060303, "loss_kl": 0.0003633047454059124, "s_per_step": 1.268, "io_ms": 887.3}
|
| 14 |
+
{"step": 180, "loss_domain": 1.882883071899414, "loss_kl": 0.00014917613589204848, "s_per_step": 1.262, "io_ms": 881.9}
|
| 15 |
+
{"step": 200, "loss_domain": 1.8310670852661133, "loss_kl": 7.645000732736662e-05, "s_per_step": 1.257, "io_ms": 876.4}
|
| 16 |
+
{"step": 220, "loss_domain": 1.8591136932373047, "loss_kl": 0.0004018311155959964, "s_per_step": 1.249, "io_ms": 869.1}
|
| 17 |
+
{"step": 240, "loss_domain": 1.991843819618225, "loss_kl": 0.00019034833530895412, "s_per_step": 1.242, "io_ms": 862.4}
|
| 18 |
+
{"step": 260, "loss_domain": 1.8190522193908691, "loss_kl": 0.00011306771193630993, "s_per_step": 1.491, "io_ms": 860.0}
|
| 19 |
+
{"step": 280, "loss_domain": 2.0498127937316895, "loss_kl": 0.0002650907263159752, "s_per_step": 1.477, "io_ms": 863.7}
|
| 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}
|