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
H4 F9_Arm11_WikiShield_EntropyGate_FocalHard_train_record.json
Browse files
eval/h4/F9_Arm11_WikiShield_EntropyGate_FocalHard_train_record.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"args": {
|
| 3 |
+
"cmd": "train",
|
| 4 |
+
"cache": [
|
| 5 |
+
"/content/k3p/out_train2",
|
| 6 |
+
"/content/k3p/out_train3"
|
| 7 |
+
],
|
| 8 |
+
"out": "/content/k3p/h4/F9_Arm11_WikiShield_EntropyGate_FocalHard",
|
| 9 |
+
"trained": "",
|
| 10 |
+
"domains": "chips,space",
|
| 11 |
+
"head_rank": 64,
|
| 12 |
+
"head_alpha": 64.0,
|
| 13 |
+
"tail_rank": 0,
|
| 14 |
+
"tail_alpha": 64.0,
|
| 15 |
+
"train_final_norm": false,
|
| 16 |
+
"k": 0,
|
| 17 |
+
"routed_rank": 16,
|
| 18 |
+
"routed_alpha": 16.0,
|
| 19 |
+
"gated_head": false,
|
| 20 |
+
"modular_cartridges": true,
|
| 21 |
+
"entropy_gate": true,
|
| 22 |
+
"oof_causal_ema": true,
|
| 23 |
+
"wiki_shield": true,
|
| 24 |
+
"gate_sensor": "x92",
|
| 25 |
+
"causal_ema": 0.15,
|
| 26 |
+
"hybrid_alpha": 0.4,
|
| 27 |
+
"all_bg_negatives": true,
|
| 28 |
+
"hard_fit_quantile": 0.55,
|
| 29 |
+
"subspace_rank": 24,
|
| 30 |
+
"tr_lambda": 0.05,
|
| 31 |
+
"lr": 0.00015,
|
| 32 |
+
"wd": 0.001,
|
| 33 |
+
"epochs": 2.0,
|
| 34 |
+
"bs": 2048,
|
| 35 |
+
"kl": 0.0,
|
| 36 |
+
"val_frac": 0.1,
|
| 37 |
+
"seed": 20261119,
|
| 38 |
+
"block_size": 256,
|
| 39 |
+
"precompute_h": true,
|
| 40 |
+
"bf16_amp": true,
|
| 41 |
+
"max_steps": 0,
|
| 42 |
+
"focal_hard_gamma": 2.0
|
| 43 |
+
},
|
| 44 |
+
"mode": "Arm11_STAR_TwoStage_WikiShield_Cartridge",
|
| 45 |
+
"tau_ent": 0.8577598575502634,
|
| 46 |
+
"sensor_mode": "x92",
|
| 47 |
+
"causal_ema": 0.15,
|
| 48 |
+
"wiki_shield": true,
|
| 49 |
+
"domains": [
|
| 50 |
+
"chips",
|
| 51 |
+
"space"
|
| 52 |
+
],
|
| 53 |
+
"trained_parameters": 21889024,
|
| 54 |
+
"val_before": 1.809656023979187,
|
| 55 |
+
"val_after": 1.8049219846725464,
|
| 56 |
+
"val_gen_before": 0.11098629981279373,
|
| 57 |
+
"val_gen_after": 0.11098489910364151,
|
| 58 |
+
"rel_dom": -0.0026159884773190862,
|
| 59 |
+
"rel_gen": -1.262055906525695e-05,
|
| 60 |
+
"steps": 1068,
|
| 61 |
+
"per_domain": {
|
| 62 |
+
"chips": {
|
| 63 |
+
"val_before": 1.9053969383239746,
|
| 64 |
+
"val_after": 1.900803565979004,
|
| 65 |
+
"rel_dom": -0.002410716765930739,
|
| 66 |
+
"steps": 533
|
| 67 |
+
},
|
| 68 |
+
"space": {
|
| 69 |
+
"val_before": 1.7011499404907227,
|
| 70 |
+
"val_after": 1.6964750289916992,
|
| 71 |
+
"rel_dom": -0.0027480890353938393,
|
| 72 |
+
"steps": 535
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
}
|