Instructions to use C3DS/CARDS-Qwen3.5-27B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "C3DS/CARDS-Qwen3.5-27B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "C3DS/CARDS-Qwen3.5-27B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
- Ollama
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with Ollama:
ollama run hf.co/C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with Docker Model Runner:
docker model run hf.co/C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
- Lemonade
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.CARDS-Qwen3.5-27B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use C3DS/CARDS-Qwen3.5-27B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
CARDS-Qwen3.5-27B-GGUF
GGUF builds of C3DS/CARDS-Qwen3.5-27B — Qwen3.5-27B fine-tuned for climate-contrarian-claim classification under the CARDS taxonomy from Coan et al. (2025).
For accuracy comparisons against the BF16 sibling, the joint CARDS+Wind variant, Claude Opus 4.6 / 4.7 and GPT-5.5, see the BF16 model card. Headline number on the held-out CARDS test set: L1 samples F1 = 0.884 (0 / 1,436 parse failures).
Available files
| File | Quantization | Approx. size | Use |
|---|---|---|---|
Qwen3.5-27B.Q4_K_M.gguf |
Q4_K_M (4-bit, mixed) | ~17 GB | smallest; runs on a single consumer GPU / Apple Silicon |
Qwen3.5-27B.Q8_0.gguf |
Q8_0 (8-bit) | ~29 GB | near-BF16 quality |
Qwen3.5-27B.BF16-mmproj.gguf |
BF16 mmproj | — | multimodal projector (vision encoder); pair with either weight file for image input |
The Q4_K_M and Q8_0 files are alternatives — pick one based on your accuracy / memory trade-off. The mmproj file is additional and only needed for image inputs.
Usage
With Ollama
A pre-published Ollama version is available at exec3ds/cards-qwen3.5. Pull and run the 27B (Q4_K_M, ~17 GB):
ollama run exec3ds/cards-qwen3.5:27b
The same namespace also publishes :4b and :9b tags. The bundled chat template is applied automatically — Qwen3's <think> block precedes the YAML categories: output.
Image input works too — pass an image path on the command line:
ollama run exec3ds/cards-qwen3.5:27b ./image.webp \
"What climate claim is being made in this image?"
Text-only with llama.cpp
llama-cli \
-hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M \
--jinja \
-p "Classify the following climate claim under the CARDS taxonomy:\nThese are only a few renewable energy technologies at work."
The --jinja flag tells llama-cli to use the bundled chat template, which adds Qwen3's <think> reasoning trace plus the YAML categories: block at the end. Parse the content after </think> to extract the predicted CARDS codes.
For an OpenAI-compatible local server, use llama-server:
llama-server \
-hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M \
--jinja \
--port 8000
Multimodal — image + text
The base Qwen3.5 architecture (Qwen3_5ForConditionalGeneration) is multimodal. Pair the weight file with the BF16-mmproj.gguf projector and use llama-mtmd-cli:
llama-mtmd-cli \
-hf C3DS/CARDS-Qwen3.5-27B-GGUF:Q4_K_M \
--mmproj-hf C3DS/CARDS-Qwen3.5-27B-GGUF/Qwen3.5-27B.BF16-mmproj.gguf \
--jinja \
--image screenshot.png \
-p "Read the image (and any caption) and classify the climate claim under the CARDS taxonomy."
For the canonical CARDS system prompt and CoT trigger, fetch
cards_prompts.json
from the BF16 sibling repo and pass slim_system_instruction as the system
prompt + cot_trigger at the end of the user turn.
Conversion details
- Source checkpoint:
C3DS/CARDS-Qwen3.5-27B(LoRA-merged Qwen3.5-27B) - Tool: Unsloth → llama.cpp converter
- Quantizations included: Q4_K_M, Q8_0
- Multimodal projector: BF16 (kept full-precision for accuracy on vision inputs)
Limitations
- Thinking tokens. Training used
enable_thinking=True. Either parse output after</think>, or disable thinking in your sampler / system prompt. Reserve token budget for the reasoning trace before the final YAML block. - Quantization trade-offs. Q4_K_M is the most aggressive; expect a modest drop from BF16 in the long-tailed L3 macro-F1 metrics. Q8_0 tracks BF16 more closely.
- Multimodal use is opportunistic. Training was text-only; image-input behavior comes from the preserved base vision encoder. Performance on image inputs has not been quantitatively benchmarked.
Citation
@article{coan2025cards,
title = {Large language model reveals an increase in climate contrarian speech in the United States Congress},
author = {Coan, Travis G. and Malla, Ranadheer and Nanko, Mirjam O. and Kattrup, William and Roberts, J. Timmons and Cook, John and Boussalis, Constantine},
journal = {Communications Sustainability},
volume = {1},
pages = {37},
year = {2025},
doi = {10.1038/s44458-025-00029-z}
}
License
Apache 2.0, inherited from Qwen3.5-27B.
- Downloads last month
- 238
4-bit
8-bit
