memaudit 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- memaudit/__init__.py +27 -0
- memaudit/__main__.py +3 -0
- memaudit/audit.py +678 -0
- memaudit/callback.py +155 -0
- memaudit/canaries.py +418 -0
- memaudit/cli.py +389 -0
- memaudit/compliance.py +531 -0
- memaudit/constants.py +88 -0
- memaudit/demo.py +372 -0
- memaudit/doctor.py +167 -0
- memaudit/exceptions.py +21 -0
- memaudit/injection.py +371 -0
- memaudit/preflight.py +439 -0
- memaudit/py.typed +0 -0
- memaudit/recommendations.py +84 -0
- memaudit/report.py +276 -0
- memaudit/scoring.py +354 -0
- memaudit/stats.py +276 -0
- memaudit/types.py +53 -0
- memaudit/utils.py +434 -0
- memaudit-0.1.0.dist-info/METADATA +352 -0
- memaudit-0.1.0.dist-info/RECORD +26 -0
- memaudit-0.1.0.dist-info/WHEEL +5 -0
- memaudit-0.1.0.dist-info/entry_points.txt +2 -0
- memaudit-0.1.0.dist-info/licenses/LICENSE +202 -0
- memaudit-0.1.0.dist-info/top_level.txt +1 -0
memaudit/__init__.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""memaudit - training-data memorization auditor for HF Trainer / TRL fine-tunes."""
|
|
2
|
+
|
|
3
|
+
from memaudit.audit import run_audit
|
|
4
|
+
from memaudit.callback import MemorizationAuditCallback
|
|
5
|
+
from memaudit.canaries import generate_canaries
|
|
6
|
+
from memaudit.constants import TOOL_VERSION
|
|
7
|
+
from memaudit.exceptions import (
|
|
8
|
+
MemauditAuditError,
|
|
9
|
+
MemauditConfigError,
|
|
10
|
+
MemauditError,
|
|
11
|
+
MemauditPreflightError,
|
|
12
|
+
)
|
|
13
|
+
from memaudit.injection import inject
|
|
14
|
+
|
|
15
|
+
__version__ = TOOL_VERSION
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"generate_canaries",
|
|
19
|
+
"inject",
|
|
20
|
+
"MemorizationAuditCallback",
|
|
21
|
+
"run_audit",
|
|
22
|
+
"MemauditError",
|
|
23
|
+
"MemauditConfigError",
|
|
24
|
+
"MemauditPreflightError",
|
|
25
|
+
"MemauditAuditError",
|
|
26
|
+
"__version__",
|
|
27
|
+
]
|
memaudit/__main__.py
ADDED