Upload src/__init__.py with huggingface_hub
Browse files- src/__init__.py +35 -0
src/__init__.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
K-FAC Memorization Suppression
|
| 3 |
+
|
| 4 |
+
Reproduction of "From Memorization to Reasoning in the Spectrum of Loss Curvature"
|
| 5 |
+
with modified importance formula testing.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
from .kfac_collector import KFACCollector
|
| 9 |
+
from .kfac_editor import KFACEditor
|
| 10 |
+
from .evaluate import (
|
| 11 |
+
strict_accuracy,
|
| 12 |
+
loose_accuracy,
|
| 13 |
+
levenshtein_distance,
|
| 14 |
+
memorization_score,
|
| 15 |
+
perplexity,
|
| 16 |
+
)
|
| 17 |
+
from .mine_memorized import (
|
| 18 |
+
sample_sequences,
|
| 19 |
+
filter_memorized,
|
| 20 |
+
mine_memorized_sequences,
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
__version__ = "0.1.0"
|
| 24 |
+
__all__ = [
|
| 25 |
+
"KFACCollector",
|
| 26 |
+
"KFACEditor",
|
| 27 |
+
"strict_accuracy",
|
| 28 |
+
"loose_accuracy",
|
| 29 |
+
"levenshtein_distance",
|
| 30 |
+
"memorization_score",
|
| 31 |
+
"perplexity",
|
| 32 |
+
"sample_sequences",
|
| 33 |
+
"filter_memorized",
|
| 34 |
+
"mine_memorized_sequences",
|
| 35 |
+
]
|