abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

Primitive3/obsidian-cyber-sft-dpo

published by @Primitive3

Uncensored SFT corpora, the Dolphin / Wizard tradition.Examples with refusals taken out, like Dolphin and Wizard.

task_categories:text-generationlanguage:enlanguage:eslicense:cc-by-nc-sa-4.0size_categories:100K<n<1Mformat:jsonmodality:textlibrary:datasets +15 more
Lifetime downloads
266
Last 30 days
266
Likes
2
Size
620.9 MB

Description

Obsidian Cyber SFT + DPO

A two-stage fine-tuning mix for a 27B generalist assistant specialized in cybersecurity and red teaming, with coding and general reasoning kept in. Stage 1 is supervised fine-tuning with long reasoning traces; stage 2 is DPO focused on secure code and on not inventing tools, flags or APIs.

Built for Obsidian-27B-Max on top of orcarouter/Qwen3.8-27B-Uncensored. Reasoning is in English; prompts and answers in English and Spanish.

Rows

Notes

SFT… See the full description on the dataset page: https://huggingface.co/datasets/Primitive3/obsidian-cyber-sft-dpo.

Structure 2 configs · from the README front matter2 subsets, from the author's description

sft
Data files
train sft_stage1_train.jsonl
validation sft_stage1_eval.jsonl
dpo
Data files
train dpo_stage2.jsonl

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
cc-by-nc-sa-4.0
Languages
enes
Created on HFCreated
2026-11-22 · 14 days ago
Size category
100K<n<1M
ModalitiesData types
text
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Fine-tunesame step · Training further

Read further

Total size
620.9 MB
Files
7
Formats
jsonl, json
Head
ec7a353
Last updated on HFLast updated
2026-11-26

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("Primitive3/obsidian-cyber-sft-dpo")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Primitive3/obsidian-cyber-sft-dpo", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/Primitive3/obsidian-cyber-sft-dpo

Files by folder from our last crawlfrom our last check

top level 7 files 620.9 MB
.gitattributes 2.7 KB file download
build_report_v3.json 643 B json download
build_report.json 839 B json download
dpo_stage2.jsonl 21.5 MB jsonl download
README.md 14.8 KB md download
sft_stage1_eval.jsonl 31.1 MB jsonl download
sft_stage1_train.jsonl 568.3 MB jsonl download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Obsidian Cyber SFT + DPO

A two-stage fine-tuning mix for a 27B generalist assistant specialized in cybersecurity and red teaming, with coding and general reasoning kept in. Stage 1 is supervised fine-tuning with long reasoning traces; stage 2 is DPO focused on secure code and on not inventing tools, flags or APIs.

Built for Obsidian-27B-Max on top of orcarouter/Qwen3.8-27B-Uncensored. Reasoning is in English; prompts and answers in English and Spanish.

Rows Notes
SFT train 105,621 ~162M tokens, 15 sources
SFT validation 6,828 no prompt overlap with train
DPO 8,327 pairs 4 sources, weighted toward domain and on-policy pairs

What's inside

Domain SFT rows Share
Cybersecurity: offensive techniques, exploit and PoC analysis, vulnerability detection and fixing, bug-bounty triage, anti-hallucination for security tools, multi-turn engagements 55,899 53%
General: chat, instruction following, math and science reasoning, Spanish 47,103 45%
Frontend code: React, shadcn/ui, Tailwind 2,619 2%

⭐ If this dataset is useful to you, please give it a like. It helps others find it and keeps this work going. Feedback, issues and results from your own fine-tunes are welcome in the Community tab.

While Obsidian-27B-Max is in training, the model used for all testing, evaluation and the on-policy halluc_api generation is orcarouter/OrcaSAQ-2-Cyber-27B-Uncensored-GGUF. It is a SAQ quantization of the same base, it runs on a single RTX 3090 with llama.cpp, and it is a good starting point for learning and for lab work with this dataset.

Quick start

from datasets import load_dataset

sft = load_dataset("Primitive3/obsidian-cyber-sft-dpo", "sft")
dpo = load_dataset("Primitive3/obsidian-cyber-sft-dpo", "dpo", split="train")

# keep only rows that fit your context instead of truncating them
sft_8k = sft["train"].filter(lambda r: r["metadata"]["approx_tokens"] <= 8192)

# pick slices by upstream source
cyber = sft["train"].filter(lambda r: r["metadata"]["mix_source"] in {"offseccyber", "exploitdb_poc", "halluc_api"})

Format

SFT: OpenAI-style messages. The assistant's reasoning is in reasoning_content (the field the Qwen3.8 chat template reads) and content holds only the final answer.

{
  "messages": [
    {"role": "user", "content": "..."},
    {"role": "assistant", "reasoning_content": "...", "content": "..."}
  ],
  "metadata": {"mix_source": "offseccyber", "approx_tokens": 1834}
}

DPO: {"system", "prompt", "chosen", "rejected", "metadata"}.

Filter by metadata.approx_tokens rather than truncating, because truncation cuts off the final answer. Share of rows that fit at each length: 4k 91.1%, 8k 98.0%, 12k 99.6%, 16k 100%.

Anti-hallucination slice (halluc_api)

The most common failure of the base model in security work is confidently describing things that do not exist: an nmap flag, a Metasploit module, an NSE script, an Impacket tool, a hashcat mode, a syscall or a Python/Node API. On the baseline probe it hallucinated on 59% of questions about fake items. For red teaming, an invented flag wastes time at best and gives a wrong conclusion at worst.

Catalog: 1,150 questions with ground truth verified by introspection against the installed software (Kali tooling, Python and Node runtimes), disjoint from the evaluation probes.

Category Items Category Items
Python stdlib and libraries 320 hashcat modes 90
CLI flags (nmap, john, msfvenom, ...) 202 Linux syscalls 70
NSE scripts 140 curated AD / post-ex tools 59
Metasploit modules 140 Impacket scripts 35
Node.js APIs 94

692 items ask about something that does not exist and 458 about real things, so the model learns to deny fakes without learning to deny everything.

Generation (on-policy): the model answers on its own and is graded by the same model, without thinking, against the verified truth.

  • Correct: kept as SFT as is.
  • Hallucinated: regenerated with the truth as hidden context. If the new answer passes the grader, it becomes an SFT row and the chosen of a DPO pair whose rejected is the original hallucination.
  • Reasoning that mentions the hidden context, or that was cut off by the reasoning budget, is rewritten as reasoning from the model's own knowledge. Training on it would teach the model to cite notes it never has. metadata.origin records own, own_rewritten or grounded.

Results: before correction the model hallucinated on 582 of 692 fake items (84%) and 108 of 458 real ones (24%). That gives 1,073 SFT rows (1,067 after the v3 tool check), upweighted ×4 in train via metadata.dup, plus 56 in validation and 676 DPO pairs. 21 items were discarded rather than kept unverified: 10 still failed the grader after grounded regeneration, and 11 produced no final answer within the token budget.

Example pair:

Prompt: Is hashlib.file_digest_safe safe to use with untrusted input? Explain how it works.

Rejected (base model): "hashlib.file_digest_safe() is safer than hashlib.file_digest() for untrusted file names… It uses O_NOFOLLOW so the final path component is not allowed to be a symbolic link…"

Chosen: "hashlib.file_digest_safe does not exist in Python's standard-library hashlib module. The closest real helper is hashlib.file_digest(fileobj, digest)…"

Sources

SFT (metadata.mix_source)

mix_source Rows Upstream License
smoltalk 23,728 HuggingFaceTB/smoltalk (apigen subset excluded) Apache-2.0
offseccyber 17,050 PentesterFlow/OffsecCyber Apache-2.0
mixture_of_thoughts 13,639 open-r1/Mixture-of-Thoughts not stated on card
exploitdb_poc 11,863 jason-oneal/mitre-stix-cve-exploitdb-dataset-alpaca-chatml-harmony, real Exploit-DB PoCs reformatted as code analysis Apache-2.0 (PoCs from Exploit-DB)
discovery_bigvul 11,508 ayshajavd/code-security-vulnerability-dataset (BigVul) Apache-2.0
alpaca_gpt4_es 9,500 FreedomIntelligence/alpaca-gpt4-spanish not stated on card (GPT-4 outputs)
openvul 5,904 Leopo1d/OpenVul collection Apache-2.0
halluc_api 4,268 Original, see above (1,067 unique, upweighted ×4 in train) CC-BY-NC-SA-4.0
triage_h1 2,133 Hacker0x01/hackerone_disclosed_reports not stated on card
cvefixes 2,105 hitoshura25/cvefixes Apache-2.0
shadcn 1,861 valentin-marquez/react-shadcn-codex MIT
securecode_web 980 scthornton/securecode-web CC-BY-NC-SA-4.0
uigen 758 smirki/UIGEN-T1.1-TAILWIND Apache-2.0
qwen4max 236 AJ-Gonzalez/qwen4-max-reasoning-250x other (model distillation)
redteam_agentic 88 Original, hand-authored multi-turn engagements (upweighted ×4 in train) CC-BY-NC-SA-4.0

DPO

mix_source Pairs Upstream License
cybernative_dpo 4,551 CyberNative/Code_Vulnerability_Security_DPO Apache-2.0
ultrafeedback 3,000 argilla/ultrafeedback-binarized-preferences-cleaned (length-rebalanced, then capped) MIT
halluc_api 676 Original, see above CC-BY-NC-SA-4.0
redteam_agentic 100 Original CC-BY-NC-SA-4.0

Processing

  • Inline <think> blocks moved to reasoning_content (23,839 rows). The chat template always emits its own think block, so inline tags produced two.

  • Dropped broken rows: conversations ending on user, malformed or duplicated <think>, structured tool_calls. The base model's native tool calling is left untouched.

  • Exact dedup in train, validation and DPO. Upweight copies are kept because they carry a distinct metadata.dup.

  • Removed 133 validation rows whose conversation or first prompt appears in train.

  • Dropped rows over ~16,384 estimated tokens (mostly OpenVul and SecureCode).

  • UltraFeedback: the share of pairs where chosen is longer was cut from 65.6% to 55% to reduce length bias, then the set was capped at 3,000 random pairs. Its answers come from 2023-era models and many chosen responses are weaker than what a current 27B already writes, so DPO leans on domain and on-policy pairs instead.

  • v3: every assistant answer is checked against the Kali ground truth (Metasploit modules, NSE scripts, hashcat modes, Impacket scripts, nmap scan types). 6 halluc_api items whose answers named a non-existent tool in passing were removed with all their copies.

  • v3: offseccyber cleaned: 962 rows that were raw PDF fragments instead of answers, 3,975 NVD rows that only recite affected-version lists or reference URLs (they teach the model to produce such lists and links from memory), and 11 qwen_cve rows whose CWE or CVSS contradicts the official NVD record. The remaining qwen_cve answers agree with NVD on CWE in 99.8% of checked rows.

  • v3: fable_stripped removed: as a distilled slice it carried another model's identity.

  • v3: reasoning backfilled for redteam_agentic and part of offseccyber: the model writes the reasoning that leads to the existing reference answer, which is left unchanged (metadata.reasoning_origin: "backfill"). Reasoning that refers to the given answer or names non-existent tools is rejected.

Per-step counts are in build_report.json (v2) and build_report_v3.json (v3).

Training and hardware

  • Base: orcarouter/Qwen3.8-27B-Uncensored, full bf16 weights (qwen3_5, gated).
  • Recipe: LoRA in bf16 on the full weights, SFT then DPO, merged and quantized to GGUF.
  • Target: GGUF Q4_K_M on a single RTX 3090 (24 GB) with llama.cpp at 131k context. The baseline evals and the halluc_api slice were generated on that same setup.

Limitations

  • The grader for halluc_api is the model itself, checked against verified ground truth. It can still misjudge borderline answers.
  • Ground truth reflects the tool versions installed on Kali at build time. Newer releases may add or remove flags and modules.
  • Several upstream slices are distilled from other models and inherit their mistakes and style.
  • exploitdb_poc and openvul contain real exploit code quoted for analysis. See the next section.

About the "unsafe" flag

Hugging Face's automatic ClamAV scan flags sft_stage1_train.jsonl and sft_stage1_eval.jsonl as unsafe (3 signature matches each). This is expected for a security dataset: some rows contain real exploit proof-of-concepts, shellcode and payload strings (mainly from Exploit-DB, OffsecCyber and OpenVul) quoted as text for the model to analyze. ClamAV matches byte patterns without context, so a few of those strings trip known malware signatures.

The files are plain JSON Lines text. Nothing in them runs when you download them or load them with datasets. They contain no pickles or binaries. Treat the code inside the rows as you would any exploit code: do not copy it out and run it outside an authorized lab.

License

Released under CC BY-NC-SA 4.0: non-commercial use, attribution, and derivatives under the same license. ShareAlike is required by scthornton/securecode-web, and non-commercial use by the GPT-4-generated Spanish Alpaca slice. Each row keeps its mix_source, so subsets can be filtered by upstream. Upstream datasets keep their own terms. Slices distilled from commercial models (qwen4max, alpaca_gpt4_es) may carry additional terms from those model providers.

Offensive-security content is intended for authorized testing, research and education.

Disclaimer

Provided as is, without warranties of any kind. Use is at your own risk and responsibility, including compliance with the upstream licenses and terms listed above and with the laws that apply to you. The authors are not liable for any use of this dataset or of models trained on it.

Changelog

  • v3 — Kali tool check on answers, offseccyber cleanup (PDF fragments, NVD recitation, rows contradicting NVD), fable_stripped removed, first reasoning backfill.
  • v2.1 — halluc_api expanded from 199 to 1,150 verified items (187 → 1,073 SFT rows, 104 → 676 DPO pairs). Repository renamed to obsidian-cyber-sft-dpo.
  • v2 — cleaning pass: reasoning moved to reasoning_content, dedup, eval leak removal, token cap, UltraFeedback rebalanced.
  • v1 — initial mix.

Citation

@misc{obsidian_cyber_sft_dpo,
  title  = {Obsidian Cyber SFT + DPO},
  author = {Primitive3},
  year   = {2026},
  howpublished = {\url{https://huggingface.co/datasets/Primitive3/obsidian-cyber-sft-dpo}}
}

README historyEdit history 12 revisions12 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2026-11-26 v3: Kali tool check, offseccyber cleanup, remove fable_stripped, first reason... ec7a353 14.5 KB
    Loading...
  2. 2026-11-25 README: support note and recommended model 5505312 13.2 KB
    Loading...
  3. 2026-11-25 README: rewrite, rename to obsidian-cyber-sft-dpo 3ec47da 12.6 KB
    Loading...
  4. 2026-11-25 halluc_api: full 1150-item catalog (1073 SFT unique, 676 DPO pairs) bbd22bd 8.9 KB
    Loading...
  5. 2026-11-24 README: explain ClamAV unsafe flag 2a71308 8.7 KB
    Loading...
  6. 2026-11-24 README: add use-at-your-own-risk disclaimer b6ea3b6 7.9 KB
    Loading...
  7. 2026-11-24 v2: keep halluc_api reasoning_content, cap UltraFeedback DPO at 3k 7cb185a 7.6 KB
    Loading...
  8. 2026-11-24 v2: upweight halluc_api x4 in SFT train 16bcf77 7.4 KB
    Loading...
  9. 2026-11-24 v2: add halluc_api SFT+DPO, sources and licenses in README, CC BY-NC-SA 4.0 b414498 7.4 KB
    Loading...
  10. 2026-11-22 Add exploitdb_poc + securecode_web subset; train 97k->110k 8942e02 3.2 KB
    Loading...
  11. 2026-11-22 v2: cleaned SFT + DPO mix 1ee1a09 3.2 KB
    Loading...
  12. 2026-11-22 initial commit bfca4be 0 B
    Loading...

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2026-11-23 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

Primitive3/obsidian-cyber-sft-dpo

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration