speedy-utils 1.1.46__py3-none-any.whl → 1.1.48__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.
- llm_utils/__init__.py +1 -3
- llm_utils/chat_format/__init__.py +0 -2
- llm_utils/chat_format/display.py +283 -364
- llm_utils/lm/llm.py +62 -22
- speedy_utils/__init__.py +4 -0
- speedy_utils/multi_worker/__init__.py +4 -0
- speedy_utils/multi_worker/_multi_process.py +425 -0
- speedy_utils/multi_worker/_multi_process_ray.py +308 -0
- speedy_utils/multi_worker/common.py +879 -0
- speedy_utils/multi_worker/dataset_sharding.py +203 -0
- speedy_utils/multi_worker/process.py +53 -1234
- speedy_utils/multi_worker/progress.py +71 -1
- speedy_utils/multi_worker/thread.py +45 -0
- speedy_utils/scripts/mpython.py +19 -12
- {speedy_utils-1.1.46.dist-info → speedy_utils-1.1.48.dist-info}/METADATA +1 -1
- {speedy_utils-1.1.46.dist-info → speedy_utils-1.1.48.dist-info}/RECORD +18 -14
- {speedy_utils-1.1.46.dist-info → speedy_utils-1.1.48.dist-info}/WHEEL +0 -0
- {speedy_utils-1.1.46.dist-info → speedy_utils-1.1.48.dist-info}/entry_points.txt +0 -0
llm_utils/__init__.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from llm_utils.llm_ray import LLMRay
|
|
1
2
|
from llm_utils.lm import (
|
|
2
3
|
LLM,
|
|
3
4
|
AsyncLLMTask,
|
|
@@ -12,7 +13,6 @@ from llm_utils.lm import (
|
|
|
12
13
|
from llm_utils.lm.base_prompt_builder import BasePromptBuilder
|
|
13
14
|
from llm_utils.lm.lm_base import get_model_name
|
|
14
15
|
from llm_utils.lm.openai_memoize import MOpenAI
|
|
15
|
-
from llm_utils.llm_ray import LLMRay
|
|
16
16
|
from llm_utils.vector_cache import VectorCache
|
|
17
17
|
|
|
18
18
|
|
|
@@ -37,7 +37,6 @@ from llm_utils.chat_format import (
|
|
|
37
37
|
format_msgs,
|
|
38
38
|
get_conversation_one_turn,
|
|
39
39
|
show_chat,
|
|
40
|
-
show_chat_v2,
|
|
41
40
|
show_string_diff,
|
|
42
41
|
transform_messages,
|
|
43
42
|
transform_messages_to_chatml,
|
|
@@ -54,7 +53,6 @@ __all__ = [
|
|
|
54
53
|
"build_chatml_input",
|
|
55
54
|
"format_msgs",
|
|
56
55
|
"display_chat_messages_as_html",
|
|
57
|
-
"show_chat_v2",
|
|
58
56
|
"AsyncLM",
|
|
59
57
|
"AsyncLLMTask",
|
|
60
58
|
"LLM",
|
|
@@ -4,7 +4,6 @@ from .display import (
|
|
|
4
4
|
get_conversation_one_turn,
|
|
5
5
|
highlight_diff_chars,
|
|
6
6
|
show_chat,
|
|
7
|
-
show_chat_v2,
|
|
8
7
|
show_string_diff,
|
|
9
8
|
)
|
|
10
9
|
from .transform import (
|
|
@@ -32,5 +31,4 @@ __all__ = [
|
|
|
32
31
|
"show_string_diff",
|
|
33
32
|
"display_conversations",
|
|
34
33
|
"display_chat_messages_as_html",
|
|
35
|
-
"show_chat_v2",
|
|
36
34
|
]
|