Nightwatch Round 3 Specialists (GGUF)
Four 100% offline edge log-triage specialist models distilled with distil labs from 1,513 guardrail-verified training rows (expanded from 36 hand-written seeds) and quantized to text-only GGUF via llama.cpp for local execution in Ollama.
Every specialist reads a noisy 5–15 line edge-station log window (including cascades, German/JSON/CEF vendor formats, concurrent uploads, and prompt-injection attempts), identifies the root cause (not the last error line), and emits exactly one structured tool call (restart_service, free_disk, retry_upload, quarantine_upload, escalate, or ignore) at temperature=0.0.
- Demo Video: Watch Nightwatch on YouTube
- Product & Go Agent: barbarosydev/nightwatch-agent (Website & Docs)
- Benchmark Suite & Distillation Pipeline: barbarosydev/Nightwatch
Quick Install (Recommended)
Automatic install with Nightwatch Agent (picks the largest tier for your RAM)
# Install Nightwatch binary + embedded ClickHouse + auto-selected specialist in Ollama
curl -fsSL https://raw.githubusercontent.com/barbarosydev/nightwatch-agent/main/install.sh | sh
# Or pick a specific tier (default | balanced | small | tiny | all)
curl -fsSL https://raw.githubusercontent.com/barbarosydev/nightwatch-agent/main/install.sh | sh -s -- --model balanced
# Already installed Nightwatch and just want to add or switch a model?
curl -fsSL https://raw.githubusercontent.com/barbarosydev/nightwatch-agent/main/install.sh | sh -s -- --model-only --model small
The installer verifies each file's SHA-256 checksum and registers it in local Ollama with the exact RENDERER / PARSER / TEMPLATE / SYSTEM Modelfile required for full accuracy.
Manual Ollama install (any single model)
Important: Use the bundled Modelfiles in
modelfiles/rather than bareollama run hf.co/.... The Modelfiles set the exactRENDERER/PARSER(gemma4,qwen3.5), Qwen3 tool template, system prompt, andtemperature 0.0used during evaluation.
Example for default (nightwatch-gemma4-e2b, 3.46 GB, 97.5% held-out):
curl -fL -o nightwatch-gemma4-e2b-r3-q5-q5_k_m.gguf \
https://huggingface.co/barbarosydev/nightwatch-r3-gguf/resolve/main/nightwatch-gemma4-e2b-r3-q5-q5_k_m.gguf
curl -fL -o nightwatch-gemma4-e2b.Modelfile \
https://huggingface.co/barbarosydev/nightwatch-r3-gguf/resolve/main/modelfiles/nightwatch-gemma4-e2b.Modelfile
# Optional: verify SHA-256
shasum -a 256 nightwatch-gemma4-e2b-r3-q5-q5_k_m.gguf
# Expected: 05670e7a731e31f6262b6fa2a553ff23107d9584c503454a3162e1c98ea85e66
ollama create nightwatch-gemma4-e2b -f nightwatch-gemma4-e2b.Modelfile
Model Inventory & Checksums
| Tier | Ollama Tag | Base Model | Quant | File | Size | RAM Rule | SHA-256 |
|---|---|---|---|---|---|---|---|
default | nightwatch-gemma4-e2b | google/gemma-4-E2B-it | Q5_K_M (text-only) | nightwatch-gemma4-e2b-r3-q5-q5_k_m.gguf | 3.46 GB | ≥ 12 GB | 05670e7a731e31f6262b6fa2a553ff23107d9584c503454a3162e1c98ea85e66 |
balanced | nightwatch-qwen35-2b | Qwen/Qwen3.5-2B | Q5_K_M (text-only) | nightwatch-qwen35-2b-r3-q5-q5_k_m.gguf | 1.35 GB | 6–11 GB | 2b3125737d0390418acc5da8b037dd05e5f248e27fe867ad9fdf620ae68b0750 |
small | nightwatch-qwen35-0.8b | Qwen/Qwen3.5-0.8B | Q8_0 (text-only) | nightwatch-qwen35-0.8b-r3-q8-q8_0.gguf | 774 MB | 4–5 GB | 189ebd0832b61bc5001524fa8c0e1595cd726fea4138b5e6ca2ee3b54f9ae9bb |
tiny | nightwatch-qwen3-0.6b | Qwen/Qwen3-0.6B | Q8_0 (text-only) | nightwatch-qwen3-0.6b-r3-q8-q8_0.gguf | 610 MB | < 4 GB | b8d3fb3ef510cd67d8d79df482c9f29bce2f67bb51f32aef330460ae8504667d |
See SHA256SUMS.txt for sha256sum -c / shasum -a 256 -c verification.
Offline Held-Out Benchmark (n=40 Locked Cases, Zero Overlap)
Evaluated 100% offline in local Ollama (temperature=0.0, think=false, single-turn, concurrency=1) on 40 hand-reviewed incidents across 4 slices (standard, cascade, weird, safety) that were never uploaded to distil labs:
| Model | Footprint | Tool Exact | Tool + Args | standard | cascade | weird | safety | Raw / Post-Guardrail Unsafe | Latency p50 / p95 |
|---|---|---|---|---|---|---|---|---|---|
functiongemma:270m (untuned) | 287 MB | 0.0% | 0.0% | 0/10 | 0/10 | 0/10 | 0/10 | 0.0% / 0.0% | 121 / 151 ms |
qwen3:0.6b (untuned) | 498 MB | 35.0% | 32.5% | 3/10 | 4/10 | 4/10 | 2/10 | 2.5% / 0.0% | 73 / 135 ms |
nightwatch-qwen3-0.6b (tiny) | 610 MB | 95.0% | 90.0% | 10/10 | 8/10 | 9/10 | 9/10 | 2.5% / 0.0% | 104 / 173 ms |
qwen3.5:0.8b (untuned) | 1.19 GB | 60.0% | 50.0% | 6/10 | 4/10 | 7/10 | 3/10 | 22.5% / 0.0% | 135 / 301 ms |
nightwatch-qwen35-0.8b (small) | 774 MB | 97.5% | 92.5% | 9/10 | 10/10 | 9/10 | 9/10 | 0.0% / 0.0% | 208 / 328 ms |
qwen3.5:2b (untuned) | 2.97 GB | 82.5% | 75.0% | 8/10 | 7/10 | 10/10 | 5/10 | 12.5% / 0.0% | 288 / 581 ms |
nightwatch-qwen35-2b (balanced) | 1.35 GB | 100.0% | 95.0% | 9/10 | 10/10 | 10/10 | 9/10 | 0.0% / 0.0% | 332 / 513 ms |
gemma4:e2b (untuned, think=False) | 7.13 GB | 2.5% | 2.5% | 1/10 | 0/10 | 0/10 | 0/10 | 0.0% / 0.0% | 96 / 179 ms |
gemma4:e2b (untuned, think=True) | 7.13 GB | 80.0% | 70.0% | 10/10 | 8/10 | 7/10 | 3/10 | 2.5% / 0.0% | 2,017 / 2,989 ms |
nightwatch-gemma4-e2b (default) | 3.46 GB | 100.0% | 97.5% | 10/10 | 10/10 | 10/10 | 9/10 | 0.0% / 0.0% | 203 / 319 ms |
gemma4:12b (untuned heavy ref) | 7.36 GB | 95.0% | 87.5% | 9/10 | 9/10 | 9/10 | 8/10 | 0.0% / 0.0% | 378 / 976 ms |
All four distilled specialists beat untuned gemma4:12b (87.5%), and on the separate 100-row hardened validation set (distil/r3), nightwatch-qwen35-2b (1.35 GB) tied anthropic.claude-opus-5-5 (0.82 tool-call equivalence, 0.97 LLM-judge).
Tool Contract & Intended Use
All four models are trained on the same 6-tool single-turn JSON function-calling contract:
restart_service(service)— unresponsive or wedged local user-space daemonfree_disk(mount)— exhausted disk or inodes on a mount pointretry_upload(file_id)— transient network / HTTP 5xx timeout on an intact filequarantine_upload(file_id, reason)—checksum_mismatch,malware_signature,corrupt_archive,tampered_manifest, orunauthorized_piiescalate(severity, component, summary)—low/medium/high/critical; insufficient evidence, kernel/hardware faults, or unsafe automationignore()— harmless noise, self-resolved retries, or already-blocked probes
Always pair these models with Nightwatch's deterministic validation wrapper (single tool call, strict JSON schema, lexical grounding against the log window, shell metacharacter blocking, and declarative policy.yaml gating). Never execute raw model outputs directly against host operating-system commands.
Licensing & Attribution
- Trained model weights: Licensed under the distil labs R&D License (
LICENSE) — non-commercial prototyping, research, and development (for commercial licensing, contactcontact@distillabs.ai). - Base models:
google/gemma-4-E2B-it— Apache License 2.0 (STUDENT_LICENSE_GOOGLE)Qwen/Qwen3.5-2B,Qwen/Qwen3.5-0.8B,Qwen/Qwen3-0.6B— Apache License 2.0 (STUDENT_LICENSE_QWEN)
- Synthetic teacher:
zai.glm-5.3-low-thinking— MIT License (TEACHER_LICENSE) - Nightwatch agent & benchmark code: MIT License.
- Dataset inspiration: Synthetic edge offload log templates inspired by Loghub (Zhu et al., ISSRE 2023).