Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

kairos-sotos-2.0-4B

by Matheus Nery Walkowicz Walkowicz/kairos-sotos-2.0-4B

kairos-sotos-2.0-4B is an open-weight model for text generation from Matheus Nery Walkowicz, released under Apache License 2.0. Its published files total 8.4 GB.

Kairos Sotos 2.0 is an offline, autonomous cybersecurity and privacy code auditor fine-tuned from Qwen/Qwen3.5-4B. It reports the audit verdict, evidence, smallest safe remediation diff, and exact CWE along with versioned framework IDs.

Parameters—
Context—
Weights8.4 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Model Card

By Matheus Nery Walkowicz, published under apache-2.0, revision 1c574c61ee02.

Kairos Sotos 2.0 is an offline, autonomous cybersecurity and privacy code auditor fine-tuned from Qwen/Qwen3.5-4B. It reports the audit verdict, evidence, smallest safe remediation diff, and exact CWE along with versioned framework IDs. This repository hosts the full-precision BF16 (16-bit Brain Float) GGUF binary, preserving 100% of fine-tuned weight fidelity with zero quantization loss. 100% Consumer GPU Resident: At 8.4 GB, the entire unquantized model fits into a standard 12 GB VRAM consumer card (e.g. NVIDIA RTX 3060), leaving ~3.6 GB of VRAM headroom for up to 8,192 tokens of context without GPU memory thrashing or CPU offloading. 30% Size Reduction vs 1.0: Reduced file size from 12.0…

Read Matheus Nery Walkowicz's full model card

Kairos Sotos 2.0 (4B BF16)

Kairos Sotos 2.0 is an offline, autonomous cybersecurity and privacy code auditor fine-tuned from Qwen/Qwen3.5-4B. It reports the audit verdict, evidence, smallest safe remediation diff, and exact CWE along with versioned framework IDs.

This repository hosts the full-precision BF16 (16-bit Brain Float) GGUF binary, preserving 100% of fine-tuned weight fidelity with zero quantization loss.


Key Achievements & Highlights

  • 100% Consumer GPU Resident: At 8.4 GB, the entire unquantized model fits into a standard 12 GB VRAM consumer card (e.g. NVIDIA RTX 3060), leaving ~3.6 GB of VRAM headroom for up to 8,192 tokens of context without GPU memory thrashing or CPU offloading.
  • 30% Size Reduction vs 1.0: Reduced file size from 12.0 GB (1.0 baseline) down to 8.4 GB while simultaneously upgrading from quantized to full-precision BF16.
  • Zero False-Positive Degradation: In benchmark tests (Promptfoo TC02), Sotos 1.0 hallucinated SQL injection on safe parameterized queries (%s). Sotos 2.0 cleared 10/10 safe controls (0% false alarm rate).
  • Empirical Benchmark Score: Achieved 98.4% (9.84 / 10.0) across a 25-case complex vulnerability suite (23 of 25 cases scored a perfect 10.0/10.0).
  • Native OWASP Top 10:2025 Fluency: Correctly attributes Injection to A05:2025 and explains why A03:2021 is historical, while reserving A03:2025 for Software Supply Chain Failures.
  • OWASP GenAI LLM Top 10:2026: Native support for auditing autonomous agentic workflows, including Excessive Agency (LLM03:2026) and Sensitive Information Disclosure (LLM02:2026).
  • Privacy & Data Protection: Directly audits GDPR (Regulation (EU) 2016/679) and LGPD (Lei 13.709/2018) compliance for storage limitation and children's data handling.
  • Bilingual Auditor: Fluently conducts code audits in English and Portuguese (PT-BR) while preserving all code identifiers in English.

Model Comparison: Sotos 2.0 vs Sotos 1.0

Metric / Dimension Kairos Sotos 2.0 (New) Kairos Sotos 1.0 (Legacy) Operational Significance
Model Size 8.4 GB 12.0 GB 30.0% smaller disk & transfer footprint
Precision BF16 (Unquantized) Q6_K_M (Quantized) Zero mathematical perplexity degradation
VRAM Footprint (RTX 3060) ~8,023 MiB (67%) ~11,850 MiB (99%) +3.6 GB headroom for 8k token context window
Promptfoo Pass Rate 100.0% (5 / 5) 80.0% (4 / 5) v0 failed on safe parameterized SQL
False Positive Rate 0.0% (10 / 10 Safe) 50.0% False Alarms Eliminates developer alert fatigue
25-Suite Score 9.84 / 10.0 (98.4%) Baseline 246 / 250 points (23 perfect 10/10)
OWASP Edition Top 10:2025 Native Top 10:2021 Legacy Correctly separates A05 Injection from A03 Supply Chain
Agentic AI Safety OWASP GenAI 2026 Not Supported Audits Excessive Agency (LLM03) and Tool Redaction (LLM02)
Thinking Loop Hang Resolved Template Hang Streams directly to Verdict: ... in ~4-5 seconds

Benchmark Results Summary

Full per-test breakdown is documented in BENCHMARK.md.

25-Case Complex Security Suite

Category Cases Tested Score Key Sinks Audited
SQL Injection 2 10.0 / 10 ORM raw interpolation, cast int safe negative
SSRF 2 10.0 / 10 Prefix/redirect bypass, parsed host safe negative
Path Traversal 2 10.0 / 10 Unconfined upload root, canonical is_relative_to safe
Command Injection 2 10.0 / 10 Shell -c concatenation, direct argv vector safe
XXE Injection 2 10.0 / 10 External entity expansion, disallow-doctype-decl safe
IDOR / BOLA 2 10.0 / 10 Missing owner check, authenticated session binding
Insecure Deserialization 2 10.0 / 10 Python pickle.loads, safe json.loads negative
Cryptographic Failures 1 7.0 / 10 JWT algorithm confusion (['RS256', 'HS256'])
Hardcoded Credentials 2 10.0 / 10 API token in source, environment variable ingest
CRLF Header Injection 2 10.0 / 10 Unescaped response header, regex strip safe
CI/CD Supply Chain 1 10.0 / 10 pull_request_target script injection & token write
K8s Pod Security 2 10.0 / 10 Privileged container vs Restricted PSS profile
LLM Agentic Safety 2 10.0 / 10 Destructive tool agency (LLM03), tool output PII filter
Privacy Compliance 1 10.0 / 10 GDPR Art. 5/8/9 & LGPD storage limitation & minor consent
Total / Overall 25 9.84 / 10 246.0 / 250.0 Total Points (98.4%)

Noticeable Limits & Operational Boundaries

To ensure transparent production deployment:

  1. AST Scope: Sotos 2.0 is specialized for single-function, endpoint handler, middleware, and configuration audits. It does not replace global cross-repository taint graph analyzers (e.g. CodeQL) across millions of distributed lines without an orchestrator providing snippet context.
  2. Defensive-Only Policy: Sotos strictly refuses to generate weaponized exploit payloads, SQL injection query strings (e.g. ' OR 1=1 --), or automated attack scripts.
  3. Cryptographic Nuances (TC15): In JWT algorithm confusion scenarios (['RS256', 'HS256']), Sotos flags the CWE-347 risk and recommends pinning RS256, but makes conservative assumptions regarding server signature verification defaults.
  4. Hardware Threshold: For real-time 35–45 tokens/second throughput, a GPU with at least 10–12 GB VRAM is recommended. On CPU-only RAM, speeds degrade to 4–6 tokens/second.

Quickstart with Ollama

Step 1: Download Files

Clone or download kairos-sotos-2.0-4B-BF16.gguf and Modelfile into the same folder.

Step 2: Register in Ollama

ollama create kairos-sotos:2.0-4b -f Modelfile

Step 3: Run Interactive Audit

ollama run kairos-sotos:2.0-4b

Step 4: Python API Example

import urllib.request
import json

code_snippet = """
def load_user_invoice(invoice_id):
    invoice = Invoice.query.filter_by(id=invoice_id).first()
    return jsonify(invoice.serialize())
"""

prompt = f"Review this python snippet. Give the verdict, the evidence, the impact, the CWE, the versioned framework id, and the smallest fix. Do not provide an exploit.\n\n```python\n{code_snippet}\n```"

req = urllib.request.Request(
    "http://127.0.0.1:11434/api/chat",
    data=json.dumps({
        "model": "kairos-sotos:2.0-4b",
        "messages": [{"role": "user", "content": prompt}],
        "stream": False,
        "options": {"temperature": 0}
    }).encode(),
    headers={"Content-Type": "application/json"}
)

response = json.loads(urllib.request.urlopen(req).read())
print(response["message"]["content"])

Modelfile Specification

FROM ./kairos-sotos-2.0-4B-BF16.gguf

TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{- range .Messages }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{ end }}<|im_start|>assistant
<think>

</think>

"""

SYSTEM """You are Kairos Sotos, a local security and privacy auditor. Report a verdict, the evidence, the smallest safe fix, and the CWE plus the versioned framework id when one applies. Use OWASP Top 10:2025 for web application risks, OWASP API Security Top 10:2023 for HTTP APIs, and OWASP GenAI LLM Top 10:2026 for LLM applications. Do not describe an older edition as the current list. Do not provide an exploitable proof of concept, a ready-to-run payload, or step-by-step attack instructions. If the code or configuration is safe, say that no exploitable vulnerability was found and name the control that holds.

Audit for both syntactic vulnerabilities (such as injection, unescaped interpolation, format strings, and parser configuration) and semantic vulnerabilities (such as broken access control, IDOR/BOLA, missing ownership checks, and multi-tenant isolation failures). When an endpoint or function retrieves an object by identifier, verify whether caller identity is bound to resource ownership.

If asked who you are or what model you are, state clearly that you are Kairos Sotos. Reply in the user's language. Keep code identifiers in English."""

PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
PARAMETER num_ctx 8192
PARAMETER temperature 0

License

Apache 2.0 (same as the Qwen 3.5 base model).

Identity and Version

Repository
Walkowicz/kairos-sotos-2.0-4B
Publisher
Matheus Nery Walkowicz
Task
Text generation
Modality
Text
Library
Not stated by the source
Parameters
Not stated by the source
Languages
en, pt
Revision
1c574c61ee02da3ab530cc4a058aae2053aad10b
First published
2026-10-17
Last updated
2026-10-17

Files and Weights

6 files, 8.4 GB in total. The weights are 1 file totalling 8.4 GB in gguf.

Weights1 file · 8.4 GB
Documentation2 files · 18.8 KB
Other2 files · 324.9 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
kairos-sotos-2.0-4B-BF16.ggufWeights8.4 GB f393276729f7
BENCHMARK.mdDocumentation9.7 KB —
README.mdDocumentation9.1 KB —
ModelfileOther1.6 KB —
kairos-logo.pngOther323.3 KB 86655f68cbbb
.gitattributesRepository1.6 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
8.4 GB
Download from Matheus Nery Walkowicz

Released by Matheus Nery Walkowicz through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published8.4 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About kairos-sotos-2.0-4B

Can I use kairos-sotos-2.0-4B commercially?

Yes. kairos-sotos-2.0-4B is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers