guidellm 0.3.0rc20250429__py3-none-any.whl → 0.3.0rc20250507__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.
Potentially problematic release.
This version of guidellm might be problematic. Click here for more details.
- guidellm/utils/text.py +2 -10
- {guidellm-0.3.0rc20250429.dist-info → guidellm-0.3.0rc20250507.dist-info}/METADATA +1 -3
- {guidellm-0.3.0rc20250429.dist-info → guidellm-0.3.0rc20250507.dist-info}/RECORD +7 -7
- {guidellm-0.3.0rc20250429.dist-info → guidellm-0.3.0rc20250507.dist-info}/WHEEL +1 -1
- {guidellm-0.3.0rc20250429.dist-info → guidellm-0.3.0rc20250507.dist-info}/entry_points.txt +0 -0
- {guidellm-0.3.0rc20250429.dist-info → guidellm-0.3.0rc20250507.dist-info}/licenses/LICENSE +0 -0
- {guidellm-0.3.0rc20250429.dist-info → guidellm-0.3.0rc20250507.dist-info}/top_level.txt +0 -0
guidellm/utils/text.py
CHANGED
|
@@ -115,19 +115,11 @@ def clean_text(text: str) -> str:
|
|
|
115
115
|
return re.sub(r"\s+", " ", ftfy.fix_text(text)).strip()
|
|
116
116
|
|
|
117
117
|
|
|
118
|
-
def split_text(
|
|
119
|
-
text: str, split_punctuation: bool = False, split_whitespace: bool = False
|
|
120
|
-
) -> list[str]:
|
|
118
|
+
def split_text(text: str, split_punctuation: bool = False) -> list[str]:
|
|
121
119
|
text = clean_text(text)
|
|
122
120
|
|
|
123
|
-
if split_punctuation and split_whitespace:
|
|
124
|
-
return re.findall(r"\w+|\s+|[^\w\s]", text)
|
|
125
|
-
|
|
126
121
|
if split_punctuation:
|
|
127
|
-
return re.findall(r"\w+|[
|
|
128
|
-
|
|
129
|
-
if split_whitespace:
|
|
130
|
-
return re.findall(r"\S+|\s+", text)
|
|
122
|
+
return re.findall(r"[\w]+|[.,!?;]", text)
|
|
131
123
|
|
|
132
124
|
return text.split()
|
|
133
125
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: guidellm
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.0rc20250507
|
|
4
4
|
Summary: Guidance platform for deploying and managing large language models.
|
|
5
5
|
Author: Neuralmagic, Inc.
|
|
6
6
|
License: Apache License
|
|
@@ -228,7 +228,6 @@ Requires-Dist: pre-commit~=3.5.0; extra == "dev"
|
|
|
228
228
|
Requires-Dist: scipy~=1.10; extra == "dev"
|
|
229
229
|
Requires-Dist: sphinx~=7.1.2; extra == "dev"
|
|
230
230
|
Requires-Dist: tox~=4.16.0; extra == "dev"
|
|
231
|
-
Requires-Dist: fastapi; extra == "dev"
|
|
232
231
|
Requires-Dist: lorem~=0.1.1; extra == "dev"
|
|
233
232
|
Requires-Dist: pytest~=8.2.2; extra == "dev"
|
|
234
233
|
Requires-Dist: pytest-asyncio~=0.23.8; extra == "dev"
|
|
@@ -237,7 +236,6 @@ Requires-Dist: pytest-mock~=3.14.0; extra == "dev"
|
|
|
237
236
|
Requires-Dist: pytest-rerunfailures~=14.0; extra == "dev"
|
|
238
237
|
Requires-Dist: requests-mock~=1.12.1; extra == "dev"
|
|
239
238
|
Requires-Dist: respx~=0.22.0; extra == "dev"
|
|
240
|
-
Requires-Dist: uvicorn; extra == "dev"
|
|
241
239
|
Requires-Dist: mypy~=1.10.1; extra == "dev"
|
|
242
240
|
Requires-Dist: ruff~=0.5.2; extra == "dev"
|
|
243
241
|
Requires-Dist: mdformat~=0.7.17; extra == "dev"
|
|
@@ -39,10 +39,10 @@ guidellm/utils/__init__.py,sha256=Tg4HT5RiXSnQ48E-NuJJf0-fwyvqo5sgk7yFSc8WZ78,52
|
|
|
39
39
|
guidellm/utils/colors.py,sha256=D0IGz8A346-Pt5qgnP3S5uV-VgngJoXbfToVCOna41k,175
|
|
40
40
|
guidellm/utils/hf_transformers.py,sha256=3iF40l02VEWOcS8kasO8TSws0Lp3cE-NyiqoB9GnHuA,1021
|
|
41
41
|
guidellm/utils/random.py,sha256=Ub7cI8J0ZfTkjO_x98KHvVKYs_jUlgmjRp67p-lhY5c,1314
|
|
42
|
-
guidellm/utils/text.py,sha256=
|
|
43
|
-
guidellm-0.3.
|
|
44
|
-
guidellm-0.3.
|
|
45
|
-
guidellm-0.3.
|
|
46
|
-
guidellm-0.3.
|
|
47
|
-
guidellm-0.3.
|
|
48
|
-
guidellm-0.3.
|
|
42
|
+
guidellm/utils/text.py,sha256=8ei6_Sj_rPRV6lW7yivV9UwgXPzRtNMxNkJ8m0e8RX0,6347
|
|
43
|
+
guidellm-0.3.0rc20250507.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
44
|
+
guidellm-0.3.0rc20250507.dist-info/METADATA,sha256=xP4wwhMb8gg5X4ZAOqSaF8i_9kM1NKiYKLGG9XTaV7I,30335
|
|
45
|
+
guidellm-0.3.0rc20250507.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
46
|
+
guidellm-0.3.0rc20250507.dist-info/entry_points.txt,sha256=DzLFEg47fF7qY1b-9laPz9jg0KSKJ1_D9TbF93kLz_E,51
|
|
47
|
+
guidellm-0.3.0rc20250507.dist-info/top_level.txt,sha256=EXRGjnvFtL6MeZTe0tnHRMYcEWUW3vEqoG2zO7vFOtk,9
|
|
48
|
+
guidellm-0.3.0rc20250507.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|