Instructions to use C3DS/CARDS-Qwen3.5-9B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="C3DS/CARDS-Qwen3.5-9B-GGUF", filename="Qwen3.5-9B.BF16-mmproj.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf C3DS/CARDS-Qwen3.5-9B-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-9B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf C3DS/CARDS-Qwen3.5-9B-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-9B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use C3DS/CARDS-Qwen3.5-9B-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-9B-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-9B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
- Ollama
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with Ollama:
ollama run hf.co/C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
- Unsloth Studio new
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for C3DS/CARDS-Qwen3.5-9B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for C3DS/CARDS-Qwen3.5-9B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for C3DS/CARDS-Qwen3.5-9B-GGUF to start chatting
- Pi new
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/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-9B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf C3DS/CARDS-Qwen3.5-9B-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-9B-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with Docker Model Runner:
docker model run hf.co/C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
- Lemonade
How to use C3DS/CARDS-Qwen3.5-9B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull C3DS/CARDS-Qwen3.5-9B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.CARDS-Qwen3.5-9B-GGUF-Q4_K_M
List all available models
lemonade list
CARDS-Qwen3.5-9B-GGUF
GGUF builds of C3DS/CARDS-Qwen3.5-9B — Qwen3.5-9B fine-tuned for climate-contrarian-claim classification under the CARDS taxonomy from Coan et al. (2025).
For accuracy comparisons against the BF16 sibling, larger Qwen3 variants, 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.872 (0 / 1,436 parse failures).
Available files
| File | Quantization | Approx. size | Use |
|---|---|---|---|
Qwen3.5-9B.Q4_K_M.gguf |
Q4_K_M (4-bit, mixed) | ~5.6 GB | smallest; runs on consumer GPUs / Apple Silicon |
Qwen3.5-9B.Q8_0.gguf |
Q8_0 (8-bit) | ~9.5 GB | near-BF16 quality |
Qwen3.5-9B.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 9B (Q4_K_M, ~5.6 GB):
ollama run exec3ds/cards-qwen3.5:9b
The same namespace also publishes :4b and :27b 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:9b ./image.webp \
"What climate claim is being made in this image?"
Text-only with llama.cpp
llama-cli \
-hf C3DS/CARDS-Qwen3.5-9B-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-9B-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-9B-GGUF:Q4_K_M \
--mmproj-hf C3DS/CARDS-Qwen3.5-9B-GGUF/Qwen3.5-9B.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-9B(LoRA-merged Qwen3.5-9B) - 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-9B.
- Downloads last month
- 638
4-bit
8-bit
