Instructions to use CohereLabs/command-a-plus-05-2026-fp8 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-fp8 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-fp8") 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-fp8") model = AutoModelForImageTextToText.from_pretrained("CohereLabs/command-a-plus-05-2026-fp8") 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
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CohereLabs/command-a-plus-05-2026-fp8 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-fp8" # 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-fp8", "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-fp8
- SGLang
How to use CohereLabs/command-a-plus-05-2026-fp8 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-fp8" \ --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-fp8", "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-fp8" \ --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-fp8", "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-fp8 with Docker Model Runner:
docker model run hf.co/CohereLabs/command-a-plus-05-2026-fp8
Update README via Huggy
Browse files
README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
inference: false
|
| 3 |
+
library_name: transformers
|
| 4 |
+
language:
|
| 5 |
+
- en # English
|
| 6 |
+
- ar # Arabic
|
| 7 |
+
- bg # Bulgarian
|
| 8 |
+
- bn # Bengali
|
| 9 |
+
- ca # Catalan
|
| 10 |
+
- cs # Czech
|
| 11 |
+
- da # Danish
|
| 12 |
+
- de # German
|
| 13 |
+
- el # Greek
|
| 14 |
+
- es # Spanish
|
| 15 |
+
- et # Estonian
|
| 16 |
+
- fa # Persian
|
| 17 |
+
- fi # Finnish
|
| 18 |
+
- fil # Filipino
|
| 19 |
+
- fr # French
|
| 20 |
+
- ga # Irish
|
| 21 |
+
- he # Hebrew
|
| 22 |
+
- hi # Hindi
|
| 23 |
+
- hr # Croatian
|
| 24 |
+
- hu # Hungarian
|
| 25 |
+
- id # Indonesian
|
| 26 |
+
- is # Icelandic
|
| 27 |
+
- it # Italian
|
| 28 |
+
- ja # Japanese
|
| 29 |
+
- ko # Korean
|
| 30 |
+
- lt # Lithuanian
|
| 31 |
+
- lv # Latvian
|
| 32 |
+
- ms # Malay
|
| 33 |
+
- mt # Maltese
|
| 34 |
+
- nl # Dutch
|
| 35 |
+
- "no" # Norwegian
|
| 36 |
+
- pa # Punjabi
|
| 37 |
+
- pl # Polish
|
| 38 |
+
- pt # Portuguese
|
| 39 |
+
- ro # Romanian
|
| 40 |
+
- ru # Russian
|
| 41 |
+
- sk # Slovak
|
| 42 |
+
- sl # Slovenian
|
| 43 |
+
- sr # Serbian
|
| 44 |
+
- sv # Swedish
|
| 45 |
+
- ta # Tamil
|
| 46 |
+
- te # Telugu
|
| 47 |
+
- th # Thai
|
| 48 |
+
- tr # Turkish
|
| 49 |
+
- uk # Ukrainian
|
| 50 |
+
- ur # Urdu
|
| 51 |
+
- vi # Vietnamese
|
| 52 |
+
- zh # Chinese
|
| 53 |
+
license: apache-2.0
|
| 54 |
+
base_model: CohereLabs/command-a-plus-05-2026
|
| 55 |
+
base_model_relation: quantized
|
| 56 |
+
pipeline_tag: text-generation
|
| 57 |
+
tags:
|
| 58 |
+
- conversational
|
| 59 |
+
- chat
|
| 60 |
+
---
|