Nous_Minos

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!

v0.0.1
nous_minos.py
Python · 83 lines
28    class Valves(BaseModel):29        priority: int = Field(30            default=5, description="Priority level for the filter operations."31        )32        show_refusal: bool = Field(33            default=True,34            description="Show Minos refusal classification metric",35        )36        pass37 38    def __init__(self):39        self.valves = self.Valves()

https://huggingface.co/NousResearch/Minos-v1

Will give the refusal/non-refusal classification after every message

Only tested on my personal environment but im just using a venv rather than a docker env, i believe it should work right out of the box but you may need to either restart the server or do a quick test script referenced in the HF nous/minos page to download the model and confirm it works in your env.

0
0