Instructions to use coder543/command-a-plus-05-2026-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use coder543/command-a-plus-05-2026-gguf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="coder543/command-a-plus-05-2026-gguf") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("coder543/command-a-plus-05-2026-gguf", dtype="auto") - llama-cpp-python
How to use coder543/command-a-plus-05-2026-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="coder543/command-a-plus-05-2026-gguf", filename="command-a-plus-05-2026-bf16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use coder543/command-a-plus-05-2026-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M
Use Docker
docker model run hf.co/coder543/command-a-plus-05-2026-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use coder543/command-a-plus-05-2026-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "coder543/command-a-plus-05-2026-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "coder543/command-a-plus-05-2026-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/coder543/command-a-plus-05-2026-gguf:Q4_K_M
- SGLang
How to use coder543/command-a-plus-05-2026-gguf 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 "coder543/command-a-plus-05-2026-gguf" \ --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": "coder543/command-a-plus-05-2026-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "coder543/command-a-plus-05-2026-gguf" \ --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": "coder543/command-a-plus-05-2026-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use coder543/command-a-plus-05-2026-gguf with Ollama:
ollama run hf.co/coder543/command-a-plus-05-2026-gguf:Q4_K_M
- Unsloth Studio
How to use coder543/command-a-plus-05-2026-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for coder543/command-a-plus-05-2026-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for coder543/command-a-plus-05-2026-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for coder543/command-a-plus-05-2026-gguf to start chatting
- Pi
How to use coder543/command-a-plus-05-2026-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "coder543/command-a-plus-05-2026-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use coder543/command-a-plus-05-2026-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf coder543/command-a-plus-05-2026-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default coder543/command-a-plus-05-2026-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use coder543/command-a-plus-05-2026-gguf with Docker Model Runner:
docker model run hf.co/coder543/command-a-plus-05-2026-gguf:Q4_K_M
- Lemonade
How to use coder543/command-a-plus-05-2026-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull coder543/command-a-plus-05-2026-gguf:Q4_K_M
Run and chat with the model
lemonade run user.command-a-plus-05-2026-gguf-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +4 -0
- README.md +300 -0
- command-a-plus-05-2026-bf16.gguf +3 -0
- command-a-plus-05-2026-q3_k_m.gguf +3 -0
- command-a-plus-05-2026-q4_k_m.gguf +3 -0
- command-a-plus-05-2026-q4_k_s.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
command-a-plus-05-2026-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
command-a-plus-05-2026-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
command-a-plus-05-2026-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
command-a-plus-05-2026-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,303 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
inference: false
|
| 3 |
+
base_model: CohereLabs/command-a-plus-05-2026
|
| 4 |
+
library_name: transformers
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- ar
|
| 8 |
+
- bg
|
| 9 |
+
- bn
|
| 10 |
+
- ca
|
| 11 |
+
- cs
|
| 12 |
+
- da
|
| 13 |
+
- de
|
| 14 |
+
- el
|
| 15 |
+
- es
|
| 16 |
+
- et
|
| 17 |
+
- fa
|
| 18 |
+
- fi
|
| 19 |
+
- fil
|
| 20 |
+
- fr
|
| 21 |
+
- ga
|
| 22 |
+
- he
|
| 23 |
+
- hi
|
| 24 |
+
- hr
|
| 25 |
+
- hu
|
| 26 |
+
- id
|
| 27 |
+
- is
|
| 28 |
+
- it
|
| 29 |
+
- ja
|
| 30 |
+
- ko
|
| 31 |
+
- lt
|
| 32 |
+
- lv
|
| 33 |
+
- ms
|
| 34 |
+
- mt
|
| 35 |
+
- nl
|
| 36 |
+
- 'no'
|
| 37 |
+
- pa
|
| 38 |
+
- pl
|
| 39 |
+
- pt
|
| 40 |
+
- ro
|
| 41 |
+
- ru
|
| 42 |
+
- sk
|
| 43 |
+
- sl
|
| 44 |
+
- sr
|
| 45 |
+
- sv
|
| 46 |
+
- ta
|
| 47 |
+
- te
|
| 48 |
+
- th
|
| 49 |
+
- tr
|
| 50 |
+
- uk
|
| 51 |
+
- ur
|
| 52 |
+
- vi
|
| 53 |
+
- zh
|
| 54 |
license: apache-2.0
|
| 55 |
+
pipeline_tag: image-text-to-text
|
| 56 |
+
tags:
|
| 57 |
+
- conversational
|
| 58 |
+
- chat
|
| 59 |
---
|
| 60 |
+
|
| 61 |
+
## Command A+ GGUFs
|
| 62 |
+
|
| 63 |
+
| Filename | Size (GB) |
|
| 64 |
+
|---|---|
|
| 65 |
+
| command-a-plus-05-2026-bf16.gguf | 407 |
|
| 66 |
+
| command-a-plus-05-2026-q4_k_m.gguf | 124 |
|
| 67 |
+
| command-a-plus-05-2026-q4_k_s.gguf | 116 |
|
| 68 |
+
| command-a-plus-05-2026-q3_k_m.gguf | 98 |
|
| 69 |
+
|
| 70 |
+
> **Note:** These GGUF files are text-only and do not support image input.
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
# **Model Card for Command A+**
|
| 75 |
+
|
| 76 |
+
## **Model Summary**
|
| 77 |
+
|
| 78 |
+
Command A+ is an open source model with 25 billion active parameters and 218B total parameters model optimized for agentic, multilingual, and reasoning-heavy tasks with a focus on enterprise performance, while also providing support for vision inputs for processing image inputs.
|
| 79 |
+
|
| 80 |
+
Developed by: [Cohere](https://cohere.com/) and [Cohere Labs](https://cohere.com/research)
|
| 81 |
+
|
| 82 |
+
* Point of Contact: [**Cohere Labs**](https://cohere.com/research)
|
| 83 |
+
* License: [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
| 84 |
+
* Model: command-a-plus-05-2026
|
| 85 |
+
* Model Size: 25B active parameters, 218B total parameters
|
| 86 |
+
* Context length: 128K input
|
| 87 |
+
|
| 88 |
+
For more details about this model, please check out our [blog post](http://cohere.com/blog/command-a-plus).
|
| 89 |
+
|
| 90 |
+
You can try out Command A+ before downloading the weights in our hosted [Hugging Face Space](https://huggingface.co/spaces/CohereLabs/command-a-plus-05-2026).
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
**Available quantizations**
|
| 94 |
+
|
| 95 |
+
The following quantizations are available with example minimum GPU requirements
|
| 96 |
+
|
| 97 |
+
| Quantization | Blackwell | Hopper |
|
| 98 |
+
| :---- | :---- | :---- |
|
| 99 |
+
| [BF16 (16-bit)](https://huggingface.co/CohereLabs/command-a-plus-05-2026-bf16) | 4 x B200 | 8 x H100 |
|
| 100 |
+
| [FP8 (8-bit)](https://huggingface.co/CohereLabs/command-a-plus-05-2026-fp8) | 2 x B200 | 4 x H100 |
|
| 101 |
+
| [W4A4 (4-bit)](https://huggingface.co/CohereLabs/command-a-plus-05-2026-w4a4) | 1 x B200 | 2 x H100 |
|
| 102 |
+
|
| 103 |
+
All three quantizations show negligible differences in benchmark quality and performance. **Our recommended quantization for most uses is [W4A4](https://huggingface.co/CohereLabs/command-a-plus-05-2026-w4a4) which boasts superior speed and latency characteristics alongside a smaller hardware footprint.**
|
| 104 |
+
|
| 105 |
+
For more details, please check out our [blog post](http://cohere.com/blog/command-a-plus).
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
**Usage**
|
| 109 |
+
|
| 110 |
+
**Transformers**
|
| 111 |
+
|
| 112 |
+
Please install transformers from the source repository that includes the necessary changes for this model.
|
| 113 |
+
|
| 114 |
+
```py
|
| 115 |
+
# pip install transformers
|
| 116 |
+
from transformers import AutoTokenizer, AutoModelForImageTextToText
|
| 117 |
+
|
| 118 |
+
model_id = "CohereLabs/command-a-plus-05-2026-bf16"
|
| 119 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 120 |
+
model = AutoModelForImageTextToText.from_pretrained(model_id)
|
| 121 |
+
|
| 122 |
+
# Format message with the command-a-plus-05-2026-bf16 chat template
|
| 123 |
+
messages = [{"role": "user", "content": "What has keys but can't open locks?"}]
|
| 124 |
+
input_ids = tokenizer.apply_chat_template(
|
| 125 |
+
messages,
|
| 126 |
+
tokenize=True,
|
| 127 |
+
add_generation_prompt=True,
|
| 128 |
+
return_tensors="pt",
|
| 129 |
+
)
|
| 130 |
+
|
| 131 |
+
gen_tokens = model.generate(
|
| 132 |
+
input_ids,
|
| 133 |
+
max_new_tokens=4096,
|
| 134 |
+
do_sample=True,
|
| 135 |
+
temperature=0.6,
|
| 136 |
+
top_p=0.95
|
| 137 |
+
)
|
| 138 |
+
|
| 139 |
+
gen_text = tokenizer.decode(gen_tokens[0])
|
| 140 |
+
print(gen_text)
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
As a result, you should get an output that looks like this, where the thinking is generated between the `<START_THINKING>` and `<END_THINKING>`:
|
| 144 |
+
|
| 145 |
+
```py
|
| 146 |
+
<|START_THINKING|>The user asks a riddle: "What has keys but can't open locks?" The answer is a piano (or keyboard). So respond with answer.<|END_THINKING|>
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
You can also use the model directly using transformers pipeline abstraction:
|
| 150 |
+
|
| 151 |
+
```py
|
| 152 |
+
from transformers import pipeline
|
| 153 |
+
import torch
|
| 154 |
+
|
| 155 |
+
model_id = "CohereLabs/command-a-plus-05-2026-bf16"
|
| 156 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 157 |
+
|
| 158 |
+
pipe = pipeline(
|
| 159 |
+
"text-generation",
|
| 160 |
+
model=model_id,
|
| 161 |
+
dtype="auto",
|
| 162 |
+
device_map="auto",
|
| 163 |
+
)
|
| 164 |
+
|
| 165 |
+
messages = [
|
| 166 |
+
{"role": "user", "content": "Explain the Transformer architecture"},
|
| 167 |
+
]
|
| 168 |
+
|
| 169 |
+
text = tokenizer.apply_chat_template(
|
| 170 |
+
messages,
|
| 171 |
+
tokenize=False,
|
| 172 |
+
add_generation_prompt=True,
|
| 173 |
+
)
|
| 174 |
+
|
| 175 |
+
outputs = pipe(
|
| 176 |
+
messages,
|
| 177 |
+
max_new_tokens=300,
|
| 178 |
+
)
|
| 179 |
+
print(outputs[0]["generated_text"][-1])
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
**vLLM**
|
| 185 |
+
|
| 186 |
+
You can also run the model in vLLM. `vllm>=0.21.0` is required for Command A+ and accurate response parsing also requires installing [Cohere’s `melody` library](https://pypi.org/project/cohere-melody/).
|
| 187 |
+
|
| 188 |
+
```
|
| 189 |
+
uv pip install vllm>=0.21.0
|
| 190 |
+
uv pip install transformers uv pip install cohere_melody>=0.9.0
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
Then the vllm server can be started with the following command:
|
| 194 |
+
|
| 195 |
+
```
|
| 196 |
+
# This is for B200, adjust tp for your device vllm serve CohereLabs/command-a-plus-05-2026-bf16 -tp 4 --tool-call-parser cohere_command4 --reasoning-parser cohere_command4 --enable-auto-tool-choice
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
## **Model Details**
|
| 200 |
+
|
| 201 |
+
**Input**: Text and images.
|
| 202 |
+
|
| 203 |
+
**Output**: Model generates text.
|
| 204 |
+
|
| 205 |
+
**Model Architecture**: Command A+ is a decoder-only Sparse Mixture-of-Experts Transformer Model. With 25B active parameters and 218B total parameters, it has 128 experts, out of which 8 are active per token, and a single shared expert is applied to all tokens. The attention layers interleave sliding-window attention layers with Rotational Positional Embeddings and global attention layers without positional embeddings in a 3:1 ratio, as first introduced in Command A. The sparse MoE layer is trained in a fully dropless manner and uses a token-choice router. We use additive-bias-based load balancing to encourage balanced token load across all experts, and swap out the softmax router activation function with a normalized sigmoid over the topk expert logits per token.
|
| 206 |
+
|
| 207 |
+
**Languages covered:** The model has been trained on 48 languages: English, Arabic, Bulgarian, Bengali, Catalan, Czech, Danish, German, Greek, Spanish, Estonian, Persian, Finnish, Filipino, French, Irish, Hebrew, Hindi, Croatian, Hungarian, Indonesian, Icelandic, Italian, Japanese, Korean, Lithuanian, Latvian, Malay, Maltese, Dutch, Norwegian, Punjabi, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Serbian, Swedish, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Chinese.
|
| 208 |
+
|
| 209 |
+
**Context Length:** Command A+ supports a context length of 128K & 64K output length.
|
| 210 |
+
|
| 211 |
+
### **Tool Use Capabilities:**
|
| 212 |
+
|
| 213 |
+
Command A+ has been specifically trained with conversational tool use capabilities. This allows the model to interact with external tools like APIs, databases, or search engines.
|
| 214 |
+
|
| 215 |
+
Tool use with Command A+ is supported through [chat templates](https://huggingface.co/docs/transformers/main/en/chat_templating#advanced-tool-use--function-calling) in Transformers. We recommend providing tool descriptions using JSON schema.
|
| 216 |
+
|
| 217 |
+
<details>
|
| 218 |
+
<summary><b>Tool Use Example [CLICK TO EXPAND]</b></summary>
|
| 219 |
+
|
| 220 |
+
```py
|
| 221 |
+
from transformers import AutoTokenizer
|
| 222 |
+
|
| 223 |
+
model_id = "CohereLabs/command-a-plus-05-2026-bf16"
|
| 224 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 225 |
+
|
| 226 |
+
# Define tools
|
| 227 |
+
tools = [{
|
| 228 |
+
"type": "function",
|
| 229 |
+
"function": {
|
| 230 |
+
"name": "query_daily_sales_report",
|
| 231 |
+
"description": "Connects to a database to retrieve overall sales volumes and sales information for a given day.",
|
| 232 |
+
"parameters": {
|
| 233 |
+
"type": "object",
|
| 234 |
+
"properties": {
|
| 235 |
+
"day": {
|
| 236 |
+
"description": "Retrieves sales data for this day, formatted as YYYY-MM-DD.",
|
| 237 |
+
"type": "string",
|
| 238 |
+
}
|
| 239 |
+
},
|
| 240 |
+
"required": ["day"],
|
| 241 |
+
},
|
| 242 |
+
},
|
| 243 |
+
}]
|
| 244 |
+
|
| 245 |
+
# Define conversation input
|
| 246 |
+
conversation = [
|
| 247 |
+
{"role": "user", "content": "Can you provide a sales summary for 29th September 2023?"}
|
| 248 |
+
]
|
| 249 |
+
|
| 250 |
+
# Tokenize the Tool Use prompt directly
|
| 251 |
+
input_ids = tokenizer.apply_chat_template(
|
| 252 |
+
conversation=conversation,
|
| 253 |
+
tools=tools,
|
| 254 |
+
tokenize=True,
|
| 255 |
+
add_generation_prompt=True,
|
| 256 |
+
return_tensors="pt",
|
| 257 |
+
)
|
| 258 |
+
```
|
| 259 |
+
|
| 260 |
+
You can then generate from this input as normal.
|
| 261 |
+
|
| 262 |
+
If the model generates a plan and tool calls, you should add them to the chat history like so:
|
| 263 |
+
|
| 264 |
+
```py
|
| 265 |
+
tool_call = {"name": "query_daily_sales_report", "arguments": {"day": "2023-09-29"}}
|
| 266 |
+
thinking = "I will use the query_daily_sales_report tool to find the sales summary for 29th September 2023."
|
| 267 |
+
conversation.append({"role": "assistant", "tool_calls": [{"id": "0", "type": "function", "function": tool_call}], "thinking": thinking})
|
| 268 |
+
```
|
| 269 |
+
|
| 270 |
+
and then call the tool and append the result, as a dictionary, with the tool role, like so:
|
| 271 |
+
|
| 272 |
+
```py
|
| 273 |
+
api_response_query_daily_sales_report = {"date": "2023-09-29", "summary": "Total Sales Amount: 10000, Total Units Sold: 250"} # this needs to be a dictionary!!
|
| 274 |
+
|
| 275 |
+
# Append tool results
|
| 276 |
+
conversation.append({"role": "tool", "tool_call_id": "0", "content": api_response_query_daily_sales_report})
|
| 277 |
+
```
|
| 278 |
+
|
| 279 |
+
After that, you can generate() again to let the model use the tool result in the chat.
|
| 280 |
+
|
| 281 |
+
Note that this was a very brief introduction to tool calling \- for more information, see the Transformers [tool use documentation](https://huggingface.co/docs/transformers/main/chat_templating#advanced-tool-use--function-calling).
|
| 282 |
+
</details>
|
| 283 |
+
|
| 284 |
+
<details>
|
| 285 |
+
<summary><b>Tool Use With Citations [CLICK TO EXPAND]</b></summary>
|
| 286 |
+
|
| 287 |
+
Optionally, one can ask the model to include grounding spans (citations) in its response to indicate the source of the information, by using `enable_citations=True` in `tokenizer.apply_chat_template(*)`. The generation would look like this:
|
| 288 |
+
|
| 289 |
+
```
|
| 290 |
+
On 29th September 2023, the total sales amount was <co>10000</co: 0:[0]> and the total units sold were <co>250.</co: 0:[0]>
|
| 291 |
+
```
|
| 292 |
+
|
| 293 |
+
When citations are turned on, the model associates pieces of texts (called "spans") with those specific tool results that support them (called "sources"). Command A+ uses a pair of tags `<co>` and `</co>` to indicate when a span can be grounded onto a list of sources, listing them out in the closing tag. For example, `<co>span</co: 0:[1,2],1:[0]>` means that "span" is supported by result 1 and 2 from `tool_call_id=0` as well as result 0 from `tool_call_id=1`. Sources from the same tool call are grouped together and listed as `{tool_call_id}:[{list of result indices}]`, before they are joined together by ",".
|
| 294 |
+
</details>
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
## **Model Card Contact**
|
| 298 |
+
|
| 299 |
+
For errors or additional questions about details in this model card, contact \[[labs@cohere.com](mailto:labs@cohere.com)\].
|
| 300 |
+
|
| 301 |
+
**Try it now:**
|
| 302 |
+
|
| 303 |
+
You can try Command A+ in the [playground](https://dashboard.cohere.com/playground/chat?model=command-a-plus-05-2026). You can also use it in our dedicated [Hugging Face Space](https://huggingface.co/spaces/CohereLabs/command-a-plus-05-2026).
|
command-a-plus-05-2026-bf16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40f15fd0fc3854e186c27d2c3d017bc5a917ee9f685aa282ac789fcea33c9ddb
|
| 3 |
+
size 436554125376
|
command-a-plus-05-2026-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fbb0e7402f9d568784086a0cda97a5ac00d30d5c091a1f55ed63eec5b79eccd
|
| 3 |
+
size 104541409344
|
command-a-plus-05-2026-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1970dcafa640dc54fb18b8a5a1217adf0a48340bc6e7e757961397604e5940e3
|
| 3 |
+
size 132266283072
|
command-a-plus-05-2026-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a65659470334fd91fcec282601d8af189fab3779f3c8695c199739fa41da220
|
| 3 |
+
size 124223180864
|