Text Generation
Transformers
Safetensors
English
Korean
Japanese
trillion
finetuned
chat
conversational
custom_code
Instructions to use trillionlabs/Tri-70B-preview-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use trillionlabs/Tri-70B-preview-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="trillionlabs/Tri-70B-preview-SFT", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("trillionlabs/Tri-70B-preview-SFT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use trillionlabs/Tri-70B-preview-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "trillionlabs/Tri-70B-preview-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trillionlabs/Tri-70B-preview-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/trillionlabs/Tri-70B-preview-SFT
- SGLang
How to use trillionlabs/Tri-70B-preview-SFT 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 "trillionlabs/Tri-70B-preview-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trillionlabs/Tri-70B-preview-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "trillionlabs/Tri-70B-preview-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trillionlabs/Tri-70B-preview-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use trillionlabs/Tri-70B-preview-SFT with Docker Model Runner:
docker model run hf.co/trillionlabs/Tri-70B-preview-SFT
Download config.json from trillionlabs/Tri-70B-preview-SFT: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/trillionlabs/Tri-70B-preview-SFT/resolve/main/config.json
- Command line
-
hf download hf://trillionlabs/Tri-70B-preview-SFT/config.json
-
curl -L -o config.json https://huggingface.co/trillionlabs/Tri-70B-preview-SFT/resolve/main/config.json
1.03 kB
| { | |
| "architectures": [ | |
| "TrillionForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_scale": 1.0, | |
| "attn_temperature_tuning": true, | |
| "auto_map": { | |
| "AutoConfig": "configuration_trillion.TrillionConfig", | |
| "AutoModelForCausalLM": "modeling_trillion.TrillionForCausalLM", | |
| "AutoModel": "modeling_trillion.TrillionModel" | |
| }, | |
| "bos_token_id": 123964, | |
| "eos_token_id": 123972, | |
| "floor_scale": 1.0, | |
| "global_attention_freq": 4, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 8192, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 28672, | |
| "max_position_embeddings": 32768, | |
| "mlp_bias": false, | |
| "model_type": "trillion", | |
| "num_attention_heads": 64, | |
| "num_hidden_layers": 80, | |
| "num_key_value_heads": 8, | |
| "pad_token_id": 124415, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.54.0", | |
| "use_cache": true, | |
| "vocab_size": 124416 | |
| } | |