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.

secai1999/secai-chat-sanitization

published by @secai1999

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-classificationlanguage:vilanguage:enlicense:apache-2.0size_categories:1K<n<10Kformat:jsonmodality:tabularmodality:text +11 more
Lifetime downloads
151
Last 30 days
50
Likes
-
Size
548.3 KB

Description

SecAI — Chat Input Sanitization (VI/EN)

Dataset song ngữ Việt/Anh để huấn luyện input-sanitization guard cho chatbot An toàn thông tin:

gán nhãn câu người dùng để chặn prompt-injection & off-topic, cho câu bảo mật hợp lệ đi qua, và gắn cờ PII.

Nhãn

Cột

Kiểu

Giá trị

intent

softmax

security | chitchat | offtopic

injection

sigmoid

0/1 (prompt-injection / jailbreak)

pii

sigmoid

0/1 (lộ secret / PII)

injection/pii độc lập với intent.… See the full description on the dataset page: https://huggingface.co/datasets/secai1999/secai-chat-sanitization.

Structure 1 config · from the README front matter1 subset, from the author's description

default default
Data files
train data/train.jsonl
test data/test.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
apache-2.0
Languages
vien
Created on HFCreated
2026-08-26 · 3 months ago
Size category
1K<n<10K
ModalitiesData types
tabulartext
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
548.3 KB
Files
7
Formats
jsonl, py, json
Head
aab353f
Last updated on HFLast updated
2026-08-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("secai1999/secai-chat-sanitization")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="secai1999/secai-chat-sanitization", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/secai1999/secai-chat-sanitization

Files by folder from our last crawlfrom our last check

top level 5 files 296.4 KB
.gitattributes 2.5 KB file download
build_sanitize_dataset.py 37.1 KB py download
dataset.jsonl 251.9 KB jsonl download
metrics.json 1.5 KB json download
README.md 3.4 KB md download
data/ 2 files 251.9 KB
test.jsonl 69.2 KB jsonl download
train.jsonl 182.6 KB jsonl download

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

SecAI — Chat Input Sanitization (VI/EN)

Dataset song ngữ Việt/Anh để huấn luyện input-sanitization guard cho chatbot An toàn thông tin:
gán nhãn câu người dùng để chặn prompt-injection & off-topic, cho câu bảo mật hợp lệ đi qua, và gắn cờ PII.

Nhãn

Cột Kiểu Giá trị
intent softmax security | chitchat | offtopic
injection sigmoid 0/1 (prompt-injection / jailbreak)
pii sigmoid 0/1 (lộ secret / PII)

injection/pii độc lập với intent.

Schema

{"text": "...", "intent": "security", "injection": 0, "pii": 0,
 "lang": "vi", "split": "train", "group": "<skeleton-id>"}

Splits

  • train 1005 · test 383 · tổng 1388 (vi 804 / en 584).
  • intent: security 885 · offtopic 386 · chitchat 117 · injection=1: 194 · pii=1: 187.
  • Chia split theo skeleton (group), ~25% giữ riêng cho test; injection stratify theo từng kỹ thuật nên cả 9 kỹ thuật + costume VI/EN đều có mặt ở test → rò rỉ train↔test = 0 (đo generalization, không phải nhớ template).

Độ phủ

security (~40 loại lỗ hổng, tra cứu CVE/CWE, secure-coding borderline, dán code/log dài >200 ký tự) · injection (9 kỹ thuật: direct, roleplay, leak, base64/hex/ROT13, split, indirect, unicode/full-width, multi-turn, tool-leak, đội-lốt-security) · pii (key/JWT/CCCD/SĐT/email, đều tổng hợp) · offtopic + hard-negative (câu chứa từ khoá bảo mật nhưng không phải yêu cầu ATTT) · chitchat · biến thể không dấu/teencode + code-mix Việt–Anh.

Dùng

from datasets import load_dataset
ds = load_dataset("secai1999/secai-chat-sanitization")

Fit head trên embedding câu (thiết kế gốc: DuyTa/sec-embedding, 1024-d), L2-normalize, tinh chỉnh ngưỡng theo nhãn (ưu tiên injection Recall ≥ 0.95). Head tham chiếu là mixed (intent = MLP 1 lớp ẩn cho ranh giới chitchat/offtopic; injection/pii = logistic class-balanced), suy luận numpy-only. build_sanitize_dataset.py sinh lại dataset tất định (seed cố định).

KPI tham chiếu (test, leakage=0; head mixed = intent MLP + injection/pii logistic)

intent acc 0.987 · macro-F1 0.986 · MỌI lớp F1 ≥ 0.98: security 0.990 · chitchat 0.983 · offtopic 0.982 · injection 0.983 (R 1.0) · pii 0.994 (R 1.0). Overfit gap intent acc ~0.013. Xem metrics.json.

Hạn chế

Đoạn SQL/exploit dán inline đôi khi bị gắn cờ injection (ngưỡng đặt thấp để R=1.0). Ngưỡng injection/pii/offtopic cấu hình được lúc chạy để đổi cân bằng precision/recall.

An toàn

Mọi secret/PII là tổng hợp (giả). Mẫu injection là phòng thủ (nhãn dương để phát hiện & chặn), phỏng theo archetype red-team công khai.

README historyEdit history 2 revisions2 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-08-26 Add SecAI chat input-sanitization dataset (VI/EN) + card + metrics aab353f 3.3 KB
    Loading...
  2. 2026-08-26 initial commit d5774f9 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-08-27 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

secai1999/secai-chat-sanitization

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