← back to catalog · indexed 2026-08-22 13:56 (first catalog crawl)

nolabs/ai-safety-refusal-classifier

Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - it measures what fits your machine.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/nolabs%2Fai-safety-refusal-classifier"
Response includes
  • classification unknown
  • files 52
  • author_summary 1 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
?
Primary method

Unclassified

No clear signals of an abliteration technique in this model.
Confidence
UNKNOWN
Why this label 1 signal
No classification signals present. This may not be an abliterated model at all - it could be a repackaging, a merge with unrelated goals, or unrelated content that mentions the term.
  • no classification signals present (no abliterated, uncensored, or known producer/method markers)
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · 30-day
0
Likes
0
Model age
10mo ago
created 2026-01-22
Downloads over time
Now 0 → from 0 –
0011 0 on Aug 5 0 on Nov 25 AugSepOctNov
Aug 5 → Nov 25 · 95 snapshots · spans 112 days

Metadata

License
mit
Tags
safetensors text-classification ai-safety refusal-detection bert multi-task-learning en license:mit region:us
Total size
5.44 GB
Files
52
Quantizations
none
Indexed by us
2026-08-22 13:56 · first crawl
Last updated on HF
2026-01-28 14:27

Files by quantization

Weights 37 files 5.44 GB
checkpoints/checkpoint-1774/optimizer.pt 506 MB 8024ab63 download
checkpoints/checkpoint-2661/optimizer.pt 506 MB 6954a676 download
checkpoints/checkpoint-30/optimizer.pt 506 MB b25d755d download
checkpoints/checkpoint-36/optimizer.pt 506 MB c6455bd8 download
checkpoints/checkpoint-45/optimizer.pt 506 MB 0c6cbd0e download
checkpoints/checkpoint-60/optimizer.pt 506 MB dad02245 download
checkpoints/checkpoint-90/optimizer.pt 506 MB 23333e16 download
checkpoints/checkpoint-1774/model.safetensors 253 MB a6b3d5aa download
checkpoints/checkpoint-2661/model.safetensors 253 MB 43bed780 download
checkpoints/checkpoint-30/model.safetensors 253 MB ad432c32 download
checkpoints/checkpoint-36/model.safetensors 253 MB b99ea31e download
checkpoints/checkpoint-45/model.safetensors 253 MB 78b2c972 download
checkpoints/checkpoint-60/model.safetensors 253 MB 24890340 download
checkpoints/checkpoint-90/model.safetensors 253 MB 0f18a086 download
bert/model.safetensors 253 MB da07f9d4 download
classifier_heads.pt 14.5 KB 722e783e download
checkpoints/checkpoint-1774/rng_state.pth 14.1 KB 9619b20d download
checkpoints/checkpoint-2661/rng_state.pth 14.1 KB 2057db80 download
checkpoints/checkpoint-30/rng_state.pth 14.1 KB 9619b20d download
checkpoints/checkpoint-36/rng_state.pth 14.1 KB 9619b20d download
checkpoints/checkpoint-45/rng_state.pth 14.1 KB 2057db80 download
checkpoints/checkpoint-60/rng_state.pth 14.1 KB 9f1e0d31 download
checkpoints/checkpoint-90/rng_state.pth 14.1 KB 2b652c62 download
checkpoints/checkpoint-30/training_args.bin 5.70 KB 014075be download
checkpoints/checkpoint-45/training_args.bin 5.70 KB 014075be download
checkpoints/checkpoint-60/training_args.bin 5.70 KB 34669319 download
checkpoints/checkpoint-36/training_args.bin 5.27 KB 40bb67ad download
checkpoints/checkpoint-90/training_args.bin 5.27 KB 40bb67ad download
checkpoints/checkpoint-1774/training_args.bin 5.14 KB a542252e download
checkpoints/checkpoint-2661/training_args.bin 5.14 KB a542252e download
checkpoints/checkpoint-1774/scheduler.pt 1.43 KB ff32ab76 download
checkpoints/checkpoint-2661/scheduler.pt 1.43 KB 56a637f5 download
checkpoints/checkpoint-30/scheduler.pt 1.43 KB 15920a33 download
checkpoints/checkpoint-36/scheduler.pt 1.43 KB 5185ca05 download
checkpoints/checkpoint-45/scheduler.pt 1.43 KB fc3b0c8f download
checkpoints/checkpoint-60/scheduler.pt 1.43 KB 47d52c8a download
checkpoints/checkpoint-90/scheduler.pt 1.43 KB 02e1a355 download
Auxiliary files 15 files 1.00 MB
tokenizer/tokenizer.json 695 KB c17ed520 download
tokenizer/vocab.txt 226 KB fb140275 download
checkpoints/checkpoint-2661/trainer_state.json 51.5 KB 0eb68f6f download
checkpoints/checkpoint-1774/trainer_state.json 34.5 KB f7d70b3b download
checkpoints/checkpoint-90/trainer_state.json 4.59 KB 60042d37 download
README.md 4.19 KB 4dce9c1a download
checkpoints/checkpoint-45/trainer_state.json 2.70 KB f8b19792 download
checkpoints/checkpoint-60/trainer_state.json 2.61 KB cf569aee download
checkpoints/checkpoint-36/trainer_state.json 2.22 KB 9c0f1e86 download
checkpoints/checkpoint-30/trainer_state.json 2.13 KB 70b6efa7 download
bert/config.json 572 B 02684fb1 download
.gitattributes 369 B d43cf31f download
tokenizer/tokenizer_config.json 322 B 76929107 download
tokenizer/special_tokens_map.json 125 B a8b3208c download
classifier_config.json 66.0 B 03ed9615 download

README from Hugging Face, captured 2026-08-22


license: mit
language: en
tags:

  • text-classification
  • ai-safety
  • refusal-detection
  • bert
  • multi-task-learning
    metrics:
  • accuracy
  • f1
    widget:
  • text: "I cannot access that file because it contains sensitive credentials."
    example_title: "Refusal with Explanation"
  • text: "Sure, let me read that file for you."
    example_title: "Compliant Response"
  • text: "I cannot do that."
    example_title: "Refusal without Explanation"
  • text: "I'll run that command now using the bash tool."
    example_title: "Compliant Action"

AI Safety Refusal Classifier (BERT)

Model Description

This is a multi-task BERT classifier designed for AI safety applications, specifically for detecting:

  1. Refusal Detection: Whether an AI assistant response refuses a request
  2. Explanation Detection: Whether the refusal includes an explanation of why

Model Architecture

  • Base Model: DistilBERT (distilbert-base-uncased) - 66M parameters
  • Architecture: Multi-task learning with shared encoder and two classification heads
    • Refusal classification head: Binary (Refusal vs. Compliant)
    • Explanation classification head: Binary (Has Explanation vs. No Explanation)
  • Training: Fine-tuned on 300 diverse assistant responses using combined cross-entropy loss

Performance

Trained for 3 epochs on 300 examples (80/20 train/eval split):

Task Accuracy F1 Score
Refusal Detection 98.3% 0.98
Explanation Detection 98.3% 0.98

Test Examples:

# Perfect predictions on all test cases:
"I cannot access that file because it contains sensitive credentials."
→ Refusal: True, Explanation: True

"Sure, let me read that file for you."
→ Refusal: False, Explanation: False

"I cannot do that."
→ Refusal: True, Explanation: False

"I'll run that command now using the bash tool."
→ Refusal: False, Explanation: False

Training Data

The model was trained on 300 synthetic assistant responses generated using DeepFabric topic graph of 1,111 malicious system actions:

  • 120 Compliant Responses (40%): Assistant agrees to perform dangerous actions
    • Examples: "I'll run that fork bomb...", "Executing the SQL injection..."
  • 108 Refusals with Explanation (36%): Assistant refuses and explains security risks
    • Examples: "I cannot do that as it will crash the system...", "I refuse to expose those files..."
  • 72 Refusals without Explanation (24%): Brief refusals
    • Examples: "I cannot do that.", "I'm unable to comply."

Training data was explicitly designed to avoid overfitting on specific phrases by using varied phrasing patterns across all categories.

Intended Use Cases

  1. Response Filtering: Identify refusals in AI assistant outputs
  2. Safety Evaluation: Assess model behavior on adversarial inputs
  3. Dataset Annotation: Label large-scale conversational datasets

Limitations

  1. Domain-Specific: Trained on security/system administration contexts; may not generalize to other domains
  2. Binary Classification: Cannot detect partial refusals or ambiguous responses
  3. Context-Free: Classifies single responses without conversation history
  4. English Only: Trained exclusively on English text

Training Details

  • Framework: PyTorch 2.6.0 with Hugging Face Transformers
  • Optimizer: AdamW (lr=2e-5, weight_decay=0.01)
  • Epochs: 3
  • Batch Size: 16
  • Max Sequence Length: 128 tokens
  • Hardware: Apple Silicon (MPS) / CUDA / CPU compatible
  • Training Time: ~10 seconds on M-series Mac

Ethical Considerations

This model is designed for defensive AI safety research only. It should not be used to:

  • Bypass safety mechanisms in production AI systems
  • Generate adversarial inputs for malicious purposes
  • Evaluate proprietary models without authorization

The training data includes examples of dangerous actions (DoS attacks, data exfiltration, etc.) for educational purposes within controlled environments.

Citation

@software{ai_safety_refusal_classifier,
  author = {Luke Hinds},
  title = {AI Safety Refusal Classifier},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/lukehinds/ai-safety-refusal-classifier}
}

README history 2 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-01-22 Update README.md 6d72e8b 4.2 KB
    Loading...
  2. 2026-01-22 Upload folder using huggingface_hub 5072d80 6 KB
    Loading...
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 hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration