Cohere logo

Command A

CommandCurrent
byCohereCohere(ai lab)
Released March 13, 2025
Context256K tokens
Price (In / Out)$2.50/M / $10.00/M
CategoryLarge Language Model
Max Output8.2K tokens

About Command A

Command A is a large language model from Cohere. Supports up to 256,000 token context window. Achieves 80.1% on MMLU. Available from $2.50/M input tokens.

Capabilities

textcode

Input Modalities

text

Output Modalities

text

Technical Details

API Identifier
cohere/command-a
Category
Large Language Model
Context Window
256,000 tokens
Max Output Tokens
8,192 tokens

Tags

long-context

Run this model yourself

Local and cloud setup for Command A, with exact configurations, sources and clear evidence limits.

Find a model for your hardware
Local hardwareDocumented setupSources checked Oct 16, 2026

Run complete Command A Q4_K_M on a local CPU

Load the full Command A 111B model through both exact Bartowski Q4_K_M shards and its independently pinned native 15,468-byte conversation template. This private non-commercial CPU walkthrough checks a grounded conversation and follow-up within 4,096 total context tokens and a 512-token output cap. The 128 GiB RAM / 160 GiB disk allocation is planning capacity; fit, speed and answer quality remain unknown.

Hardware
Owned Intel Core i5-12400 host, 8 inference threads, 128 GiB RAM
Runtime
llama.cpp v0.7.0 (620d2225; full pin in source URL) · CPU
Model format
GGUF · Complete two-shard Q4_K_M mixed GGUF; no runtime quantization or native BF16 claim · Complete two-shard Q4_K_M mixed GGUF quantization; not native BF16
Workload
4,096 token context · 1 concurrent

Based on source documentation; this setup has not been executed by OpenTools. Memory: unknown. No compatible measurement available.

Read the complete setup guide

Before you start

  • Use an owned Ubuntu 24.04 x86_64 Intel CPU host with eight inference threads and an actually available 128 GiB system RAM / 160 GiB free disk allocation. Verify the motherboard/DIMM configuration and actual available capacity before proceeding; the referenced CPU vendor specification is not proof that your whole host is configured that way.
  • The selected named GGUF and native metadata declare CC BY-NC 4.0. The actual publisher license incorporates the Cohere Labs Acceptable Use Addendum and policy. NonCommercial means not primarily intended for commercial advantage or monetary compensation; private or paid-VM use is not an exemption. Retain required attribution, license/disclaimer/source notices and indicate modifications when sharing; do not impose additional restrictions on licensed rights. The incorporated policy prohibits specified harmful/illegal/privacy/deceptive uses and synthetic data outputs for commercial purposes, including model or product development. Read all full terms and assess your own intended use before downloading. No terms acceptance, commercial permission or legal clearance is performed for you.
  • Use the exact complete Command A March 2025 derivative and keep both split files in one directory. This native model takes and generates text only; Command A Vision, Reasoning and Plus are separate models. No partial shard, smaller model or active-parameter storage shortcut is substituted.
  • Native raw config/tokenizer requests returned 401 and the model LICENSE path returned 404. Exact public native API metadata supplies the architecture and original template; the actual publisher grant is public. The named derivative is separately public in captured metadata. Stop on any access failure; no gated native download or terms acceptance is bypassed.
  • Current direct Cohere Labs AUP and prompt-doc fetches returned 403. The exact prior official same-URL AUP snapshot is retained with its original retrieval date and bytes, not called a new successful fetch. Review the applicable complete grant/Addendum/AUP yourself before download/use.
  • Use a trusted single-user host and original non-sensitive non-commercial research text. Private loopback and a service key do not grant commercial rights or provide public TLS/multiuser isolation. No provider credential or paid inference API is required.

Exact model and requirements

Artifact:
Bartowski (named GGUF derivative); Cohere Labs (native model) / Complete Command A March 2025 Q4_K_M by Bartowski, both shards · checkpoint bartowski/CohereForAI_c4ai-command-a-03-2025-GGUF
Publisher revision:
18437d7ebc40a6db851d830447af945dce2dd904
Artifact digest:
Both shard hashes are published; no whole-composition digest is provided or invented.
Download size:
62.52 GiB
Memory requirement (unknown):
Unknown — No full process peak measured for all 67,135,512,640 Q4_K_M bytes, hybrid attention cache, scratch/loading/runtime and OS.
System RAM / disk:
Unknown / Unknown
Placement:
single device. One CPU host with one conversation slot. All model layers run on CPU; no GPU or disk-offload path is configured.
KV cache:
F16 K and V attention cache; actual process/cache allocation unmeasured.
Workload:
4,096 token context; Unknown; Unknown; concurrency 1; batch 1; cache unknown; repetitions Unknown.
Tokenizer:
Exact named Command A derivative tokenizer with independently pinned native default conversation template · 18437d7ebc40a6db851d830447af945dce2dd904
Sampling / reasoning:
Temperature 0.3 follows the exact native Command A conversation example. Top-k 0, top-p 1, min-p 0 and repeat penalty 1 are author choices. Native END_RESPONSE / END_OF_TURN stops and a 512-token output cap; no tool or benchmark execution. Exact native default template includes its contextual safety preamble, one BOS, ordinary user/assistant history and START_RESPONSE generation prefix. No tools or documents are supplied. All preamble/history/control positions count toward the 3,584-token input allowance plus up to 512 output tokens inside 4,096 total. No blanket non-thinking claim. Publisher native context is 256K with a documented HF default of 128K; those larger configurations are not claimed here.
Runtime prerequisites:
Ubuntu 24.04 x86_64; See prerequisites above.

Official artifact · License

The selected named GGUF and native metadata declare CC BY-NC 4.0. The actual publisher license incorporates the Cohere Labs Acceptable Use Addendum and policy. NonCommercial means not primarily intended for commercial advantage or monetary compensation; private or paid-VM use is not an exemption. Retain required attribution, license/disclaimer/source notices and indicate modifications when sharing; do not impose additional restrictions on licensed rights. The incorporated policy prohibits specified harmful/illegal/privacy/deceptive uses and synthetic data outputs for commercial purposes, including model or product development. Read all full terms and assess your own intended use before downloading. No terms acceptance, commercial permission or legal clearance is performed for you.

  • Both complete Q4_K_M shards total 67,135,512,640 serialized bytes. The native card describes a 111B dense model; native metadata reports 111,057,580,032 BF16 parameters. File bytes are not full process RAM.
  • 128 GiB RAM and 160 GiB disk are planning allocations, not measured minima or proven fit. Hybrid attention, F16 cache, runtime/scratch/loading and OS add unknown overhead. Local motherboard/DIMM/OS capacity must be verified. Native BF16 needs a separate larger configuration.

One-time setup and hardware

hardware
Unknown — Existing desktop purchase price and incremental hardware cost depend on the reader; unknown.
Existing desktop purchase price and incremental hardware cost depend on the reader; unknown. Tax: unknown.
setup
Unknown — Initial provisioning/build time and labor cost are unknown.
Initial provisioning/build time and labor cost are unknown. Tax: unknown.

Recurring costs

electricity
Unknown — Actual wall power, electricity rate and powered hours are unknown; no TDP-to-wall-power conversion.
Actual wall power, electricity rate and powered hours are unknown; no TDP-to-wall-power conversion. Tax: unknown.
storage
Unknown — Incremental cost of local storage is unknown. 160 GiB is an author planning allocation.
Incremental cost of local storage is unknown. 160 GiB is an author planning allocation. Tax: unknown.
egress
Unknown — Data transfer price, allowances and traffic volume are unknown.
Data transfer price, allowances and traffic volume are unknown. Tax: unknown.
administration
Unknown — Maintenance labor rate and hours are unknown.
Maintenance labor rate and hours are unknown. Tax: unknown.

Install the runtime

  1. 1. Build the pinned native CPU runtime

    Build official llama.cpp v0.7.0 at the exact source pin, on the same CPU host used to run it. The exact Cohere2 converter and CPU graph implement the native dense sliding/global attention architecture; this is source support, not an executed compatibility, fit or speed result. Stop on any failure.

    Command
    set -e
    sudo apt-get update
    sudo apt-get install -y build-essential cmake git curl ca-certificates openssl python3
    mkdir -p "$HOME/command-a-hosting/models"
    cd "$HOME/command-a-hosting"
    git clone https://github.com/ggml-org/llama.cpp.git
    git -C llama.cpp checkout --detach 620d2225cc436ab0b001e3200e590e3b286ef9ab
    cmake -S llama.cpp -B llama.cpp/build -DCMAKE_BUILD_TYPE=Release -DGGML_METAL=OFF -DGGML_NATIVE=ON
    cmake --build llama.cpp/build --config Release -j 4
    ./llama.cpp/build/bin/llama-server --version

    Expected result: Checkout and build succeed; server version identifies the pinned source. Stop on failure. No inference has been executed by the author.

Download the model

  1. 1. Download and verify both full shards and original native template

    Read all applicable terms first. Both exact split filenames must remain together and each byte count/SHA256 must pass. Native public metadata is verified by exact model/revision and template hash, without binding mutable download counters. No conversion, merge, partial model or template rewriting is used.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    curl --fail --location --retry 0 'https://huggingface.co/bartowski/CohereForAI_c4ai-command-a-03-2025-GGUF/resolve/18437d7ebc40a6db851d830447af945dce2dd904/CohereForAI_c4ai-command-a-03-2025-Q4_K_M/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf' -o 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf'
    echo '4782eea369c09b1a854d31f0631a76626f3200f2a307281436d9ae9b0fef67f4  models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf' | sha256sum --check
    test "$(stat -c %s 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf')" = 39913254368
    curl --fail --location --retry 0 'https://huggingface.co/bartowski/CohereForAI_c4ai-command-a-03-2025-GGUF/resolve/18437d7ebc40a6db851d830447af945dce2dd904/CohereForAI_c4ai-command-a-03-2025-Q4_K_M/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf' -o 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf'
    echo '440868013a3e98755918e552c651328f2672a1f1dc957f98b2f6f5fd498d0565  models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf' | sha256sum --check
    test "$(stat -c %s 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf')" = 27222258272
    curl --fail --location --retry 0 'https://huggingface.co/api/models/CohereLabs/c4ai-command-a-03-2025/revision/066daaa11d57404b07cc650d1068936d31431979?blobs=true' -o models/native-metadata.json
    python3 - <<'PYTEMPLATE'
    import pathlib,json,hashlib
    d=json.loads(pathlib.Path('models/native-metadata.json').read_text())
    assert d['id']=='CohereLabs/c4ai-command-a-03-2025' and d['sha']=='066daaa11d57404b07cc650d1068936d31431979'
    t=next(x['template']for x in d['config']['tokenizer_config']['chat_template']if x['name']=='default')
    b=t.encode();assert len(b)==15468 and hashlib.sha256(b).hexdigest()=='66c4bc0b329eb2314811a4f5ddbf3f560e8224bda30db0420dd8002474e1b071'
    pathlib.Path('models/command-a-default.jinja').write_bytes(b)
    print('Both complete shards and exact native Command A template verified')
    PYTEMPLATE

    Expected result: Both complete shard checks and exact native 15,468-byte template check pass. Any mismatch, missing file or access error stops the guide.

Configure

  1. 1. Create a private service credential

    Generate a local server password on your own host when following this guide. Preserve an existing key on repeat setup and never print or share it. This is not an provider API key.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    umask 077
    if [ ! -e .api-key ]; then
      openssl rand -hex 32 > .api-key
    fi
    test -s .api-key || { echo 'Restore the empty service-key file before continuing.'; exit 1; }
    chmod 600 .api-key

    Expected result: A nonempty private .api-key exists with mode 600. Existing key preserved; no secret printed.

Start the model

  1. 1. Start the complete private Command A CPU model

    Run foreground. The first exact split filename discovers and requires the second. The original native template is supplied verbatim, including its preamble and ordinary conversation markers. One slot has 4,096 total context tokens, including all input and up to 512 output tokens. No tools or document-retrieval branch is enabled.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    ./llama.cpp/build/bin/llama-server -m 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf' --alias command-a --host 127.0.0.1 --port 8080 --api-key-file .api-key --jinja --chat-template-file models/command-a-default.jinja --device none -c 4096 -np 1 -t 8 -ngl 0 --cache-type-k f16 --cache-type-v f16

    Expected result: The complete model loads from both shards and private loopback becomes ready, or a clear architecture/shard/template/resource failure stops setup. Successful load, fit and speed are not preclaimed.

Connect to your endpoint

http://127.0.0.1:8080/completion

Trusted desktop loopback only; checks run in a second local terminal.

Access: loopback. Private reader-generated service key from .api-key in the Bearer header protects template, tokenization and completion routes. The bounded client supplies only alternating text messages; no arbitrary tool executor or generated-code action is provided. Keep the key private and inspect proposed content manually.

Verify the setup

  1. 1. Check readiness, authentication and grounded conversation

    Run on the server in a second terminal. The original reader client applies the native template, counts parsed IDs with no duplicate BOS and includes the complete preamble/history inside a 3,584-token input limit. It rejects truncation, abnormal stops, control markers and malformed token IDs. Manually check weekday 9am–6pm, Saturday 10am–4pm and Sunday closure in both turns. No exact wording, quality score, benchmark or tool/code execution is implied.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    python3 - <<'PYHEALTH'
    import pathlib,urllib.request,urllib.error,json
    key=pathlib.Path('.api-key').read_text().strip()
    with urllib.request.urlopen(urllib.request.Request('http://127.0.0.1:8080/health',headers={'Authorization':'Bearer '+key}),timeout=30)as response:assert json.load(response)['status']=='ok'
    try:urllib.request.urlopen('http://127.0.0.1:8080/apply-template',timeout=30)
    except urllib.error.HTTPError as e:assert e.code==401
    else:raise RuntimeError('Authentication was not enforced')
    PYHEALTH
    cat > chat-client.py <<'PYCLIENT'
    """Reader-run native Command A ordinary text conversation check."""
    import json,pathlib,urllib.request
    
    def check_messages(messages):
        if not isinstance(messages,list) or not messages or len(messages)%2!=1: raise ValueError('user_ending_conversation_required')
        for i,m in enumerate(messages):
            if not isinstance(m,dict) or set(m)!={'role','content'} or m['role']!=('user' if i%2==0 else 'assistant') or not isinstance(m['content'],str) or not m['content'].strip() or len(m['content'].encode())>8192 or '<|' in m['content'] or '<BOS_TOKEN>' in m['content']:
                raise ValueError('invalid_plain_text_conversation')
    
    def run_case(messages,post):
        check_messages(messages)
        prompt=post('/apply-template',{'messages':messages})['prompt']
        if not isinstance(prompt,str) or not prompt.startswith('<BOS_TOKEN>') or prompt.count('<BOS_TOKEN>')!=1 or not prompt.endswith('<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_RESPONSE|>'):
            raise ValueError('native_template_mismatch')
        ids=post('/tokenize',{'content':prompt,'add_special':False,'parse_special':True})['tokens']
        if not isinstance(ids,list) or not ids or any(type(i)!=int or i<0 for i in ids) or len(ids)>3584: raise ValueError('prompt_budget_or_token_shape')
        result=post('/completion',{'prompt':ids,'n_predict':512,'temperature':0.3,'top_k':0,'top_p':1.0,'min_p':0.0,'repeat_penalty':1.0,'stop':['<|END_RESPONSE|>','<|END_OF_TURN_TOKEN|>'],'return_tokens':True,'cache_prompt':False})
        if result.get('stop_type') not in ('eos','word') or result.get('truncated') is not False: raise ValueError('unfinished_or_truncated_response')
        tokens=result.get('tokens');text=result.get('content')
        if not isinstance(tokens,list) or not 1<=len(tokens)<=512 or any(type(i)!=int or i<0 for i in tokens) or not isinstance(text,str) or not text.strip() or '<|' in text: raise ValueError('response_shape')
        return {'prompt_tokens':len(ids),'generated_tokens':len(tokens),'response':text}
    
    def main():
        key=pathlib.Path('.api-key').read_text().strip()
        def post(path,data):
            req=urllib.request.Request('http://127.0.0.1:8080'+path,json.dumps(data).encode(),headers={'Authorization':'Bearer '+key,'Content-Type':'application/json'})
            with urllib.request.urlopen(req,timeout=600) as response:return json.load(response)
        first=[{'role':'user','content':'Summarize only these facts in one sentence: The community library opens at 9am on weekdays and closes at 6pm. On Saturday it opens at 10am and closes at 4pm. It is closed on Sunday.'}]
        answer=run_case(first,post);print(json.dumps(answer,ensure_ascii=False))
        follow=first+[{'role':'assistant','content':answer['response']},{'role':'user','content':'Using the same facts, what are the Saturday opening hours and is it open on Sunday?'}]
        print(json.dumps(run_case(follow,post),ensure_ascii=False))
        print('Manually verify weekday 9am-6pm, Saturday 10am-4pm and Sunday closure; the follow-up should preserve the same facts. No exact wording, factual-quality score or executed benchmark is promised. Do not execute any proposed code or tool action.')
    if __name__=='__main__':main()
    PYCLIENT
    echo '09a6028c3b7722fa0c5ff8953a1a1de1f14c640a2a475888f88b7f06d498e1e4  chat-client.py' | sha256sum --check
    python3 chat-client.py

    Expected result: Authenticated readiness passes, the protected route rejects a missing key, and two nontruncated responses are available for manual source-fact review. Stop on any protocol failure or incorrect answer.

Performance evidence

No compatible measurement available. Documented support and estimated memory do not establish response speed.

Limits and troubleshooting

  • Source-documented complete configuration; no build, native model load, inference, full memory fit, latency or quality measurement occurred.
  • The exact native card identifies text-only Command A, a 111B dense model with three 4,096-window RoPE attention layers followed by a global layer without position embeddings. This is not the separate Vision, Reasoning or Plus model.
  • The complete named Bartowski Q4_K_M derivative has both shards totaling 67,135,512,640 bytes. Quantizer linkage names the original native model but does not establish its exact input native commit or raw-byte equivalence.
  • Exact native default template is 15,468 UTF-8 bytes and includes its contextual safety preamble, one BOS and START_RESPONSE / END_RESPONSE framing. No tools or documents are supplied; no blanket non-thinking guarantee or safety-score claim.
  • The publisher advertises 256K context but explicitly notes the default Hugging Face setting is 128K. This reduced 4,096-position recipe counts the complete prompt and response; it establishes no long-context fit or speed. Hybrid attention cache is not replaced by a dense shortcut formula.
  • 128 GiB RAM / 160 GiB disk and local eight inference threads / cloud sixteen vCPUs are allocations, not measured minima. Verify actual local motherboard/DIMM/OS capacity. Full native BF16, GPU, long context, RAG/citations, tools and multilingual task-specific workflows remain open.
  • The native raw config/tokenizer are gated in captured requests, while the exact public API supplies the architecture/template. The named GGUF is independently public. Do not bypass access failures or accept native download terms on another person’s behalf.
  • Current direct AUP/prompt docs returned 403. Prior official AUP bytes retain their real retrieval date; the current public grant/Addendum and all applicable policy terms must be reviewed before use. Private hosting and paid cloud rental do not waive non-commercial restrictions.
  • The grounded passage and follow-up are a useful manual check, not a factual-accuracy or benchmark result. A parser pass does not prove correctness. No generated code or tool action is executed.
Architecture, split-file, template or memory failure
Stop and retain the exact error. Verify the native Cohere2 runtime, both full shard hashes/sizes and original template. Do not substitute a smaller or partial model, merge files, relax checks or infer fit from the allocation.
Unexpected markers, abnormal stop, truncation or wrong follow-up
Reject the result. Verify exact template hash and full prompt count. Native ordinary conversation uses START_RESPONSE and END_RESPONSE; do not transfer Command R August markers or add a no-thinking guarantee. Manually compare every supplied fact.
Authentication or private connection failure
Confirm the reader key, foreground process and server loopback address. Use the same trusted workstation; no remote setup is assumed.

Stop the model

  1. 1. Stop the CPU backend

    Press Ctrl+C in the foreground server terminal. Unset the private key in each local shell and verify loopback port 8080 closes.

    Command
    unset COMMAND_SERVICE_KEY

    Expected result: The backend stops serving loopback port 8080.

Uninstall

  1. 1. Remove the dedicated walkthrough files

    Back up wanted outputs, confirm the exact path and remove only this dedicated directory. Shared system packages remain.

    Command
    rm -r -- "$HOME/command-a-hosting"

    Expected result: Dedicated complete weights, build, native metadata/template, client, private key and outputs removed.

Sources and verification

Sources checked Oct 16, 2026. Verification source

Compare this configuration
Cloud serverDocumented setupSources checked Oct 16, 2026

Run complete Command A Q4_K_M on a private CPU VM

Load the full Command A 111B model through both exact Bartowski Q4_K_M shards and its independently pinned native 15,468-byte conversation template. This private non-commercial CPU walkthrough checks a grounded conversation and follow-up within 4,096 total context tokens and a 512-token output cap. The 128 GiB RAM / 160 GiB disk allocation is planning capacity; fit, speed and answer quality remain unknown.

Hardware
AWS r7i.4xlarge CPU, 16 vCPU, 128 GiB RAM
Runtime
llama.cpp v0.7.0 (620d2225; full pin in source URL) · CPU
Model format
GGUF · Complete two-shard Q4_K_M mixed GGUF; no runtime quantization or native BF16 claim · Complete two-shard Q4_K_M mixed GGUF quantization; not native BF16
Workload
4,096 token context · 1 concurrent

Based on source documentation; this setup has not been executed by OpenTools. Memory: unknown. No compatible measurement available.

Read the complete setup guide

Before you start

  • Use an owned AWS r7i.4xlarge Ubuntu 24.04 x86_64 host in us-east-1 with sixteen vCPUs, 128 GiB RAM and a 160 GiB gp3 disk. Its dated quote is preserved; capacity and fit are unknown. Restrict SSH and keep public port 8080 closed.
  • The selected named GGUF and native metadata declare CC BY-NC 4.0. The actual publisher license incorporates the Cohere Labs Acceptable Use Addendum and policy. NonCommercial means not primarily intended for commercial advantage or monetary compensation; private or paid-VM use is not an exemption. Retain required attribution, license/disclaimer/source notices and indicate modifications when sharing; do not impose additional restrictions on licensed rights. The incorporated policy prohibits specified harmful/illegal/privacy/deceptive uses and synthetic data outputs for commercial purposes, including model or product development. Read all full terms and assess your own intended use before downloading. No terms acceptance, commercial permission or legal clearance is performed for you.
  • Use the exact complete Command A March 2025 derivative and keep both split files in one directory. This native model takes and generates text only; Command A Vision, Reasoning and Plus are separate models. No partial shard, smaller model or active-parameter storage shortcut is substituted.
  • Native raw config/tokenizer requests returned 401 and the model LICENSE path returned 404. Exact public native API metadata supplies the architecture and original template; the actual publisher grant is public. The named derivative is separately public in captured metadata. Stop on any access failure; no gated native download or terms acceptance is bypassed.
  • Current direct Cohere Labs AUP and prompt-doc fetches returned 403. The exact prior official same-URL AUP snapshot is retained with its original retrieval date and bytes, not called a new successful fetch. Review the applicable complete grant/Addendum/AUP yourself before download/use.
  • Use a trusted single-user host and original non-sensitive non-commercial research text. Private loopback and a service key do not grant commercial rights or provide public TLS/multiuser isolation. No provider credential or paid inference API is required.

Exact model and requirements

Artifact:
Bartowski (named GGUF derivative); Cohere Labs (native model) / Complete Command A March 2025 Q4_K_M by Bartowski, both shards · checkpoint bartowski/CohereForAI_c4ai-command-a-03-2025-GGUF
Publisher revision:
18437d7ebc40a6db851d830447af945dce2dd904
Artifact digest:
Both shard hashes are published; no whole-composition digest is provided or invented.
Download size:
62.52 GiB
Memory requirement (unknown):
Unknown — No full process peak measured for all 67,135,512,640 Q4_K_M bytes, hybrid attention cache, scratch/loading/runtime and OS.
System RAM / disk:
Unknown / Unknown
Placement:
single device. One CPU host with one conversation slot. All model layers run on CPU; no GPU or disk-offload path is configured.
KV cache:
F16 K and V attention cache; actual process/cache allocation unmeasured.
Workload:
4,096 token context; Unknown; Unknown; concurrency 1; batch 1; cache unknown; repetitions Unknown.
Tokenizer:
Exact named Command A derivative tokenizer with independently pinned native default conversation template · 18437d7ebc40a6db851d830447af945dce2dd904
Sampling / reasoning:
Temperature 0.3 follows the exact native Command A conversation example. Top-k 0, top-p 1, min-p 0 and repeat penalty 1 are author choices. Native END_RESPONSE / END_OF_TURN stops and a 512-token output cap; no tool or benchmark execution. Exact native default template includes its contextual safety preamble, one BOS, ordinary user/assistant history and START_RESPONSE generation prefix. No tools or documents are supplied. All preamble/history/control positions count toward the 3,584-token input allowance plus up to 512 output tokens inside 4,096 total. No blanket non-thinking claim. Publisher native context is 256K with a documented HF default of 128K; those larger configurations are not claimed here.
Runtime prerequisites:
Ubuntu 24.04 x86_64; See prerequisites above.

Official artifact · License

The selected named GGUF and native metadata declare CC BY-NC 4.0. The actual publisher license incorporates the Cohere Labs Acceptable Use Addendum and policy. NonCommercial means not primarily intended for commercial advantage or monetary compensation; private or paid-VM use is not an exemption. Retain required attribution, license/disclaimer/source notices and indicate modifications when sharing; do not impose additional restrictions on licensed rights. The incorporated policy prohibits specified harmful/illegal/privacy/deceptive uses and synthetic data outputs for commercial purposes, including model or product development. Read all full terms and assess your own intended use before downloading. No terms acceptance, commercial permission or legal clearance is performed for you.

  • Both complete Q4_K_M shards total 67,135,512,640 serialized bytes. The native card describes a 111B dense model; native metadata reports 111,057,580,032 BF16 parameters. File bytes are not full process RAM.
  • 128 GiB RAM and 160 GiB disk are planning allocations, not measured minima or proven fit. Hybrid attention, F16 cache, runtime/scratch/loading and OS add unknown overhead. Local motherboard/DIMM/OS capacity must be verified. Native BF16 needs a separate larger configuration.

One-time setup and hardware

hardware
Not applicable — AWS hardware acquisition is included in compute rental; no purchased GPU required. Any separate hardware cost is not applicable.
AWS hardware acquisition is included in compute rental; no purchased GPU required. Any separate hardware cost is not applicable. Tax: unknown.
setup
Unknown — Initial provisioning/build time and labor cost are unknown.
Initial provisioning/build time and labor cost are unknown. Tax: unknown.

Recurring costs

compute
$1.06 / hour
Exact original AWS feed quote USD 1.0584 per billed Linux instance-hour in us-east-1. Eight hours USD 8.4672; 24 hours USD 25.4016 compute. Idle running hours bill; no discount or reservation. Storage, egress, tax and administration additional; current capacity unknown. Region: us-east-1. SKU: r7i.4xlarge Linux On-Demand. Tax: excluded. Price dated Oct 15, 2026. Price source
storage
$0.08 / GB month
Captured us-east-1 gp3 quote USD 0.08 per GB-month, with GB defined as 1024^3 bytes. Selected 160 GiB root volume costs USD 12.80 per full month, prorated by provisioned duration, baseline 3000 IOPS and 125 MB/s. Retained snapshots/resources separate; storage persists after stop; tax excluded. Region: us-east-1. SKU: EBS gp3 baseline 3000 IOPS / 125 MB/s. Tax: excluded. Price dated Oct 16, 2026. Price source
egress
Unknown — Data transfer price, allowances and traffic volume are unknown.
Data transfer price, allowances and traffic volume are unknown. Tax: unknown.
administration
Unknown — Maintenance labor rate and hours are unknown.
Maintenance labor rate and hours are unknown. Tax: unknown.

Install the runtime

  1. 1. Build the pinned native CPU runtime

    Build official llama.cpp v0.7.0 at the exact source pin, on the same CPU host used to run it. The exact Cohere2 converter and CPU graph implement the native dense sliding/global attention architecture; this is source support, not an executed compatibility, fit or speed result. Stop on any failure.

    Command
    set -e
    sudo apt-get update
    sudo apt-get install -y build-essential cmake git curl ca-certificates openssl python3
    mkdir -p "$HOME/command-a-hosting/models"
    cd "$HOME/command-a-hosting"
    git clone https://github.com/ggml-org/llama.cpp.git
    git -C llama.cpp checkout --detach 620d2225cc436ab0b001e3200e590e3b286ef9ab
    cmake -S llama.cpp -B llama.cpp/build -DCMAKE_BUILD_TYPE=Release -DGGML_METAL=OFF -DGGML_NATIVE=ON
    cmake --build llama.cpp/build --config Release -j 4
    ./llama.cpp/build/bin/llama-server --version

    Expected result: Checkout and build succeed; server version identifies the pinned source. Stop on failure. No inference has been executed by the author.

Download the model

  1. 1. Download and verify both full shards and original native template

    Read all applicable terms first. Both exact split filenames must remain together and each byte count/SHA256 must pass. Native public metadata is verified by exact model/revision and template hash, without binding mutable download counters. No conversion, merge, partial model or template rewriting is used.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    curl --fail --location --retry 0 'https://huggingface.co/bartowski/CohereForAI_c4ai-command-a-03-2025-GGUF/resolve/18437d7ebc40a6db851d830447af945dce2dd904/CohereForAI_c4ai-command-a-03-2025-Q4_K_M/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf' -o 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf'
    echo '4782eea369c09b1a854d31f0631a76626f3200f2a307281436d9ae9b0fef67f4  models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf' | sha256sum --check
    test "$(stat -c %s 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf')" = 39913254368
    curl --fail --location --retry 0 'https://huggingface.co/bartowski/CohereForAI_c4ai-command-a-03-2025-GGUF/resolve/18437d7ebc40a6db851d830447af945dce2dd904/CohereForAI_c4ai-command-a-03-2025-Q4_K_M/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf' -o 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf'
    echo '440868013a3e98755918e552c651328f2672a1f1dc957f98b2f6f5fd498d0565  models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf' | sha256sum --check
    test "$(stat -c %s 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00002-of-00002.gguf')" = 27222258272
    curl --fail --location --retry 0 'https://huggingface.co/api/models/CohereLabs/c4ai-command-a-03-2025/revision/066daaa11d57404b07cc650d1068936d31431979?blobs=true' -o models/native-metadata.json
    python3 - <<'PYTEMPLATE'
    import pathlib,json,hashlib
    d=json.loads(pathlib.Path('models/native-metadata.json').read_text())
    assert d['id']=='CohereLabs/c4ai-command-a-03-2025' and d['sha']=='066daaa11d57404b07cc650d1068936d31431979'
    t=next(x['template']for x in d['config']['tokenizer_config']['chat_template']if x['name']=='default')
    b=t.encode();assert len(b)==15468 and hashlib.sha256(b).hexdigest()=='66c4bc0b329eb2314811a4f5ddbf3f560e8224bda30db0420dd8002474e1b071'
    pathlib.Path('models/command-a-default.jinja').write_bytes(b)
    print('Both complete shards and exact native Command A template verified')
    PYTEMPLATE

    Expected result: Both complete shard checks and exact native 15,468-byte template check pass. Any mismatch, missing file or access error stops the guide.

Configure

  1. 1. Create a private service credential

    Generate a local server password on your own host when following this guide. Preserve an existing key on repeat setup and never print or share it. This is not an provider API key.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    umask 077
    if [ ! -e .api-key ]; then
      openssl rand -hex 32 > .api-key
    fi
    test -s .api-key || { echo 'Restore the empty service-key file before continuing.'; exit 1; }
    chmod 600 .api-key

    Expected result: A nonempty private .api-key exists with mode 600. Existing key preserved; no secret printed.

  2. 2. Open an SSH tunnel from your client

    On your client replace the placeholders with an existing SSH key and this VM address. Keep the server bound to VM loopback; run verification in the SSH shell or forward localhost 8080 for your local client.

    Command
    set -e
    ssh -i /path/to/existing-key.pem -N -L 8080:127.0.0.1:8080 ubuntu@YOUR_INSTANCE_ADDRESS

    Expected result: Tunnel remains open while the SSH session runs. Client localhost:8080 reaches only the selected VM loopback service.

Start the model

  1. 1. Start the complete private Command A CPU model

    Run foreground. The first exact split filename discovers and requires the second. The original native template is supplied verbatim, including its preamble and ordinary conversation markers. One slot has 4,096 total context tokens, including all input and up to 512 output tokens. No tools or document-retrieval branch is enabled.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    ./llama.cpp/build/bin/llama-server -m 'models/CohereForAI_c4ai-command-a-03-2025-Q4_K_M-00001-of-00002.gguf' --alias command-a --host 127.0.0.1 --port 8080 --api-key-file .api-key --jinja --chat-template-file models/command-a-default.jinja --device none -c 4096 -np 1 -t 16 -ngl 0 --cache-type-k f16 --cache-type-v f16

    Expected result: The complete model loads from both shards and private loopback becomes ready, or a clear architecture/shard/template/resource failure stops setup. Successful load, fit and speed are not preclaimed.

Connect to your endpoint

http://127.0.0.1:8080/completion

VM loopback only. Shown client checks run in a second SSH session using the VM private key. Optional laptop tunnel: ssh -N -L 8080:127.0.0.1:8080 USER@VM_IP; separately provide the matching key securely and keep public port 8080 closed.

Access: loopback. Private reader-generated service key from .api-key in the Bearer header protects template, tokenization and completion routes. The bounded client supplies only alternating text messages; no arbitrary tool executor or generated-code action is provided. Keep the key private and inspect proposed content manually.

Verify the setup

  1. 1. Check readiness, authentication and grounded conversation

    Run on the server in a second terminal. The original reader client applies the native template, counts parsed IDs with no duplicate BOS and includes the complete preamble/history inside a 3,584-token input limit. It rejects truncation, abnormal stops, control markers and malformed token IDs. Manually check weekday 9am–6pm, Saturday 10am–4pm and Sunday closure in both turns. No exact wording, quality score, benchmark or tool/code execution is implied.

    Command
    set -e
    cd "$HOME/command-a-hosting"
    python3 - <<'PYHEALTH'
    import pathlib,urllib.request,urllib.error,json
    key=pathlib.Path('.api-key').read_text().strip()
    with urllib.request.urlopen(urllib.request.Request('http://127.0.0.1:8080/health',headers={'Authorization':'Bearer '+key}),timeout=30)as response:assert json.load(response)['status']=='ok'
    try:urllib.request.urlopen('http://127.0.0.1:8080/apply-template',timeout=30)
    except urllib.error.HTTPError as e:assert e.code==401
    else:raise RuntimeError('Authentication was not enforced')
    PYHEALTH
    cat > chat-client.py <<'PYCLIENT'
    """Reader-run native Command A ordinary text conversation check."""
    import json,pathlib,urllib.request
    
    def check_messages(messages):
        if not isinstance(messages,list) or not messages or len(messages)%2!=1: raise ValueError('user_ending_conversation_required')
        for i,m in enumerate(messages):
            if not isinstance(m,dict) or set(m)!={'role','content'} or m['role']!=('user' if i%2==0 else 'assistant') or not isinstance(m['content'],str) or not m['content'].strip() or len(m['content'].encode())>8192 or '<|' in m['content'] or '<BOS_TOKEN>' in m['content']:
                raise ValueError('invalid_plain_text_conversation')
    
    def run_case(messages,post):
        check_messages(messages)
        prompt=post('/apply-template',{'messages':messages})['prompt']
        if not isinstance(prompt,str) or not prompt.startswith('<BOS_TOKEN>') or prompt.count('<BOS_TOKEN>')!=1 or not prompt.endswith('<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_RESPONSE|>'):
            raise ValueError('native_template_mismatch')
        ids=post('/tokenize',{'content':prompt,'add_special':False,'parse_special':True})['tokens']
        if not isinstance(ids,list) or not ids or any(type(i)!=int or i<0 for i in ids) or len(ids)>3584: raise ValueError('prompt_budget_or_token_shape')
        result=post('/completion',{'prompt':ids,'n_predict':512,'temperature':0.3,'top_k':0,'top_p':1.0,'min_p':0.0,'repeat_penalty':1.0,'stop':['<|END_RESPONSE|>','<|END_OF_TURN_TOKEN|>'],'return_tokens':True,'cache_prompt':False})
        if result.get('stop_type') not in ('eos','word') or result.get('truncated') is not False: raise ValueError('unfinished_or_truncated_response')
        tokens=result.get('tokens');text=result.get('content')
        if not isinstance(tokens,list) or not 1<=len(tokens)<=512 or any(type(i)!=int or i<0 for i in tokens) or not isinstance(text,str) or not text.strip() or '<|' in text: raise ValueError('response_shape')
        return {'prompt_tokens':len(ids),'generated_tokens':len(tokens),'response':text}
    
    def main():
        key=pathlib.Path('.api-key').read_text().strip()
        def post(path,data):
            req=urllib.request.Request('http://127.0.0.1:8080'+path,json.dumps(data).encode(),headers={'Authorization':'Bearer '+key,'Content-Type':'application/json'})
            with urllib.request.urlopen(req,timeout=600) as response:return json.load(response)
        first=[{'role':'user','content':'Summarize only these facts in one sentence: The community library opens at 9am on weekdays and closes at 6pm. On Saturday it opens at 10am and closes at 4pm. It is closed on Sunday.'}]
        answer=run_case(first,post);print(json.dumps(answer,ensure_ascii=False))
        follow=first+[{'role':'assistant','content':answer['response']},{'role':'user','content':'Using the same facts, what are the Saturday opening hours and is it open on Sunday?'}]
        print(json.dumps(run_case(follow,post),ensure_ascii=False))
        print('Manually verify weekday 9am-6pm, Saturday 10am-4pm and Sunday closure; the follow-up should preserve the same facts. No exact wording, factual-quality score or executed benchmark is promised. Do not execute any proposed code or tool action.')
    if __name__=='__main__':main()
    PYCLIENT
    echo '09a6028c3b7722fa0c5ff8953a1a1de1f14c640a2a475888f88b7f06d498e1e4  chat-client.py' | sha256sum --check
    python3 chat-client.py

    Expected result: Authenticated readiness passes, the protected route rejects a missing key, and two nontruncated responses are available for manual source-fact review. Stop on any protocol failure or incorrect answer.

Performance evidence

No compatible measurement available. Documented support and estimated memory do not establish response speed.

Limits and troubleshooting

  • Source-documented complete configuration; no build, native model load, inference, full memory fit, latency or quality measurement occurred.
  • The exact native card identifies text-only Command A, a 111B dense model with three 4,096-window RoPE attention layers followed by a global layer without position embeddings. This is not the separate Vision, Reasoning or Plus model.
  • The complete named Bartowski Q4_K_M derivative has both shards totaling 67,135,512,640 bytes. Quantizer linkage names the original native model but does not establish its exact input native commit or raw-byte equivalence.
  • Exact native default template is 15,468 UTF-8 bytes and includes its contextual safety preamble, one BOS and START_RESPONSE / END_RESPONSE framing. No tools or documents are supplied; no blanket non-thinking guarantee or safety-score claim.
  • The publisher advertises 256K context but explicitly notes the default Hugging Face setting is 128K. This reduced 4,096-position recipe counts the complete prompt and response; it establishes no long-context fit or speed. Hybrid attention cache is not replaced by a dense shortcut formula.
  • 128 GiB RAM / 160 GiB disk and local eight inference threads / cloud sixteen vCPUs are allocations, not measured minima. Verify actual local motherboard/DIMM/OS capacity. Full native BF16, GPU, long context, RAG/citations, tools and multilingual task-specific workflows remain open.
  • The native raw config/tokenizer are gated in captured requests, while the exact public API supplies the architecture/template. The named GGUF is independently public. Do not bypass access failures or accept native download terms on another person’s behalf.
  • Current direct AUP/prompt docs returned 403. Prior official AUP bytes retain their real retrieval date; the current public grant/Addendum and all applicable policy terms must be reviewed before use. Private hosting and paid cloud rental do not waive non-commercial restrictions.
  • The grounded passage and follow-up are a useful manual check, not a factual-accuracy or benchmark result. A parser pass does not prove correctness. No generated code or tool action is executed.
Architecture, split-file, template or memory failure
Stop and retain the exact error. Verify the native Cohere2 runtime, both full shard hashes/sizes and original template. Do not substitute a smaller or partial model, merge files, relax checks or infer fit from the allocation.
Unexpected markers, abnormal stop, truncation or wrong follow-up
Reject the result. Verify exact template hash and full prompt count. Native ordinary conversation uses START_RESPONSE and END_RESPONSE; do not transfer Command R August markers or add a no-thinking guarantee. Manually compare every supplied fact.
Authentication or private connection failure
Confirm the reader key, foreground process and server loopback address. Use the documented existing SSH tunnel if needed and keep public 8080 closed.

Stop the model

  1. 1. Stop the CPU backend

    Press Ctrl+C in the foreground server terminal. Unset the private key in each shell and close any SSH tunnel. This does not stop compute or storage billing.

    Command
    unset COMMAND_SERVICE_KEY

    Expected result: The backend stops serving loopback port 8080.

Uninstall

  1. 1. Remove the dedicated walkthrough files

    Back up wanted outputs, confirm the exact path and remove only this dedicated directory. Shared system packages remain.

    Command
    rm -r -- "$HOME/command-a-hosting"

    Expected result: Dedicated complete weights, build, native metadata/template, client, private key and outputs removed.

Shut down cloud resources

  1. 1. End cloud billing resources

    In EC2 us-east-1, stop for later reuse or terminate this exact VM. Review Delete on termination for its root volume. Delete unwanted detached EBS volumes, snapshots and reserved/Elastic/public IP resources. Stopped VM storage and retained resources may still bill. Check Bills/Cost Explorer later for final usage.

    Expected result: Exact instance is stopped/terminated as intended; no unwanted attached/retained billed resources remain. Instance compute stops only after its lifecycle transition, not when llama-server stops.

Sources and verification

Sources checked Oct 16, 2026. Verification source

Compare this configuration

Benchmarks

Performance scores for Command A across standard benchmarks.

MMLUOpenRouter · Mar 2025
80.1

Pricing

Token pricing for Command A API usage.

Input Tokens

$2.50/M

per million tokens

Output Tokens

$10.00/M

per million tokens

Competing Models

Same pricing tier — direct alternatives to Command A

Flagship
$0.60/M / $6.00/MCompare
85
7.0
$4.00/M / $20.00/MCompare
78
11.1
$2.00/M / $12.00/MCompare
64
10.6
$2.00/M / $10.00/MCompare
50
11.1
$1.50/M / $7.50/MCompare
91
6.1
$5.00/M / $25.00/MCompare
81
9.0
$3.00/M / $15.00/MCompare
$2.00/M / $10.00/MCompare
$2.00/M / $10.00/MCompare
$2.00/M / $6.00/MCompare
Cohere logo
Cohereai lab

Own your AI

1 MCP Servers5 ModelsFounded 2019Toronto, Ontario, Canada
View full profile

AI Models by Cohere

AI models from the same organization.

ModelContext WindowPrice (In / Out per M)
North Mini CodeCurrent262KFree / Free
Command R7B (12-2024)Current128K$0.04 / $0.15
Command R+ (08-2024)Current128K$2.50 / $10.00
Command R (08-2024)Current128K$0.15 / $0.60

MCP Servers by Cohere

Connect this tool to AI assistants via the Model Context Protocol.

Related News

Latest coverage and updates.