Instructions to use arcee-ai/Trinity-Large-Thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arcee-ai/Trinity-Large-Thinking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="arcee-ai/Trinity-Large-Thinking", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arcee-ai/Trinity-Large-Thinking", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("arcee-ai/Trinity-Large-Thinking", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use arcee-ai/Trinity-Large-Thinking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "arcee-ai/Trinity-Large-Thinking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "arcee-ai/Trinity-Large-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/arcee-ai/Trinity-Large-Thinking
- SGLang
How to use arcee-ai/Trinity-Large-Thinking 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 "arcee-ai/Trinity-Large-Thinking" \ --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": "arcee-ai/Trinity-Large-Thinking", "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 "arcee-ai/Trinity-Large-Thinking" \ --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": "arcee-ai/Trinity-Large-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use arcee-ai/Trinity-Large-Thinking with Docker Model Runner:
docker model run hf.co/arcee-ai/Trinity-Large-Thinking
Impressed by the model
I have to say, this model is impressing me in many ways and it's a great release overall! Thanks a lot for making this available to anyone and thank you as well for releasing different checkpoints during training.
I particularly like how the model adheres to system prompts and references them during the chain of thought. I am also very happy with the chain of thought itself. For easy prompts it doesn't waste much time and overall it's much more concise and "sane" compared to most other models. Typically I avoid thinking models due to the limitations of my hardware, but with this model the wait isn't much of an issue at all.
One more postive I have to point out is that the model doesn't appear to be overly sycophantic or "assistant-like". If i prompt it to be a critic, it will actually be a critic. The outputs themselves also don't suffer from the typical slop formulations and read more human like than many other models. The model also produces more diverse responses than what is common these days, but at the same time it doesn't feel as if the model itself is planning ahead much in terms of what to say (repeated continuations from a partial response tend to diverge significantly rather early on). It appears that the model doesn't feature MTP as a training objective or inference optimization (or maybe i missed it), so perhaps that's what makes it feel a bit random at times.
On the technical side, the low active parameter count is very much appreciated and among 400b range models, this is pretty much the lowest one available.
Again, thank you very much for this release! I am looking forward to more models like this (or improvements on it - still feels a bit raw at times and could improve quite a lot with more iterations).