Text Generation
Transformers
Safetensors
afmoe
Mixture of Experts
nvfp4
modelopt
blackwell
vllm
conversational
custom_code
8-bit precision
Instructions to use arcee-ai/Trinity-Mini-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arcee-ai/Trinity-Mini-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="arcee-ai/Trinity-Mini-NVFP4", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arcee-ai/Trinity-Mini-NVFP4", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("arcee-ai/Trinity-Mini-NVFP4", trust_remote_code=True, device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use arcee-ai/Trinity-Mini-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "arcee-ai/Trinity-Mini-NVFP4" # 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-Mini-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/arcee-ai/Trinity-Mini-NVFP4
- SGLang
How to use arcee-ai/Trinity-Mini-NVFP4 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-Mini-NVFP4" \ --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-Mini-NVFP4", "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-Mini-NVFP4" \ --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-Mini-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use arcee-ai/Trinity-Mini-NVFP4 with Docker Model Runner:
docker model run hf.co/arcee-ai/Trinity-Mini-NVFP4
Commit ·
70da214
1
Parent(s): 1068478
Adopt OpenMDW-1.1 license (#1)
Browse files- Adopt OpenMDW-1.1 license (2a8e04129b851c7eea5ce0a55cdb18ec33870589)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)
By exercising rights granted to you under this agreement, you accept and agreeto its terms.
As used in this agreement, "Model Materials" means the materials provided toyou under this agreement, consisting of: (1) one or more machine learningmodels (including architecture and parameters); and (2) all related artifacts(including associated data, documentation and software) that are provided toyou hereunder.
Subject to your compliance with this agreement, permission is hereby granted,free of charge, to deal in the Model Materials without restriction, includingunder all copyright, patent, database, and trade secret rights included orembodied therein.
If you distribute any portion of the Model Materials, you shall retain in yourdistribution (1) a copy of this agreement, and (2) all copyright notices andother notices of origin included in the Model Materials that are applicable toyour distribution.
If you file, maintain, or voluntarily participate in a lawsuit against anyperson or entity asserting that the Model Materials directly or indirectlyinfringe any patent or copyright, then all rights and grants made to youhereunder are terminated, unless that lawsuit was in response to acorresponding lawsuit first brought against you.
This agreement does not impose any restrictions or obligations with respect toany use, modification, or sharing of any outputs generated by using the ModelMaterials.
THE MODEL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE, TITLE, NONINFRINGEMENT, ACCURACY, OR THEABSENCE OF LATENT OR OTHER DEFECTS OR ERRORS, WHETHER OR NOT DISCOVERABLE, ALLTO THE GREATEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW.
YOU ARE SOLELY RESPONSIBLE FOR (1) CLEARING RIGHTS OF OTHER PERSONS THAT MAYAPPLY TO THE MODEL MATERIALS OR ANY USE THEREOF, INCLUDING WITHOUT LIMITATIONANY PERSON'S COPYRIGHTS OR OTHER RIGHTS INCLUDED OR EMBODIED IN THE MODELMATERIALS; (2) OBTAINING ANY NECESSARY CONSENTS, PERMISSIONS OR OTHER RIGHTSREQUIRED FOR ANY USE OF THE MODEL MATERIALS; OR (3) PERFORMING ANY DUEDILIGENCE OR UNDERTAKING ANY OTHER INVESTIGATIONS INTO THE MODEL MATERIALS ORANYTHING INCORPORATED OR EMBODIED THEREIN.
IN NO EVENT SHALL THE PROVIDERS OF THE MODEL MATERIALS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OROTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODEL MATERIALS, THEUSE THEREOF OR OTHER DEALINGS THEREIN.1234511 unmodified lines171819202122232425262730 unmodified lines5859606162636464 unmodified lines129130131132---license: apache-2.0language:- en- es11 unmodified lines- arcee-ai/Trinity-Minibase_model_relation: quantizedtags:- moe- nvfp4- modelopt- blackwell- vllm---<div align="center"><picture>30 unmodified lines* **Experts:** 128 total, 8 active, 1 shared* **Context length:** 128k* **Training Tokens:** 10T* **License:** [Apache 2.0](https://huggingface.co/arcee-ai/Trinity-Mini#license)* **Recommended settings:*** temperature: 0.15* top_k: 5064 unmodified lines## LicenseTrinity-Mini-NVFP4 is released under the Apache-2.0 license.1234511 unmodified lines1718192021222324252627282930 unmodified lines6061626364656664 unmodified lines131132133134---license: otherlanguage:- en- es11 unmodified lines- arcee-ai/Trinity-Minibase_model_relation: quantizedtags:- moe- nvfp4- modelopt- blackwell- vllmlicense_link: LICENSElicense_name: openmdw-1.1---<div align="center"><picture>30 unmodified lines* **Experts:** 128 total, 8 active, 1 shared* **Context length:** 128k* **Training Tokens:** 10T* **License:** [OpenMDW-1.1](https://huggingface.co/arcee-ai/Trinity-Mini#license)* **Recommended settings:*** temperature: 0.15* top_k: 5064 unmodified lines## LicenseTrinity-Mini-NVFP4 is released under the OpenMDW-1.1 license.
LICENSEAdded+49
README.md+10-8