Image-Text-to-Text
Transformers
Safetensors
cohere2_vision
conversational
chat
8-bit precision
compressed-tensors
Instructions to use CohereLabs/command-a-plus-05-2026-w4a4 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-w4a4 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-w4a4") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("CohereLabs/command-a-plus-05-2026-w4a4") model = AutoModelForMultimodalLM.from_pretrained("CohereLabs/command-a-plus-05-2026-w4a4", device_map="auto") 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CohereLabs/command-a-plus-05-2026-w4a4 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-w4a4" # 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-w4a4", "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-w4a4
- SGLang
How to use CohereLabs/command-a-plus-05-2026-w4a4 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-w4a4" \ --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-w4a4", "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-w4a4" \ --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-w4a4", "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-w4a4 with Docker Model Runner:
docker model run hf.co/CohereLabs/command-a-plus-05-2026-w4a4
Commit History
-
Strip zero MoE bias tensors so vLLM v0.25 can load W4A4 (#7)
- Strip zero MoE bias tensors so vLLM v0.25 can load W4A4 (5ee81a6828f6c8f8a245d27fe9741051b81c7892) - Require vLLM >=0.25.0 for W4A4 in README (155738de916e5544a1d32c5e152c5e53bc01993c) Co-authored-by: Z Shen <zshen-cohere@users.noreply.huggingface.co>ebd2d72
-
Update config.json
Verified signature3ffd85b
-
Remove outdated and broken chat templates (#6)
- Remove outdated and broken chat templates (1f7dc5d22ff6fe95cb59c80c9fe83b74d28e3550) Co-authored-by: Sigbjørn Skjæret <CISCai@users.noreply.huggingface.co>a5b77b1
-
Upload signatures for command-a-plus-05-2026-w4a4
Verified signaturefac599d
-
correct max context length to 128k (#4)
- correct max context length to 128k (947a033cff6d3c1c4afabc9ab14f61345713dd50) - bump max_position_embeddings to 200k (2573e9a2ca16071526ec928352f78cfe72e3f1b2) Co-authored-by: Walter Beller-Morales <walterbm-cohere@users.noreply.huggingface.co>b0d9748
-
Update chat_template.jinja
Verified signatureb37f52c
-
Update README.md
Verified signature38acf4b -
Replace tokenizer.json
Verified signaturefaee869 -
Update README via Huggy
Verified signaturef33b2c6 -
Update README.md
Verified signature710fbfe -
Update tokenizer_config.json
Verified signature9335fcd -
Update README.md
Verified signaturef7a0836 -
Delete __create_dir__
Verified signature75dfc8e -
Add files using upload-large-folder tool
Verified signature3ea6eee
-
Update README via Huggy
Verified signature300ea68
-
initial commit
Verified signatured70455e