speedy-utils 1.0.16__tar.gz → 1.0.21__tar.gz
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.
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/PKG-INFO +4 -3
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/pyproject.toml +19 -4
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/__init__.py +3 -2
- speedy_utils-1.0.21/src/llm_utils/lm/__init__.py +12 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/lm/chat_html.py +1 -1
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/lm/lm_json.py +1 -1
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/utils_cache.py +2 -2
- speedy_utils-1.0.16/src/llm_utils/lm/__init__.py +0 -9
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/README.md +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/chat_format/__init__.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/chat_format/display.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/chat_format/transform.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/chat_format/utils.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/group_messages.py +0 -0
- /speedy_utils-1.0.16/src/llm_utils/lm/alm.py → /speedy_utils-1.0.21/src/llm_utils/lm/async_lm.py +0 -0
- /speedy_utils-1.0.16/src/llm_utils/lm/lm.py → /speedy_utils-1.0.21/src/llm_utils/lm/sync_lm.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/lm/utils.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/scripts/README.md +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/scripts/vllm_load_balancer.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/llm_utils/scripts/vllm_serve.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/__init__.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/all.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/__init__.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/clock.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/function_decorator.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/logger.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/notebook_utils.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/report_manager.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/utils_io.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/utils_misc.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/common/utils_print.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/multi_worker/__init__.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/multi_worker/process.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/multi_worker/thread.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/scripts/__init__.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/scripts/mpython.py +0 -0
- {speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/scripts/openapi_client_codegen.py +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: speedy-utils
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.21
|
|
4
4
|
Summary: Fast and easy-to-use package for data science
|
|
5
5
|
Author: AnhVTH
|
|
6
6
|
Author-email: anhvth.226@gmail.com
|
|
7
|
-
Requires-Python: >=3.
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
9
10
|
Classifier: Programming Language :: Python :: 3.9
|
|
10
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -19,7 +20,7 @@ Requires-Dist: fastprogress
|
|
|
19
20
|
Requires-Dist: freezegun (>=1.5.1,<2.0.0)
|
|
20
21
|
Requires-Dist: ipdb
|
|
21
22
|
Requires-Dist: ipywidgets
|
|
22
|
-
Requires-Dist: json-repair (>=0.
|
|
23
|
+
Requires-Dist: json-repair (>=0.25.0,<0.31.0)
|
|
23
24
|
Requires-Dist: jupyterlab
|
|
24
25
|
Requires-Dist: loguru
|
|
25
26
|
Requires-Dist: matplotlib
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "speedy-utils"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.21"
|
|
4
4
|
description = "Fast and easy-to-use package for data science"
|
|
5
5
|
authors = ["AnhVTH <anhvth.226@gmail.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -11,7 +11,7 @@ packages = [
|
|
|
11
11
|
]
|
|
12
12
|
|
|
13
13
|
[build-system]
|
|
14
|
-
requires = ["poetry-core>=1.0.
|
|
14
|
+
requires = ["poetry-core>=1.0.15"]
|
|
15
15
|
build-backend = "poetry.core.masonry.api"
|
|
16
16
|
|
|
17
17
|
[tool.black]
|
|
@@ -36,7 +36,7 @@ no_implicit_optional = true
|
|
|
36
36
|
strict_optional = true
|
|
37
37
|
|
|
38
38
|
[tool.poetry.dependencies]
|
|
39
|
-
python = ">=3.
|
|
39
|
+
python = ">=3.8"
|
|
40
40
|
numpy = "*"
|
|
41
41
|
requests = "*"
|
|
42
42
|
xxhash = "*"
|
|
@@ -54,7 +54,7 @@ pydantic = "*"
|
|
|
54
54
|
tqdm = "*"
|
|
55
55
|
cachetools = "*"
|
|
56
56
|
bump2version = "*"
|
|
57
|
-
json-repair = ">=0.
|
|
57
|
+
json-repair = ">=0.25.0,<0.31.0"
|
|
58
58
|
fastprogress = "*"
|
|
59
59
|
freezegun = "^1.5.1"
|
|
60
60
|
packaging = ">=23.2,<25"
|
|
@@ -64,3 +64,18 @@ mpython = "speedy_utils.scripts.mpython:main"
|
|
|
64
64
|
svllm = "llm_utils.scripts.vllm_serve:main"
|
|
65
65
|
svllm-lb = "llm_utils.scripts.vllm_load_balancer:run_load_balancer"
|
|
66
66
|
openapi_client_codegen = "speedy_utils.scripts.openapi_client_codegen:main"
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
[tool.ruff.format]
|
|
70
|
+
quote-style = "double"
|
|
71
|
+
line-ending = "lf"
|
|
72
|
+
docstring-code-format = true
|
|
73
|
+
[tool.ruff]
|
|
74
|
+
exclude = ["**/*.ipynb", "poly_frontend_controler/*", "poly_client/", "legacy"]
|
|
75
|
+
ignore = [
|
|
76
|
+
"E501", # Line too long
|
|
77
|
+
"F401", # Unused import
|
|
78
|
+
"F403", # Wildcard import
|
|
79
|
+
"F841", # Local variable is assigned to but never used
|
|
80
|
+
"T201", # Use of `print` statement
|
|
81
|
+
]
|
|
@@ -9,8 +9,8 @@ from .chat_format import (
|
|
|
9
9
|
transform_messages,
|
|
10
10
|
transform_messages_to_chatml,
|
|
11
11
|
)
|
|
12
|
-
from .lm.
|
|
13
|
-
from .lm.
|
|
12
|
+
from .lm.async_lm import AsyncLLMTask, AsyncLM
|
|
13
|
+
from .lm.sync_lm import LM, LLMTask
|
|
14
14
|
|
|
15
15
|
__all__ = [
|
|
16
16
|
"transform_messages",
|
|
@@ -26,4 +26,5 @@ __all__ = [
|
|
|
26
26
|
"AsyncLM",
|
|
27
27
|
"display_chat_messages_as_html",
|
|
28
28
|
"LLMTask",
|
|
29
|
+
"AsyncLLMTask",
|
|
29
30
|
]
|
|
@@ -14,8 +14,8 @@ import xxhash
|
|
|
14
14
|
from loguru import logger
|
|
15
15
|
from pydantic import BaseModel
|
|
16
16
|
|
|
17
|
-
from
|
|
18
|
-
from
|
|
17
|
+
from speedy_utils.common.utils_io import dump_json_or_pickle, load_json_or_pickle
|
|
18
|
+
from speedy_utils.common.utils_misc import mkdir_or_exist
|
|
19
19
|
|
|
20
20
|
SPEED_CACHE_DIR = osp.join(osp.expanduser("~"), ".cache/speedy_cache")
|
|
21
21
|
LRU_MEM_CACHE = cachetools.LRUCache(maxsize=128_000)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/speedy_utils-1.0.16/src/llm_utils/lm/alm.py → /speedy_utils-1.0.21/src/llm_utils/lm/async_lm.py
RENAMED
|
File without changes
|
/speedy_utils-1.0.16/src/llm_utils/lm/lm.py → /speedy_utils-1.0.21/src/llm_utils/lm/sync_lm.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{speedy_utils-1.0.16 → speedy_utils-1.0.21}/src/speedy_utils/scripts/openapi_client_codegen.py
RENAMED
|
File without changes
|