How to use from
OpenClaw
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf krishnakartik/gemma4-social-bias-judge-gguf:Q5_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 "krishnakartik/gemma4-social-bias-judge-gguf:Q5_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"
Quick Links

gemma4-social-bias-judge — GGUF quantizations

GGUF quantizations of the judge-from-scratch social-bias judge. Both the DPO primary release and the SFT-only secondary release are bundled in this single repo with suffixed Ollama tags so users can pick the right checkpoint for their use case from one discovery point.

Full model description, eval results, and the OOD-regression caveat that decides DPO vs SFT live in the model cards, not here:


⚠️ Important: Thinking Mode

These models were fine-tuned with Gemma 4's native thinking mode DISABLED. The bundled Modelfiles' SYSTEM blocks omit <|think|> deliberately. Do not modify them to enable thinking mode — see the primary model card for the full explanation.


Available tags

Tag Checkpoint Quant File size Use case
:Q8_0 DPO (default) Q8_0 8.03 GB Best quality; recommended starting point
:Q5_K_M DPO Q5_K_M 5.76 GB Smaller; minor quality trade-off
:Q8_0-sft SFT-only Q8_0 8.03 GB Use for OOD bias categories
:Q5_K_M-sft SFT-only Q5_K_M 5.76 GB Smaller SFT-only

(Sizes are larger than typical 4B quantizations because Gemma 4 E4B has ~8B raw parameters even though it operates at "4B effective" via the per-layer-input embedding mechanism. Plan for the fp16-baseline equivalent of ~16 GB of disk.)

If your bias categories are outside BBQ's training set (politics, ideology, novel demographic axes), prefer the -sft tags — see the OOD-regression discussion on the primary model card.


Quick start

Ollama (default DPO Q8_0)

ollama run hf.co/krishnakartik/gemma4-social-bias-judge-gguf:Q8_0

Ollama (SFT-only Q8_0)

ollama run hf.co/krishnakartik/gemma4-social-bias-judge-gguf:Q8_0-sft

llama.cpp

The judge expects a specific system prompt; pull both the GGUF and the system-prompt text into a working directory before invoking llama-cli.

# 1. Pull the GGUF.
huggingface-cli download \
  krishnakartik/gemma4-social-bias-judge-gguf Q8_0.gguf \
  --local-dir ./gemma4-judge

# 2. Pull the system prompt (Apache-2.0; canonical source in the
#    judge-from-scratch repo).
curl -fsSL -o ./gemma4-judge/system_prompt.md \
  https://raw.githubusercontent.com/krishnakartik1/judge-from-scratch/main/data/judge_system_prompt.md

# 3. Run.
llama-cli -m ./gemma4-judge/Q8_0.gguf \
  --temp 0 --ctx-size 4096 \
  --system-prompt-file ./gemma4-judge/system_prompt.md

Ollama users can skip the system-prompt download — the Modelfiles in this repo (Modelfile.Q8_0 etc.) embed the judge system prompt and the temperature / num_ctx settings already, so ollama run hf.co/...:Q8_0 is fully self-contained.


License & citation

Same as the primary model card.

Downloads last month
56
GGUF
Model size
8B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

5-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for krishnakartik/gemma4-social-bias-judge-gguf

Quantized
(320)
this model