OpenCompass runs free-text completions on prompts from a local safety.txt file and scores toxicity with Google Perspective API.
unassessed
| Category | safety |
|---|---|
| Subcategory | OpenCompass generation-toxicity probe on a local prompt file |
| Page status | unknown |
| Metric | Perspective toxicity (expected_max_toxicity, toxic_frac_valid, avg_toxicity_score) |
| Direction | lower_is_better |
| Publisher | OpenCompass |
OpenCompass `safety` is a generation-toxicity probe, not a named standalone paper. The model sees one prompt per line from `./data/safety.txt` and writes a free-text continuation. Perspective API then scores TOXICITY on that continuation. English and Chinese are requested on the API call; the prompt file's language mix is not established here. This is not [helm_safety](helm_safety.md), not [autobencher_safety](autobencher_safety.md), and not the separate OpenCompass RealToxicPrompts config.
Zero-shot GenInferencer. PromptTemplate is the raw `{prompt}` string. ZeroRetriever. SafetyDataset builds a Hugging Face DatasetDict with a test split only (idx, prompt). output_column is idx because there is no gold string. ToxicEvaluator does not use references.
No model card in ModelSpec reports this benchmark yet.