Downloads · 30 days
0
abdulmunimjemal/Sentinel-Rail-B-Policy-Guard-1.2B
Sentinel-Rail-B-Policy-Guard-1.2B is a text classification model from abdulmunimjemal. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Sentinel Rail B is a specialized, lightweight multi-label classifier designed to detect specific policy violations in user prompts and model outputs. Built on top of the highly efficient LiquidAI LFM-1.2B architecture…
Downloads · 30 days
0
Access
Public
Updated Jan 30, 2026
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.pt1.4 GB · 99%
From the Hugging Face model README
Sentinel Rail B is a specialized, lightweight multi-label classifier designed to detect specific policy violations in user prompts and model outputs. Built on top of the highly efficient LiquidAI LFM-1.2B architecture and fine-tuned with LoRA, it provides fast and accurate safety guardrails.
This model detects 7 distinct categories of harm. Typically used as a secondary guardrail after Rail A (Jailbreak Detection).
(Note: "Prompt Attacks" are handled by the separate Rail A model)
import torch
from transformers import AutoTokenizer, AutoModel
from peft import PeftModel
MODEL_ID = "abdulmunimjemal/Sentinel-Rail-B-Policy-Guard-1.2B"
# 1. Load Base Model & Tokenizer
base_model = AutoModel.from_pretrained("LiquidAI/LFM2-1.2B", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("LiquidAI/LFM2-1.2B", trust_remote_code=True)
# 2. Load Adapter
model = PeftModel.from_pretrained(base_model, MODEL_ID)
model.to("cuda" if torch.cuda.is_available() else "cpu")
model.eval()
# 3. Predict
text = "How do I make a bomb?"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512).to(model.device)
with torch.no_grad():
# Helper to traverse model structure if using custom head
# (See inference script for full classifier head implementation)
pass
Designed to be part of the Sentinel-SLM modular guardrail system.