localbenchmark 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.
- localbenchmark/__init__.py +39 -0
- localbenchmark/examples.py +11 -0
- localbenchmark/llm_plots.py +833 -0
- localbenchmark/localbenchmark.py +1091 -0
- localbenchmark/tests/test_localbenchmark.py +13 -0
- localbenchmark-0.1.0.dist-info/METADATA +215 -0
- localbenchmark-0.1.0.dist-info/RECORD +11 -0
- localbenchmark-0.1.0.dist-info/WHEEL +5 -0
- localbenchmark-0.1.0.dist-info/entry_points.txt +4 -0
- localbenchmark-0.1.0.dist-info/licenses/LICENSE +22 -0
- localbenchmark-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
import localbenchmark.localbenchmark as localbenchmark
|
|
3
|
+
import localbenchmark.llm_plots as llm_plots
|
|
4
|
+
|
|
5
|
+
__author__ = 'Erdogan Taskesen'
|
|
6
|
+
__email__ = 'erdogant@gmail.com'
|
|
7
|
+
__version__ = '0.1.0'
|
|
8
|
+
|
|
9
|
+
# Setup package-level logger
|
|
10
|
+
_logger = logging.getLogger('localbenchmark')
|
|
11
|
+
_log_handler = logging.StreamHandler()
|
|
12
|
+
_formatter = logging.Formatter(fmt='[{asctime}] [{name:<12.12}] [{levelname:<8}] {message}', style='{', datefmt='%d-%m-%Y %H:%M:%S')
|
|
13
|
+
_log_handler.setFormatter(_formatter)
|
|
14
|
+
_log_handler.setLevel(logging.DEBUG)
|
|
15
|
+
if not _logger.hasHandlers(): # avoid duplicate handlers if re-imported
|
|
16
|
+
_logger.addHandler(_log_handler)
|
|
17
|
+
_logger.setLevel(logging.DEBUG)
|
|
18
|
+
_logger.propagate = True # allow submodules to inherit this handler
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# module level doc-string
|
|
23
|
+
__doc__ = """
|
|
24
|
+
localbenchmark
|
|
25
|
+
=====================================================================
|
|
26
|
+
|
|
27
|
+
localbenchmark is for...
|
|
28
|
+
|
|
29
|
+
Example
|
|
30
|
+
-------
|
|
31
|
+
>>> from localbenchmark import localbenchmark
|
|
32
|
+
>>> model = localbenchmark()
|
|
33
|
+
>>> localbenchmark.plot()
|
|
34
|
+
|
|
35
|
+
References
|
|
36
|
+
----------
|
|
37
|
+
https://github.com/erdogant/localbenchmark
|
|
38
|
+
|
|
39
|
+
"""
|