Instructions to use jonprompter/LokalSOC-DE-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use jonprompter/LokalSOC-DE-4B with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download jonprompter/LokalSOC-DE-4B --local-dir LokalSOC-DE-4B
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jonprompter/LokalSOC-DE-4B 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 jonprompter/LokalSOC-DE-4B:Q8_0 # Run inference directly in the terminal: llama cli -hf jonprompter/LokalSOC-DE-4B:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jonprompter/LokalSOC-DE-4B:Q8_0 # Run inference directly in the terminal: llama cli -hf jonprompter/LokalSOC-DE-4B:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf jonprompter/LokalSOC-DE-4B:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf jonprompter/LokalSOC-DE-4B:Q8_0
Use Docker
docker model run hf.co/jonprompter/LokalSOC-DE-4B:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use jonprompter/LokalSOC-DE-4B with Ollama:
ollama run hf.co/jonprompter/LokalSOC-DE-4B:Q8_0
- Unsloth Desktop
- Pi
How to use jonprompter/LokalSOC-DE-4B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "jonprompter/LokalSOC-DE-4B"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jonprompter/LokalSOC-DE-4B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use jonprompter/LokalSOC-DE-4B with Docker Model Runner:
docker model run hf.co/jonprompter/LokalSOC-DE-4B:Q8_0
- Lemonade
How to use jonprompter/LokalSOC-DE-4B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jonprompter/LokalSOC-DE-4B:Q8_0
Run and chat with the model
lemonade run user.LokalSOC-DE-4B-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use jonprompter/LokalSOC-DE-4B with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "jonprompter/LokalSOC-DE-4B"
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 jonprompter/LokalSOC-DE-4B
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use jonprompter/LokalSOC-DE-4B with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "jonprompter/LokalSOC-DE-4B"
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 "jonprompter/LokalSOC-DE-4B" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Model Card: LokalSOC-DE-4B (
v0.3-multisensor-releaseโQwen3-4B-Instruct-2507)
Model Card: LokalSOC-DE-4B (v0.3-multisensor-release โ Qwen3-4B-Instruct-2507)
Release Status (
v0.3-multisensor-release): Multi-sensor open-weight German cybersecurity alert-triage model (Apache-2.0), trained on leak-free, commercially licensed AIT-ADS (CC-BY-4.0, Wazuh), SOC-MLD v1.0 (CC-BY-4.0, Suricata/Nginx), and parent-technique-disjoint Splunk Attack Data (Apache-2.0, Windows Sysmon). Verified 5/5 across MLX, BF16 Safetensors (vLLM/HF), and Ollama (Q8_0GGUF,4.28 GB), and passing 5/5 acceptance gates on Frozen Gold v1 (n=219) + Hard Adversarial v3 (n=50). Human-in-the-loop only โ not production-certified; Gold labels are deterministic two-pass evidence reviews (not human-expert-verified) and autonomous alert closure remains disabled.Links: GitHub Repository ยท Technical Report v3 ยท Data Card v3 ยท Wazuh Integration Guide ยท Ollama Registry (
jonprompter/lokalsoc-de)
1. Quickstart (Ollama ยท MLX ยท vLLM ยท Wazuh)
Run Locally with Ollama (Linux / Windows / macOS โ ~5 GB RAM/VRAM)
# Pull directly from Ollama Registry (or run directly from Hugging Face GGUF)
ollama pull jonprompter/lokalsoc-de:4b-v3
# Alternative: ollama run hf.co/jonprompter/LokalSOC-DE-4B
# Start the LokalSOC-DE FastAPI safety controller + German SOC cockpit
git clone https://github.com/myaxyo/lokalsoc-de.git && cd lokalsoc-de
export LOKALSOC_VLLM_URL="http://127.0.0.1:11434/v1"
export LOKALSOC_MODEL_ID="jonprompter/lokalsoc-de:4b-v3"
export LOKALSOC_API_KEY="$(openssl rand -hex 24)"
export LOKALSOC_PSEUDO_SECRET="$(openssl rand -hex 32)"
export LOKALSOC_AUDIT_HMAC_KEY="$(openssl rand -hex 32)"
uvicorn lokalsoc.api:app --host 127.0.0.1 --port 8080
Drop-In Read-Only Wazuh Manager Integration
See integrations/wazuh/README.md (custom-lokalsoc.py + ossec.conf.example) for read-only Tier-1 enrichment with automatic ยง 32 BSIG (24h/72h/30d) human-review drafts and DFIR-IRIS / TheHive case payloads.
2. Verified Cross-Platform Artifacts & SHA-256 Checksums
| Artifact | Runtime | Size | Fresh-Process 5-Case Gate | SHA-256 |
|---|---|---|---|---|
MLX LoRA Adapter (adapters.safetensors, Rank 32) |
Apple Silicon (mlx-lm) |
112.02 MB |
5 / 5 PASSED | 18e9068391b47ad68d95e97ce612a90d308fe89efab3715c26f180781b1bcb00 |
BF16 Fused Safetensors (model-0000{1,2}-of-00002.safetensors) |
vLLM / Transformers | 8.05 GB |
5 / 5 PASSED | 888c26d2... / 702ad00a... (full hashes in export_report.json) |
Standalone Q8_0 GGUF (lokalsoc-de-4b-v3-q8_0.gguf) |
Ollama (lokalsoc-de:4b-v3) / llama.cpp |
4.28 GB |
5 / 5 PASSED | 228ef4dd342cf24b4b83f32937d9950981728ed594cbe1ed21225fc50ebf66ed |
Calibrated Controller (configs/controller_calibrated_v3.json) |
Deterministic safety layer | โ | Fitted on 143 valid bundles only (T=3.0, min_close=0.5) |
val_loss: 2.299 โ 0.0298 (0 NaN/Inf) |
Why
Q8_0instead ofQ4_K_M? Empirically, double-4-bit re-quantization (4-bit MLXโBF16โQ4_K_MGGUF) degraded Qwen3 special-token logits (<|im_end|>/</tool_call>), whereas directQ8_0GGUF (4.28 GB) preserved exact parity and passed5/5in live Ollama HTTP API.
3. Intended Use, Safety Boundaries & German Regulatory Alignment
- Core Tasks: Multi-sensor telemetry correlation (Wazuh, Sysmon, Suricata, Nginx, Zeek, Defender), 3-way verdict (
ESCALATE,INVESTIGATE,CLOSE), grounded event-ID citations (0%hallucination), official 867-technique MITRE ATT&CKยฎ Enterprise mapping, constrained read-only SIEM query templates (8whitelisted templates; empty results explicitly labeled"no data returned โ not evidence of benign"), German analyst summaries (Verifizierte Beobachtung / Hypothese / Fehlende Evidenz), and advisory ยง 32 BSIG / Art. 33 DSGVO + DFIR-IRIS human-review drafts. - Hard Prohibitions:
- Zero Autonomous Production Actions: No endpoint isolation, firewall edits, account disabling, or autonomous alert closure.
- No Employee Productivity/Behavioral Scoring: Enforced in code (
PrivacyFilter) per BDSG ยง 26 and BetrVG ยง 87 Abs. 1 Nr. 6; HMAC pseudonymization fails closed in production. - Advisory Only: Never marketed as automated NIS2 compliance; mandatory human CISO/DSB sign-off required.
4. Measured Evaluation Results (v0.3 vs v0.2 & Baselines)
Evaluated on Frozen Gold v1 (n=219: 147 held-out AIT-ADS + 72 unseen parent-technique Splunk Sysmon), Adversarial v2 (n=30), and Hard Adversarial v3 (n=50, 10 obfuscated prompt-injection classes: Cyrillic/Greek homoglyphs, zero-width/bidi, Base64, Qwen special tokens, multi-event split stagers, CISO spoofing). Full reports: gold_benchmark_qwen3_v3.json & adversarial_v3_hard_benchmark.json.
| Metric | Gate | A. Rules-Only | B. Untuned (minimal) | D. Untuned (identical scaffold) | C (v2 Wazuh-only) | C (v3 Multi-Sensor + Controller) |
|---|---|---|---|---|---|---|
| Strict Schema JSON Validity | $\ge 99%$ | 100.0% |
20.1% |
8.2% |
100.0% |
100.0% (219/219) โ
|
False CLOSE on Malicious (n=20) |
$\le 2%$ | 20.0% |
25.0% |
0.0% (92% fallback) |
0.0% |
0.0% (0/20) โ
|
ESCALATE Recall |
โ | 0.0% |
0.0% |
0.0% |
40.0% |
85.0% (17/20; 84.2% unseen Splunk) |
| NPV at 1% / 5% Prevalence | โ | 99.5% / 97.4% |
98.7% / 93.6% |
100% / 100% |
100.0% / 100.0% |
100.0% / 100.0% |
| Closure Coverage | โ | 37.4% |
19.6% |
8.2% |
13.7% |
15.1% (33/219) |
| MITRE ATT&CKยฎ Micro-F1 | โ | 0.3486 |
0.2632 |
0.0000 |
0.1463 |
0.2571 (0.400 unseen Splunk) |
| Hallucinated Event-ID Rate | $< 0.1%$ | 0.0% |
0.0% |
0.0% |
0.0% |
0.0% โ
|
| Unauthorized Actions | 0 |
0 |
0 |
0 |
0 |
0 โ
|
Hard Adversarial v3 Unsafe CLOSE (n=50) |
$< 2%$ | 30.0% |
10.0% |
0.0% (0% JSON) |
โ | 0.0% (0/50, 100% JSON) โ
|
Adversarial v2 Unsafe CLOSE (injected n=29) |
$< 2%$ | 56.7% (30) |
30.0% (30) |
3.3% (30) |
10.0% (3/30) |
0.0% (0/29; 1/30 = un-injected ADV2-015) |
| German Summary Score (1โ5, provisional) | โ | 2.55 |
3.18 |
3.25 |
3.89 |
3.82 [3.64, 3.99] (Fact 3.74, Term 3.62, Sep 3.87) |
5. Known Limitations & Ethical Disclosures
- RecallโPrecision Trade-Off on Ambiguous Sysmon Cases: v3 substantially raised
ESCALATE_recall(40.0% โ 85.0%) and zero-shot Splunk MITRE mapping (0.400), while shifting some ambiguous SysmonINVESTIGATEcases toESCALATE(ESCALATE_precision42.1% โ 20.7%,macro_F10.746 โ 0.641) with zero false closures (0.0%falseCLOSEon malicious). Tenant-specific threshold calibration is advised before operational pilot use. - Non-Human Label Provenance: Training/validation uses
RULE_VALIDATED_LABsilver labels, Gold v1 uses deterministic two-pass evidence review, and German summary scores are model-graded (Qwen3-4B, possible self-family bias). Independent human SOC analyst evaluation is still needed for production sign-off. - CUDA / Live Cluster Verification: Live training and benchmarking ran on Apple Silicon (
MLX+Ollama+llama.cpp). CUDA PEFT (scripts/train_qlora_trl.py) and livedocker compose upwith vLLM/OpenSearch remain unexecuted on an NVIDIA GPU host.
- Downloads last month
- -
Quantized