Downloads · 30 days
17
22% of all-time downloads
ksw1/bert-probe-unsafe-reasoning
bert-probe-unsafe-reasoning is a text classification model from ksw1. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is a BERT-based probe trained to detect "unsafe" reasoning patterns in mathematical problem-solving.
Downloads · 30 days
17
22% of all-time downloads
All-time downloads
78
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This model is a BERT-based probe trained to detect "unsafe" reasoning patterns in mathematical problem-solving.
from transformers import BertTokenizer, BertForSequenceClassification
import torch
tokenizer = BertTokenizer.from_pretrained("ksw1/bert-probe-unsafe-reasoning")
model = BertForSequenceClassification.from_pretrained("ksw1/bert-probe-unsafe-reasoning")
# Example usage
text = "To solve this problem, I'll work step by step..."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
outputs = model(**inputs)
prob_unsafe = torch.sigmoid(outputs.logits[:, 1]).item()
print(f"Probability of unsafe reasoning: {prob_unsafe:.3f}")
Trained on mathematical reasoning examples with labels for safe/unsafe reasoning patterns.
This model is intended for research purposes only, specifically for studying reasoning patterns in AI systems.