Instructions to use gghfez/c4ai-command-a-03-2025-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gghfez/c4ai-command-a-03-2025-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gghfez/c4ai-command-a-03-2025-AWQ") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gghfez/c4ai-command-a-03-2025-AWQ") model = AutoModelForCausalLM.from_pretrained("gghfez/c4ai-command-a-03-2025-AWQ", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gghfez/c4ai-command-a-03-2025-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gghfez/c4ai-command-a-03-2025-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gghfez/c4ai-command-a-03-2025-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gghfez/c4ai-command-a-03-2025-AWQ
- SGLang
How to use gghfez/c4ai-command-a-03-2025-AWQ 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 "gghfez/c4ai-command-a-03-2025-AWQ" \ --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": "gghfez/c4ai-command-a-03-2025-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "gghfez/c4ai-command-a-03-2025-AWQ" \ --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": "gghfez/c4ai-command-a-03-2025-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use gghfez/c4ai-command-a-03-2025-AWQ with Docker Model Runner:
docker model run hf.co/gghfez/c4ai-command-a-03-2025-AWQ
Newest vLLM produces nonsense with longer context
vLLM v0.9.2 works perfectly fine with the model out of the box.
Any idea how you can get the model to work wiith the newest vLLM?
With a chat above 20k tokens the model produces endless repeating special characters.
example:
"ــ |ــ |ــ | | |ــ | | |ــ |ــ | | | | | | | | | |ــ | | |ــ | | | | | | | | | | | | | | | | |"
I just tested and get the same thing. Thanks for mentioning v0.9.2 works as I use it daily.
With a chat above 20k tokens
Yes it completely breaks down by then, but even <10k context has coherent yet degraded outputs.
I wasn't able to figure out the cause, but does this guy's command-a-reasoning work?
cpatonn/command-a-reasoning-08-2025-AWQ-4bit ?
If so, I'll try and make a new quant (This one is a bit of a hack from before cohere2 was supported with AWQ)
I just tried the linked model;
It works fine, also above 20k tokens.
I believe i don't have the chat template correctly set. since the <|START_THINKING|> and <|END_THINKING|> tags are showing and the co../co tags have no meaning in OWUI.
Also it's behaving somewhere near the line between brilliant and crazy but that's command A's style i feel like.
But maybe it's also degraded.
I'll also check with v0.9.2 and report back
v0.9.2 performs fine for both models.
v0.10.1.1 performs good for command-A-reasoning, but barely for command-a
I just tried the linked model; It works fine, also above 20k tokens.
Thanks for testing that, based on your feedback, I created a new quant with a similar recipe to that model.
I've been testing it at ~12k-20k using vllm 0.10.1 / pytorch 2.7.1 on 4x3090 with -tp 4
tags have no meaning in OWUI.
For non-standard thinking tags (so not in openwebui, you need to change this:
That being said, I ended up deleting that model as it's worse for writing.
@HenkTenk Heads up, I'll be deleting all the .safetensors in this repo shortly as I've hit the huggingface storage limit.
This newer quant works for vllm==0.10.1:
gghfez/command-a-03-2025-AWQ
So if you still need this for whatever reason keep a local copy and re-upload it to your own account.
