Downloads · 30 days
17
16% of all-time downloads
BoB14TeamSentinel/sentinel-qwen3-4b-kr-sensitive-guard-v3
sentinel-qwen3-4b-kr-sensitive-guard-v3 is a token classification model from BoB14TeamSentinel. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
sentinel-qwen3-4b-kr-sensitive-guard-v3 is a Korean guardrail-oriented model fine-tuned from Qwen/Qwen3-4B to detect sensitive entities using a strict whitelist-only label set.
Downloads · 30 days
17
16% of all-time downloads
All-time downloads
105
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
sentinel-qwen3-4b-kr-sensitive-guard-v3 is a Korean guardrail-oriented model fine-tuned from Qwen/Qwen3-4B to detect sensitive entities using a strict whitelist-only label set.
This repository provides the merged full-weight model (LoRA adapter merged into the base model) for straightforward deployment.
This model was trained on the following synthetic dataset:
BoB14TeamSentinel/sentinel-kr-sensitive-entities-synthetic-v3Important: The dataset is released under CC BY 4.0. If you reuse the dataset or derivatives, please provide appropriate attribution.
The model is expected to output only the following labels:
NAME — Person namePHONE — Phone numberEMAIL — Email addressADDRESS — Address (road name / district / detailed address)POSTAL_CODE — Postal/ZIP codePERSONAL_CUSTOMS_ID — Personal Customs Clearance Code (KR)RESIDENT_ID — Resident Registration Number (KR)PASSPORT — Passport numberDRIVER_LICENSE — Driver’s license numberFOREIGNER_ID — Foreigner registration numberHEALTH_INSURANCE_ID — Health insurance IDBUSINESS_ID — Business registration numberMILITARY_ID — Military service numberJWT — JSON Web TokenAPI_KEY — API key (vendor-agnostic)GITHUB_PAT — GitHub Personal Access TokenPRIVATE_KEY — Private key material (SSH/TLS/PGP)CARD_NUMBER — Card numberCARD_EXPIRY — Card expiry (MM/YY etc.)BANK_ACCOUNT — Bank account numberCARD_CVV — CVC/CVVPAYMENT_PIN — Payment/ATM PINMOBILE_PAYMENT_PIN — Mobile payment PINMNEMONIC — Recovery seed phrase / mnemonicCRYPTO_PRIVATE_KEY — Crypto private keyHD_WALLET — HD wallet extended keyPAYMENT_URI_QR — Payment URI / QR payload (BTC/ETH/XRP/SOL/TRON etc.)IPV4 — IPv4 addressIPV6 — IPv6 addressMAC_ADDRESS — MAC addressIMEI — IMEIThis model was fine-tuned for guardrail usage where the assistant returns JSON only with:
text: the original input texthas_sensitive: booleanentities: list of { value, begin, end, label }
begin / end are 0-based character offsets (begin inclusive, end exclusive)Example:
{
"text": "문의: [email protected] / 010-1234-5678",
"has_sensitive": true,
"entities": [
{"value": "[email protected]", "begin": 4, "end": 24, "label": "EMAIL"},
{"value": "010-1234-5678", "begin": 27, "end": 40, "label": "PHONE"}
]
}
Note: This is a chat/instruct-style model. Use your preferred chat template and enforce JSON-only output in the system prompt.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "BoB14TeamSentinel/sentinel-qwen3-4b-kr-sensitive-guard-v3"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True,
)
system = (
"You are a strict whitelist-only detector for sensitive entities. "
"Given the user's text, return ONLY a JSON object with keys "
"`text`, `has_sensitive`, `entities`. "
"Do not output any labels outside the whitelist. No extra commentary."
"<List of the whitelist>"
)
user_text = "문의: [email protected] / 010-1234-5678"
messages = [
{"role": "system", "content": system},
{"role": "user", "content": user_text},
]
input_ids = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
with torch.no_grad():
out = model.generate(
input_ids,
max_new_tokens=512,
do_sample=False,
temperature=0.0,
)
print(tokenizer.decode(out[0], skip_special_tokens=True))
If you use this model or the dataset, please attribute: