← back to catalog · registered 2026-09-16 11:56

aisquared/bolt-cls-jailbreak

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
30
Likes
0
Model age
5w ago
created 2026-08-10

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
other
Languages
en
Tags
transformers safetensors modernbert text-classification content-safety sequence-classification en base_model:aisquared/bolt-embedding-large base_model:finetune:aisquared/bolt-embedding-large license:other text-embeddings-inference endpoints_compatible
Total size
571 MB
Files
7
Quantizations
1
Registered
2026-09-16 11:56
Last updated on HF
2026-09-08 14:29

Files by quantization

Auxiliary files 7 files 574 MB
model.safetensors 571 MB ******** download
tokenizer.json 3.42 MB 11901d2b download
README.md 6.67 KB 2fbb55f7 download
config.json 2.07 KB cfc96ca4 download
.gitattributes 1.48 KB a6344aac download
tokenizer_config.json 572 B d1e9d3fe download
threshold.json 244 B 5e00d2eb download

README current version from Hugging Face


pipeline_tag: text-classification
library_name: transformers
base_model: aisquared/bolt-embedding-large
tags:

  • text-classification
  • modernbert
  • content-safety
  • sequence-classification
    license: other
    language:
  • en

Bolt CLS Jailbreak

Bolt CLS Jailbreak is a binary text classifier for detecting jailbreak/prompt-injection attempts in raw text. It is one of four Bolt CLS classifiers (PII, Content, Jailbreak, Router) used together in the production request-safety pipeline.

Model Overview

Bolt CLS Jailbreak is trained specifically to flag whether a piece of raw text is likely to be a jailbreak or prompt-injection attempt, acting as the first-pass sieve in front of a heavier downstream reviewer model.

Key design goals:

  • High recall (catch as many jailbreak attempts as possible) even at the cost of precision
  • Fast, lightweight scoring suitable for gating every request in a production pipeline
  • A calibrated score that downstream systems can threshold for different use cases

Model Details

  • Type: Text classifier (binary, single-label)
  • Architecture: ModernBERT (ModernBertForSequenceClassification)
  • Base model: aisquared/bolt-embedding-largefrozen during training (only the classification head was trained). bolt-embedding-large is itself AI Squared's own encoder, fine-tuned from ibm-granite/granite-embedding-english-r2.
  • Hidden size: 768 · Layers: 22 · Attention heads: 12
  • Max input length: 8,192 tokens
  • Pooling: mean

Training Data

Training data combines three sources:

  • An in-house jailbreak dataset, used with its existing train/test split.
  • JailbreakBench/JBB-Behaviors (behaviors config), a public dataset — harmful rows keep their attack Category as the label; benign rows are labeled "benign".
  • jackhhao/jailbreak-classification, a public dataset, mapped into the shared label schema.

All train pieces are concatenated and shuffled into one train split (same for test).

Training

Trained with AI Squared's internal classifier training pipeline, shared across all four Bolt CLS classifiers. This is a frozen-base run — only the classification head was trained on top of the frozen aisquared/bolt-embedding-large encoder.

  • Objective/loss: weighted focal loss (γ = 2.0 by default) on top of standard cross-entropy, with inverse-class-frequency weighting plus an extra ×2.0 multiplier on the positive (jailbreak) class — biases the model toward catching positives, consistent with the sieve design.
  • Hyperparameters: learning rate 2e-5 · 4 epochs · per-device batch size 1 with 32 gradient-accumulation steps (effective batch size 32) · cosine LR schedule, 6% warmup · weight decay 0.01 · max grad norm 1.0 · max sequence length 8,192 tokens · seed 42.
  • Threshold selection: after training, the eval-split positive-class scores are swept to find the F1-optimal decision threshold (ties broken by recall, then precision); that threshold and its metrics are saved to threshold.json and shipped with the model — this is the same file Threshold Guidance below is drawn from.
  • Hardware: Nvidia H200

Threshold Guidance

Two thresholds are relevant to this model:

Threshold Value Where it's used
F1-optimal 0.6343 The threshold that maximizes F1 on the held-out eval set — use this if consuming the raw score standalone.
Production sieve threshold 0.25 The low threshold the production sieve stage uses to flag prompts as possible jailbreak attempts. Set deliberately low because a sieve flag is not a hard block — it routes to a downstream reviewer model for the final decision, so false positives are cheap and false negatives are the thing to avoid.

If you're integrating this model outside of the production sieve, default to the F1-optimal threshold (0.6343) unless you have the same "flag → model review" downstream step, in which case the lower 0.25 threshold is appropriate.

Evaluation

Reported production target at the operating threshold: FNR < 1%, FPR 16.6%. Held-out eval metrics at the F1-optimal threshold (0.6343):

Metric Value
Accuracy 0.92627
F1 0.73558
Precision 0.73206
Recall 0.73913

Intended Use

  • Low-threshold pre-filter (sieve) in the production request pipeline, flagging prompts that may be jailbreak/prompt-injection attempts for downstream review by a larger reviewer model.
  • Standalone jailbreak screening where a binary flag on raw text is sufficient.

Out of scope: using this model's flag as a final block decision — by design it is a first-pass filter; final adjudication happens downstream.

Deployment Notes (Hugging Face Inference Endpoints)

If you're deploying this model on HF Inference Endpoints:

  1. The two frontmatter lines above are required. Without pipeline_tag and library_name set, HF cannot identify this repo's task/architecture, which blocks every specialized engine (vLLM, TEI, TGI, SGLang) from even appearing as selectable options — you'll only see "Default," along with a "no handler.py found" warning. Adding these two lines is what unlocks the full engine list on the deployment screen.
  2. Manually select vLLM as the Inference Engine on the deployment screen — it is not selected by default, and the default recommendation may pick a different engine that doesn't correctly support this architecture's classification head. This has to be set explicitly every time you create a new endpoint; it is not remembered from prior deployments and cannot currently be pinned via any repo file.
  3. No handler.py or requirements.txt is needed once vLLM is selected — vLLM reads config.json directly.

Usage

from transformers import pipeline

classifier = pipeline("text-classification", model="aisquared/bolt-cls-jailbreak")
result = classifier("Your text here")
print(result)

Limitations

  • Precision/recall on the held-out set (F1 ≈ 0.74) is materially lower than the PII and Content classifiers — jailbreak detection is the hardest of the three sieve tasks, and this model should not be treated as a standalone safety guarantee.
  • Evaluated against an internal jailbreak eval set; performance against novel or adversarially-evolved jailbreak techniques not represented there is not guaranteed.
  • As with any threshold-based classifier, behavior near the threshold boundary should be spot-checked before relying on it in a new context.

License

Bolt CLS Jailbreak is released under the AI Squared Community License.

Catalog is the map. Apps are the tools.

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

Every model page has an "Open in app" button that hands off directly to a local runtime of your choice - Infrahuman, LM Studio, or Ollama. No API keys, no subscription, no prompt leakage.