Instructions to use CohereLabs/command-a-plus-05-2026-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CohereLabs/command-a-plus-05-2026-bf16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="CohereLabs/command-a-plus-05-2026-bf16") 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 AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("CohereLabs/command-a-plus-05-2026-bf16") model = AutoModelForImageTextToText.from_pretrained("CohereLabs/command-a-plus-05-2026-bf16") 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?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CohereLabs/command-a-plus-05-2026-bf16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CohereLabs/command-a-plus-05-2026-bf16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CohereLabs/command-a-plus-05-2026-bf16", "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/CohereLabs/command-a-plus-05-2026-bf16
- SGLang
How to use CohereLabs/command-a-plus-05-2026-bf16 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 "CohereLabs/command-a-plus-05-2026-bf16" \ --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": "CohereLabs/command-a-plus-05-2026-bf16", "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 "CohereLabs/command-a-plus-05-2026-bf16" \ --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": "CohereLabs/command-a-plus-05-2026-bf16", "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" } } ] } ] }' - Docker Model Runner
How to use CohereLabs/command-a-plus-05-2026-bf16 with Docker Model Runner:
docker model run hf.co/CohereLabs/command-a-plus-05-2026-bf16
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,56 +2,56 @@
|
|
| 2 |
inference: false
|
| 3 |
library_name: transformers
|
| 4 |
language:
|
| 5 |
-
- en
|
| 6 |
-
- ar
|
| 7 |
-
- bg
|
| 8 |
-
- bn
|
| 9 |
-
- ca
|
| 10 |
-
- cs
|
| 11 |
-
- da
|
| 12 |
-
- de
|
| 13 |
-
- el
|
| 14 |
-
- es
|
| 15 |
-
- et
|
| 16 |
-
- fa
|
| 17 |
-
- fi
|
| 18 |
-
- fil
|
| 19 |
-
- fr
|
| 20 |
-
- ga
|
| 21 |
-
- he
|
| 22 |
-
- hi
|
| 23 |
-
- hr
|
| 24 |
-
- hu
|
| 25 |
-
- id
|
| 26 |
-
- is
|
| 27 |
-
- it
|
| 28 |
-
- ja
|
| 29 |
-
- ko
|
| 30 |
-
- lt
|
| 31 |
-
- lv
|
| 32 |
-
- ms
|
| 33 |
-
- mt
|
| 34 |
-
- nl
|
| 35 |
-
-
|
| 36 |
-
- pa
|
| 37 |
-
- pl
|
| 38 |
-
- pt
|
| 39 |
-
- ro
|
| 40 |
-
- ru
|
| 41 |
-
- sk
|
| 42 |
-
- sl
|
| 43 |
-
- sr
|
| 44 |
-
- sv
|
| 45 |
-
- ta
|
| 46 |
-
- te
|
| 47 |
-
- th
|
| 48 |
-
- tr
|
| 49 |
-
- uk
|
| 50 |
-
- ur
|
| 51 |
-
- vi
|
| 52 |
-
- zh
|
| 53 |
license: apache-2.0
|
| 54 |
-
pipeline_tag: text-
|
| 55 |
tags:
|
| 56 |
- conversational
|
| 57 |
- chat
|
|
@@ -286,6 +286,4 @@ For errors or additional questions about details in this model card, contact \[[
|
|
| 286 |
|
| 287 |
**Try it now:**
|
| 288 |
|
| 289 |
-
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).
|
| 290 |
-
|
| 291 |
-
|
|
|
|
| 2 |
inference: false
|
| 3 |
library_name: transformers
|
| 4 |
language:
|
| 5 |
+
- en
|
| 6 |
+
- ar
|
| 7 |
+
- bg
|
| 8 |
+
- bn
|
| 9 |
+
- ca
|
| 10 |
+
- cs
|
| 11 |
+
- da
|
| 12 |
+
- de
|
| 13 |
+
- el
|
| 14 |
+
- es
|
| 15 |
+
- et
|
| 16 |
+
- fa
|
| 17 |
+
- fi
|
| 18 |
+
- fil
|
| 19 |
+
- fr
|
| 20 |
+
- ga
|
| 21 |
+
- he
|
| 22 |
+
- hi
|
| 23 |
+
- hr
|
| 24 |
+
- hu
|
| 25 |
+
- id
|
| 26 |
+
- is
|
| 27 |
+
- it
|
| 28 |
+
- ja
|
| 29 |
+
- ko
|
| 30 |
+
- lt
|
| 31 |
+
- lv
|
| 32 |
+
- ms
|
| 33 |
+
- mt
|
| 34 |
+
- nl
|
| 35 |
+
- 'no'
|
| 36 |
+
- pa
|
| 37 |
+
- pl
|
| 38 |
+
- pt
|
| 39 |
+
- ro
|
| 40 |
+
- ru
|
| 41 |
+
- sk
|
| 42 |
+
- sl
|
| 43 |
+
- sr
|
| 44 |
+
- sv
|
| 45 |
+
- ta
|
| 46 |
+
- te
|
| 47 |
+
- th
|
| 48 |
+
- tr
|
| 49 |
+
- uk
|
| 50 |
+
- ur
|
| 51 |
+
- vi
|
| 52 |
+
- zh
|
| 53 |
license: apache-2.0
|
| 54 |
+
pipeline_tag: image-text-to-text
|
| 55 |
tags:
|
| 56 |
- conversational
|
| 57 |
- chat
|
|
|
|
| 286 |
|
| 287 |
**Try it now:**
|
| 288 |
|
| 289 |
+
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).
|
|
|
|
|
|