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
File size: 9,887 Bytes
f80e81a | 1 | {"meta": [{"id": "holdout_chips_000", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_001", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_002", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_003", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_004", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_005", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_006", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_007", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_008", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_009", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_010", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_011", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_012", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_013", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_014", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_015", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_016", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_017", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_018", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_019", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_020", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_021", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_chips_022", "set": "holdout_chips", "role": "holdout", "base": true}, {"id": "holdout_physics_000", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_001", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_002", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_003", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_004", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_005", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_006", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_007", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_008", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_009", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_010", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_physics_011", "set": "holdout_physics", "role": "holdout", "base": true}, {"id": "holdout_space_000", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_001", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_002", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_003", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_004", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_005", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_006", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_007", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_008", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_009", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_010", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_011", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_012", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_013", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_014", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_015", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_016", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_017", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_018", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_019", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_020", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_021", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_022", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_023", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_024", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_025", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_026", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_027", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_028", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_029", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_030", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_031", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "holdout_space_032", "set": "holdout_space", "role": "holdout", "base": true}, {"id": "Anarchism", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Albedo", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Alabama", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Achilles", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Abraham Lincoln", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Aristotle", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Academy Awards", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Altruism", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Ayn Rand", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Algeria", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "List of Atlas Shrugged characters", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Anthropology", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Alchemy", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "ASCII", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Animation", "set": "wikipedia", "role": "holdout", "base": true}, {"id": "Apollo", "set": "wikipedia", "role": "holdout", "base": true}], "streams": [[0, "littleboy"], [1, "littleboy"], [2, "littleboy"], [3, "littleboy"], [4, "littleboy"], [5, "littleboy"], [6, "littleboy"], [7, "littleboy"], [8, "littleboy"], [9, "littleboy"], [10, "littleboy"], [11, "littleboy"], [12, "littleboy"], [13, "littleboy"], [14, "littleboy"], [15, "littleboy"], [16, "littleboy"], [17, "littleboy"], [18, "littleboy"], [19, "littleboy"], [20, "littleboy"], [21, "littleboy"], [22, "littleboy"], [23, "littleboy"], [24, "littleboy"], [25, "littleboy"], [26, "littleboy"], [27, "littleboy"], [28, "littleboy"], [29, "littleboy"], [30, "littleboy"], [31, "littleboy"], [32, "littleboy"], [33, "littleboy"], [34, "littleboy"], [35, "littleboy"], [36, "littleboy"], [37, "littleboy"], [38, "littleboy"], [39, "littleboy"], [40, "littleboy"], [41, "littleboy"], [42, "littleboy"], [43, "littleboy"], [44, "littleboy"], [45, "littleboy"], [46, "littleboy"], [47, "littleboy"], [48, "littleboy"], [49, "littleboy"], [50, "littleboy"], [51, "littleboy"], [52, "littleboy"], [53, "littleboy"], [54, "littleboy"], [55, "littleboy"], [56, "littleboy"], [57, "littleboy"], [58, "littleboy"], [59, "littleboy"], [60, "littleboy"], [61, "littleboy"], [62, "littleboy"], [63, "littleboy"], [64, "littleboy"], [65, "littleboy"], [66, "littleboy"], [67, "littleboy"], [68, "littleboy"], [69, "littleboy"], [70, "littleboy"], [71, "littleboy"], [72, "littleboy"], [73, "littleboy"], [74, "littleboy"], [75, "littleboy"], [76, "littleboy"], [77, "littleboy"], [78, "littleboy"], [79, "littleboy"], [80, "littleboy"], [81, "littleboy"], [82, "littleboy"], [83, "littleboy"], [0, "base"], [1, "base"], [2, "base"], [3, "base"], [4, "base"], [5, "base"], [6, "base"], [7, "base"], [8, "base"], [9, "base"], [10, "base"], [11, "base"], [12, "base"], [13, "base"], [14, "base"], [15, "base"], [16, "base"], [17, "base"], [18, "base"], [19, "base"], [20, "base"], [21, "base"], [22, "base"], [23, "base"], [24, "base"], [25, "base"], [26, "base"], [27, "base"], [28, "base"], [29, "base"], [30, "base"], [31, "base"], [32, "base"], [33, "base"], [34, "base"], [35, "base"], [36, "base"], [37, "base"], [38, "base"], [39, "base"], [40, "base"], [41, "base"], [42, "base"], [43, "base"], [44, "base"], [45, "base"], [46, "base"], [47, "base"], [48, "base"], [49, "base"], [50, "base"], [51, "base"], [52, "base"], [53, "base"], [54, "base"], [55, "base"], [56, "base"], [57, "base"], [58, "base"], [59, "base"], [60, "base"], [61, "base"], [62, "base"], [63, "base"], [64, "base"], [65, "base"], [66, "base"], [67, "base"], [68, "base"], [69, "base"], [70, "base"], [71, "base"], [72, "base"], [73, "base"], [74, "base"], [75, "base"], [76, "base"], [77, "base"], [78, "base"], [79, "base"], [80, "base"], [81, "base"], [82, "base"], [83, "base"]], "seq": 2048} |