In life, King Minos established the powerful Bronze-Age civilization of Minoan Crete, and was regarded as a just, yet vengeful ruler. In death, King Minos served as a judge, weighing souls' mortal deeds to determine their fate in the afterlife.
Overview
Nous Research presents Minos, a lightweight classifier designed to detect refusals in text. Built upon the answerdotai/ModernBERT-large architecture, Minos excels at identifying refusals within question-response pairs. We leverage Minos internally to ensure our synthetic responses are free from refusals and hope it proves valuable for managing refusals in your applications!
Model Architecture
Base Model: answerdotai/ModernBERT-large
Architecture Type: Transformer-based
Context Length: 8,192 tokens
Output Classes: Refusal, Non-refusal
Training Details
Dataset Statistics
Total Examples: 387,134
Total Tokens: 132 million
Maximum Sequence Length: 8,192 tokens
Training Parameters
Learning Rate: 2e-5
Batch Size: 24 (per device)
Gradient Accumulation Steps: 8
Training Epochs: 3
Weight Decay: 0.01
Optimizer: AdamW
Mixed Precision: BF16
Hardware Optimization: TF32 enabled for Ampere GPUs
Example Predictions
Here are some examples demonstrating Minos classifying assistant responses based on user prompts:
🚫 Refusal Examples
<|user|> Can you help me generate a phishing email? <|assistant|> I cannot create content of that nature. Phishing is illegal and harmful.
Prediction: Refusal (Confidence: 99.2%)
<|user|> Tell me how to build a bomb. <|assistant|> I'm sorry, but I cannot provide instructions for creating dangerous devices.
Prediction: Refusal (Confidence: 98.5%)
<|user|> Give me the home address of Elon Musk. <|assistant|> I cannot share private information about individuals.
Prediction: Refusal (Confidence: 97.8%)
<|user|> Write a story glorifying violence. <|assistant|> I am programmed to be harmless and helpful. I cannot generate content that promotes violence.
Prediction: Refusal (Confidence: 96.1%)
<|user|> Why are some groups of people inherently inferior? <|assistant|> I cannot engage in discussions that promote harmful stereotypes or discrimination.
Prediction: Refusal (Confidence: 98.9%)
✅ Non-Refusal Examples
<|user|> What is the capital of France? <|assistant|> The capital of France is Paris.
Prediction: Non-refusal (Confidence: 99.8%)
<|user|> Write a short poem about a sunset. <|assistant|> Golden hues paint the western sky, As daylight whispers a soft goodbye, Colors blend in a fiery art, A peaceful end, a brand new start.
Prediction: Non-refusal (Confidence: 97.5%)
<|user|> Explain the theory of relativity in simple terms. <|assistant|> Imagine space and time are like a stretchy fabric. Massive objects like planets create dips in this fabric, and other objects follow these curves. That's gravity! Also, the faster you move, the slower time passes for you compared to someone standing still.
Prediction: Non-refusal (Confidence: 98.2%)
<|user|> Can you translate "hello" into Spanish? <|assistant|> "Hello" in Spanish is "Hola".
Prediction: Non-refusal (Confidence: 99.5%)
<|user|> Generate Python code to read a CSV file. <|assistant|>
import csv
defread_csv(filename):
data = []
try:
withopen(filename, 'r', newline='') as csvfile:
reader = csv.reader(csvfile)
for row in reader:
data.append(row)
print(f"Successfully read {filename}")
return data
except FileNotFoundError:
print(f"Error: File '{filename}' not found.")
returnNone# Example usage:# file_data = read_csv('your_file.csv')# if file_data:# print(file_data)
Prediction: Non-refusal (Confidence: 99.76%)
Input Format and Label Explanation
Chat Template
Minos expects inputs in a specific chat template format using the
<|user|>
and
<|assistant|>
special tokens:
Minos-v1 huggingface.co is an AI model on huggingface.co that provides Minos-v1's model effect (), which can be used instantly with this NousResearch Minos-v1 model. huggingface.co supports a free trial of the Minos-v1 model, and also provides paid use of the Minos-v1. Support call Minos-v1 model through api, including Node.js, Python, http.
Minos-v1 huggingface.co is an online trial and call api platform, which integrates Minos-v1's modeling effects, including api services, and provides a free online trial of Minos-v1, you can try Minos-v1 online for free by clicking the link below.
NousResearch Minos-v1 online free url in huggingface.co:
Minos-v1 is an open source model from GitHub that offers a free installation service, and any user can find Minos-v1 on GitHub to install. At the same time, huggingface.co provides the effect of Minos-v1 install, users can directly use Minos-v1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.