sigularty 0.0.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.
- sigularty/__init__.py +50 -0
- sigularty/_api.py +1250 -0
- sigularty/_results.py +138 -0
- sigularty/_search.py +112 -0
- sigularty/compression.py +5169 -0
- sigularty/helper_functions.py +3625 -0
- sigularty/model_registry.py +1040 -0
- sigularty/optimization.py +1996 -0
- sigularty/visualization.py +1457 -0
- sigularty-0.0.0.dist-info/METADATA +279 -0
- sigularty-0.0.0.dist-info/RECORD +13 -0
- sigularty-0.0.0.dist-info/WHEEL +5 -0
- sigularty-0.0.0.dist-info/top_level.txt +1 -0
sigularty/__init__.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""
|
|
2
|
+
sigularty
|
|
3
|
+
==================
|
|
4
|
+
Neural network compression toolkit.
|
|
5
|
+
|
|
6
|
+
Public interface:
|
|
7
|
+
compress(model, dataloader, **kwargs) -> CompressionResult
|
|
8
|
+
finetune(model, train_loader, **kwargs) -> nn.Module
|
|
9
|
+
find_best_lr(model, dataloader, **kwargs) -> float
|
|
10
|
+
analyze(model, dataloader=None, **kwargs) -> AnalysisResult
|
|
11
|
+
load_model_and_data(model_name, **kwargs) -> (model, train_loader, test_loader, meta)
|
|
12
|
+
plot_compression_report(result, model, dl) -> str (PNG path)
|
|
13
|
+
plot_pruning_report(result) -> str or None
|
|
14
|
+
plot_epsilon_landscape(...) -> str (PNG path)
|
|
15
|
+
|
|
16
|
+
Everything else (pipeline internals, search algorithms, visualisation) lives
|
|
17
|
+
in this package as plain Python modules and isn't re-exported at this top
|
|
18
|
+
level — see compression.py, optimization.py, helper_functions.py,
|
|
19
|
+
model_registry.py, and visualization.py directly for lower-level access.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from sigularty._api import (
|
|
23
|
+
compress,
|
|
24
|
+
analyze,
|
|
25
|
+
finetune,
|
|
26
|
+
find_best_lr,
|
|
27
|
+
load_model_and_data,
|
|
28
|
+
plot_compression_report,
|
|
29
|
+
plot_pruning_report,
|
|
30
|
+
plot_epsilon_landscape,
|
|
31
|
+
CompressionResult,
|
|
32
|
+
AnalysisResult,
|
|
33
|
+
LayerSignal,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
__all__ = [
|
|
37
|
+
"compress",
|
|
38
|
+
"analyze",
|
|
39
|
+
"finetune",
|
|
40
|
+
"find_best_lr",
|
|
41
|
+
"load_model_and_data",
|
|
42
|
+
"plot_compression_report",
|
|
43
|
+
"plot_pruning_report",
|
|
44
|
+
"plot_epsilon_landscape",
|
|
45
|
+
"CompressionResult",
|
|
46
|
+
"AnalysisResult",
|
|
47
|
+
"LayerSignal",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
__version__ = "0.0.0"
|