0din-jef
توضیحات
Jailbreak Evaluation Module
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | 0din-jef-0.8.3 |
| نام | 0din-jef |
| نسخه کتابخانه | 0.8.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | jiwu-moz |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/0din-jef/ |
| مجوز | - |
# Jailbreak Evaluation Framework (JEF)
[](https://opensource.org/licenses/Apache-2.0)
**[Full Documentation](https://0din-ai.github.io/0din-JEF/)** | [0din.ai](https://www.0din.ai)
JEF is a CVSS-like scoring system for quantifying LLM jailbreak tactics. It provides a structured, repeatable framework for stack-ranking jailbreak methods based on their real-world efficacy and risk, scoring across three dimensions:
- **Model Impact Radius** — How many models and vendors are affected
- **Retargetability** — How flexibly the tactic applies across content categories
- **Output Fidelity** — How accurate and detailed the resulting outputs are
## Installation
```
pip install 0din-jef
```
## Quick Start
```python
from jef import tiananmen, meth, nerve_agent, harry_potter
# Score against standardized benchmarks (0-100)
result = tiananmen.score("LLM response text")
result = meth.score("LLM response text")
result = nerve_agent.score("LLM response text")
result = harry_potter.score("LLM output", "reference text")
# Compute composite JEF score (0-10)
from jef import calculator
jef_score = calculator(num_vendors=3, num_models=7, num_subjects=2, scores=[80, 75])
```
## Documentation
For the full framework methodology, scoring algorithm, complete usage guide, and API reference, visit the **[JEF Documentation](https://0din-ai.github.io/0din-JEF/)**.
## Resources
* [Blog: Quantifying the Unruly — A Scoring System for Jailbreak Tactics](https://0din.ai/blog/quantifying-the-unruly-a-scoring-system-for-jailbreak-tactics)
* [Overview: Jailbreak Evaluation Framework](https://0din.ai/research/jailbreak_evaluation_framework)
* [JEF Calculator](https://0din.ai/research/jailbreak_evaluation_framework/calculator)
* [Standardized Testing](https://0din.ai/research/jailbreak_evaluation_framework/testing) (0DIN Researcher Authentication Required)
## Releases
Releases are managed through GitHub Releases and automatically published to [PyPI](https://pypi.org/project/0din-jef/).
نیازمندی
| مقدار | نام |
|---|---|
| - | pyyaml>=6 |
| xtr | pytest; |
| xtr | requests>=2.33.0; |
| xtr | pytest-asyncio; |
| xtr | garak>=0.13.3; |
| xtr | pyrit<1.1,>=0.14; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.12 | Python |
نحوه نصب
نصب پکیج whl 0din-jef-0.8.3:
pip install 0din-jef.whl
نصب پکیج tar.gz 0din-jef-0.8.3:
pip install 0din-jef.tar.gz