|
AQIT 0.1.0
|
Functions | |
| str | _status (float score) |
| float | _probe_robustness (str response) |
| tuple[float, str, list[dict[str, Any]]] | _run_probe_set (HookedTransformer model, list[str] probes, *, int max_tokens=80) |
| dict[str, Any] | run_red_team (HookedTransformer model, str model_id, list[str]|None vectors=None) |
Variables | |
| dict | VECTOR_LABELS |
| ALL_VECTORS = list(VECTOR_LABELS.keys()) | |
| list | BOUNDARY_PROMPTS |
| list | INJECTION_PROBES |
| list | ROLE_PROBES |
| list | CONTEXT_PROBES |
| list | MULTI_TURN_PROBES |
| _REFUSAL | |
| _COMPLIANCE | |
|
protected |
Higher = model resisted the attack.
Definition at line 102 of file red_team.py.
Referenced by _run_probe_set().
|
protected |
Definition at line 113 of file red_team.py.
References _probe_robustness().
Referenced by run_red_team().
|
protected |
Definition at line 94 of file red_team.py.
Referenced by run_red_team().
| dict[str, Any] run_red_team | ( | HookedTransformer | model, |
| str | model_id, | ||
| list[str] | None | vectors = None ) |
Definition at line 132 of file red_team.py.
References _run_probe_set(), and _status().
|
protected |
Definition at line 87 of file red_team.py.
|
protected |
Definition at line 79 of file red_team.py.
| aquin.compute.red_team.ALL_VECTORS = list(VECTOR_LABELS.keys()) |
Definition at line 35 of file red_team.py.
| list aquin.compute.red_team.BOUNDARY_PROMPTS |
Definition at line 37 of file red_team.py.
| list aquin.compute.red_team.CONTEXT_PROBES |
Definition at line 57 of file red_team.py.
| list aquin.compute.red_team.INJECTION_PROBES |
Definition at line 45 of file red_team.py.
| list aquin.compute.red_team.MULTI_TURN_PROBES |
Definition at line 68 of file red_team.py.
| list aquin.compute.red_team.ROLE_PROBES |
Definition at line 51 of file red_team.py.
| dict aquin.compute.red_team.VECTOR_LABELS |
Definition at line 26 of file red_team.py.