Instructions to use h3rb3rn/sovereign-judge-27b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use h3rb3rn/sovereign-judge-27b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="h3rb3rn/sovereign-judge-27b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("h3rb3rn/sovereign-judge-27b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use h3rb3rn/sovereign-judge-27b 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 h3rb3rn/sovereign-judge-27b:Q4_K_M # Run inference directly in the terminal: llama cli -hf h3rb3rn/sovereign-judge-27b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf h3rb3rn/sovereign-judge-27b:Q4_K_M # Run inference directly in the terminal: llama cli -hf h3rb3rn/sovereign-judge-27b: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 h3rb3rn/sovereign-judge-27b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf h3rb3rn/sovereign-judge-27b: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 h3rb3rn/sovereign-judge-27b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf h3rb3rn/sovereign-judge-27b:Q4_K_M
Use Docker
docker model run hf.co/h3rb3rn/sovereign-judge-27b:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use h3rb3rn/sovereign-judge-27b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "h3rb3rn/sovereign-judge-27b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "h3rb3rn/sovereign-judge-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/h3rb3rn/sovereign-judge-27b:Q4_K_M
- SGLang
How to use h3rb3rn/sovereign-judge-27b 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 "h3rb3rn/sovereign-judge-27b" \ --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": "h3rb3rn/sovereign-judge-27b", "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 "h3rb3rn/sovereign-judge-27b" \ --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": "h3rb3rn/sovereign-judge-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use h3rb3rn/sovereign-judge-27b with Ollama:
ollama run hf.co/h3rb3rn/sovereign-judge-27b:Q4_K_M
- Unsloth Desktop
- Pi
How to use h3rb3rn/sovereign-judge-27b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf h3rb3rn/sovereign-judge-27b: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": "h3rb3rn/sovereign-judge-27b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use h3rb3rn/sovereign-judge-27b with Docker Model Runner:
docker model run hf.co/h3rb3rn/sovereign-judge-27b:Q4_K_M
- Lemonade
How to use h3rb3rn/sovereign-judge-27b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull h3rb3rn/sovereign-judge-27b:Q4_K_M
Run and chat with the model
lemonade run user.sovereign-judge-27b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use h3rb3rn/sovereign-judge-27b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf h3rb3rn/sovereign-judge-27b: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 h3rb3rn/sovereign-judge-27b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use h3rb3rn/sovereign-judge-27b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf h3rb3rn/sovereign-judge-27b: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 "h3rb3rn/sovereign-judge-27b: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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf h3rb3rn/sovereign-judge-27b:Q4_K_M# Run inference directly in the terminal:
llama cli -hf h3rb3rn/sovereign-judge-27b:Q4_K_MUse 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 h3rb3rn/sovereign-judge-27b:Q4_K_M# Run inference directly in the terminal:
./llama-cli -hf h3rb3rn/sovereign-judge-27b:Q4_K_MBuild 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 h3rb3rn/sovereign-judge-27b:Q4_K_M# Run inference directly in the terminal:
./build/bin/llama-cli -hf h3rb3rn/sovereign-judge-27b:Q4_K_MUse Docker
docker model run hf.co/h3rb3rn/sovereign-judge-27b:Q4_K_M
⚖️ MoE Sovereign Judge 27B (sovereign-judge-27b)
Paraconsistent Consensus Oracle, Self-Correction Gatekeeper & Formal Output Verifier
⚠️ Note on the "Architecture: qwen35" GGUF sidebar tag: Hugging Face reads this directly from the embedded
general.architecturefield of the uploaded GGUF files.llama.cppassigns this identifier to the entire Qwen 3.5/3.6/3.8 hybrid linear-attention code family (Gated DeltaNet + Gated Attention) — it does not indicate a different or older base model. This checkpoint was converted fromQwen/Qwen3.8-27B(seebase_modelabove and the Hyperparameters section below); the GGUF/llama.cpp architecture tag has simply not been split out per Qwen release yet.
📌 Executive Summary
sovereign-judge-27b is a high-capacity 27-billion parameter verification and evaluation model, LoRA fine-tuned on the LUMI-G Supercomputer (8× AMD Instinct™ MI250X GCDs (4× physical modules, 64GB HBM2e per GCD)).
Within the MoE Sovereign compound AI system, sovereign-judge-27b serves as the top-level Quality Gatekeeper, Self-Correction Oracle, and Paraconsistent Consensus Arbitrator. When 4B domain SLMs generate candidate solutions or when multi-agent debates produce conflicting propositions, sovereign-judge-27b evaluates formal consistency, detects logical contradictions, checks regulatory alignment, and decides whether an output passes the strict 66% consensus threshold or requires bounded self-correction.
🎯 Target Use Cases & Functional Scope
- Paraconsistent Consensus Arbitration: Analyzes conflicting outputs from peer domain models, filtering out outliers and calculating calibrated consensus scores.
- Formal Self-Correction Triggering: When an execution plan or code artifact fails validation gates, generates minimal, surgical correction directives for the Planner.
- Multi-Aspect Quality Scoring: Evaluates candidate responses along 5 rigorous axes: Factual Grounding, Security Hardening, Syntactic Validity, Regulatory Compliance, and Efficiency.
- Correction Memory Ingestion: Extracts detected failure patterns, abstracts the underlying anti-pattern, and formats new entries for persistent Correction Memory.
🔬 Behavioral Comparison: Stock Qwen 3.8 27B vs. Sovereign Judge
| Capability | Base Stock Qwen 3.8 27B | sovereign-judge-27b (Distilled) |
|---|---|---|
| Evaluation Stance | Lenient, sycophantic rating of AI outputs | Strict, Adversarial Verification; flags all logic flaws and subtle hallucinations |
| Consensus Handling | Simple majority vote or averaging | Paraconsistent Logic Filter: Detects contradictions without exploding the reasoning space |
| Self-Correction | Generates generic instructions to "try again" | Surgical Failure Analysis: Identifies the exact violated invariant and provides actionable remediation |
| Memory Extraction | No memory abstraction capabilities | Automated Correction Memory Extraction: Generalizes runtime errors into reusable patterns |
🏋️ Training Setup
+-----------------------------------------------------------------------------------+
| LUMI-G LORA FINE-TUNING PIPELINE |
| [ Student: Qwen3.8-27B BF16 Base ] |
| | |
| v (LoRA r=16, alpha=32, target_modules: q/k/v/o/gate/up/down)|
| [ Output: final_adapter -> CPU-BF16 Merge -> GGUF Q4_K_M & Q8_0 ] |
+-----------------------------------------------------------------------------------+
Hyperparameters:
- Compute Cluster: LUMI-G (8× AMD Instinct MI250X 128GB GPUs)
- Base Architecture: Qwen3.8-27B in BF16
- Epochs: 3.0
- Effective Batch Size: 128 (Micro-batch 2 × 8 GPUs × Gradient Accumulation 8)
- Learning Rate: $1.0 \times 10^{-5}$ with Cosine Decay and Warmup
- LoRA Configuration: $r=16$, $\alpha=32$, Dropout $0.05$, Target Modules:
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj - Training Precision: Pure BF16 with DeepSpeed ZeRO-2
💻 Quickstart Guide (Ollama & Llama.cpp)
1. Ollama Modelfile
FROM ./sovereign-judge-27b-Q4_K_M.gguf
PARAMETER num_ctx 262144
PARAMETER temperature 0.05
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ .Response }}<|im_end|>"""
2. Python Inference
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "h3rb3rn/sovereign-judge-27b"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
prompt = "<|im_start|>user\nEvaluate the following candidate DAG execution plan and determine whether it satisfies paraconsistent consensus and GDPR boundary rules.<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.05)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
📑 Citation
@misc{moe_sovereign_2026_judge27b,
author = {Horn, Philipp and MoE Sovereign Core AI Team},
title = {MoE Sovereign Judge 27B: Paraconsistent Consensus & Self-Correction Oracle},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/h3rb3rn/sovereign-judge-27b}},
note = {Trained on the EuroHPC LUMI-G Supercomputer}
}
- Downloads last month
- 72
4-bit
8-bit
Model tree for h3rb3rn/sovereign-judge-27b
Base model
Qwen/Qwen3.8-27B
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf h3rb3rn/sovereign-judge-27b:Q4_K_M# Run inference directly in the terminal: llama cli -hf h3rb3rn/sovereign-judge-27b:Q4_K_M