Skip to content

Commit 6f7ca9f

Browse files
committed
Scheduler refactor [utils]: multiprocessing encoding and messaging
commit ea1e25d Author: Mark Kurtz <[email protected]> Date: Wed Aug 27 02:35:58 2025 +0000 update doc strings for clarifications in encoding.py commit fe76616 Author: Mark Kurtz <[email protected]> Date: Wed Aug 27 02:31:06 2025 +0000 Updates from review and requirements for worker integration commit b08e52a Author: Mark Kurtz <[email protected]> Date: Tue Aug 26 22:19:46 2025 -0400 Update src/guidellm/utils/encoding.py Co-authored-by: Samuel Monson <[email protected]> Signed-off-by: Mark Kurtz <[email protected]> commit cff8d91 Author: Mark Kurtz <[email protected]> Date: Tue Aug 26 17:52:18 2025 +0000 Fix styling issues commit 275f123 Author: Mark Kurtz <[email protected]> Date: Tue Aug 26 13:44:33 2025 -0400 Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> Signed-off-by: Mark Kurtz <[email protected]> commit 77573a8 Author: Mark Kurtz <[email protected]> Date: Tue Aug 26 16:21:47 2025 +0000 fix improper name update commit 3629fd0 Author: Mark Kurtz <[email protected]> Date: Tue Aug 26 16:00:46 2025 +0000 Add multiprocessing utils for encoding and messaging commit 3e048e8 Author: Mark Kurtz <[email protected]> Date: Thu Aug 21 01:49:43 2025 +0000 minor fixes and updates commit 163e6e3 Author: Mark Kurtz <[email protected]> Date: Thu Aug 21 01:29:34 2025 +0000 Implementation and tests for the next utils package modules iteration for the scheduler refactor commit acf0646 Author: Mark Kurtz <[email protected]> Date: Wed Aug 20 19:01:42 2025 -0400 Update tests/unit/utils/test_registry.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Mark Kurtz <[email protected]> commit e3a1c48 Author: Mark Kurtz <[email protected]> Date: Wed Aug 20 22:29:31 2025 +0000 Implementation and tests for the core utils packages for the scheduler refactor
1 parent 3db57b0 commit 6f7ca9f

File tree

8 files changed

+3503
-8
lines changed

8 files changed

+3503
-8
lines changed

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ keywords = [
4848
]
4949
dependencies = [
5050
"click>=8.0.0,<8.2.0",
51+
"culsans~=0.9.0",
5152
"datasets",
5253
"ftfy>=6.0.0",
5354
"httpx[http2]<1.0.0",
@@ -157,15 +158,16 @@ indent-style = "space"
157158

158159
[tool.ruff.lint]
159160
ignore = [
160-
"PLR0913",
161-
"TC001",
162-
"COM812",
163-
"ISC001",
164-
"TC002",
161+
"COM812", # ignore trailing comma errors due to older Python versions
162+
"PD011", # ignore .values usage since ruff assumes it's a Pandas DataFrame
163+
"PLR0913", # ignore too many arguments in function definitions
165164
"PLW1514", # allow Path.open without encoding
166165
"RET505", # allow `else` blocks
167166
"RET506", # allow `else` blocks
168-
"PD011", # ignore .values usage since ruff assumes it's a Pandas DataFrame
167+
"S311", # allow standard pseudo-random generators
168+
"TC001", # ignore imports used only for type checking
169+
"TC002", # ignore imports used only for type checking
170+
"TC003", # ignore imports used only for type checking
169171
]
170172
select = [
171173
# Rules reference: https://docs.astral.sh/ruff/rules/

src/guidellm/utils/__init__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
from .auto_importer import AutoImporterMixin
22
from .colors import Colors
33
from .default_group import DefaultGroupHandler
4+
from .encoding import (
5+
Encoder,
6+
EncodingTypesAlias,
7+
MessageEncoding,
8+
SerializationTypesAlias,
9+
Serializer,
10+
)
411
from .functions import (
512
all_defined,
613
safe_add,
@@ -16,6 +23,12 @@
1623
from .hf_transformers import (
1724
check_load_processor,
1825
)
26+
from .messaging import (
27+
InterProcessMessaging,
28+
InterProcessMessagingManagerQueue,
29+
InterProcessMessagingPipe,
30+
InterProcessMessagingQueue,
31+
)
1932
from .pydantic_utils import (
2033
PydanticClassRegistryMixin,
2134
ReloadableBaseModel,
@@ -49,13 +62,22 @@
4962
"Colors",
5063
"DefaultGroupHandler",
5164
"DistributionSummary",
65+
"Encoder",
66+
"EncodingTypesAlias",
5267
"EndlessTextCreator",
5368
"IntegerRangeSampler",
69+
"InterProcessMessaging",
70+
"InterProcessMessagingManagerQueue",
71+
"InterProcessMessagingPipe",
72+
"InterProcessMessagingQueue",
73+
"MessageEncoding",
5474
"Percentiles",
5575
"PydanticClassRegistryMixin",
5676
"RegistryMixin",
5777
"ReloadableBaseModel",
5878
"RunningStats",
79+
"SerializationTypesAlias",
80+
"Serializer",
5981
"SingletonMixin",
6082
"StandardBaseDict",
6183
"StandardBaseModel",

0 commit comments

Comments
 (0)