Skip to content

Commit 38aff11

Browse files
committed
fixes after rebasing
1 parent 1af3a45 commit 38aff11

File tree

11 files changed

+9
-20
lines changed

11 files changed

+9
-20
lines changed

src/guidellm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
hf_logging.set_verbosity_error()
2121
logging.getLogger("transformers").setLevel(logging.ERROR)
2222

23+
from .logger import configure_logger, logger
2324
from .settings import (
2425
DatasetSettings,
2526
Environment,
@@ -30,7 +31,6 @@
3031
reload_settings,
3132
settings,
3233
)
33-
from .logger import configure_logger, logger
3434

3535
__all__ = [
3636
"DatasetSettings",

src/guidellm/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
)
1414
from guidellm.benchmark.entrypoints import benchmark_with_scenario
1515
from guidellm.benchmark.scenario import GenerativeTextScenario, get_builtin_scenarios
16-
from guidellm.settings import print_config
1716
from guidellm.preprocess.dataset import ShortPromptStrategy, process_dataset
1817
from guidellm.scheduler import StrategyType
18+
from guidellm.settings import print_config
1919
from guidellm.utils import DefaultGroupHandler
2020
from guidellm.utils import cli as cli_tools
2121

src/guidellm/benchmark/aggregator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
GenerativeTextErrorStats,
2222
GenerativeTextResponseStats,
2323
)
24-
from guidellm.settings import settings
2524
from guidellm.request import (
2625
GenerationRequest,
2726
GenerativeRequestLoaderDescription,
@@ -34,6 +33,7 @@
3433
SchedulerRequestResult,
3534
WorkerDescription,
3635
)
36+
from guidellm.settings import settings
3737
from guidellm.utils import (
3838
RunningStats,
3939
StandardBaseModel,

src/guidellm/benchmark/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
SweepProfile,
2121
ThroughputProfile,
2222
)
23-
from guidellm.settings import settings
2423
from guidellm.presentation import UIDataBuilder
2524
from guidellm.presentation.injector import create_report
2625
from guidellm.scheduler import strategy_display_str
26+
from guidellm.settings import settings
2727
from guidellm.utils import (
2828
Colors,
2929
DistributionSummary,

src/guidellm/benchmark/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import numpy as np
55
from pydantic import Field, computed_field
66

7-
from guidellm.settings import settings
87
from guidellm.scheduler import (
98
AsyncConstantStrategy,
109
AsyncPoissonStrategy,
@@ -14,6 +13,7 @@
1413
SynchronousStrategy,
1514
ThroughputStrategy,
1615
)
16+
from guidellm.settings import settings
1717
from guidellm.utils import StandardBaseModel
1818

1919
__all__ = [

src/guidellm/request/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
from datasets import Dataset, DatasetDict, IterableDataset, IterableDatasetDict
1212
from transformers import PreTrainedTokenizerBase # type: ignore[import]
1313

14-
from guidellm.settings import settings
1514
from guidellm.dataset import ColumnInputTypes, load_dataset
1615
from guidellm.request.request import GenerationRequest
16+
from guidellm.settings import settings
1717
from guidellm.utils import StandardBaseModel
1818

1919
__all__ = [

src/guidellm/scheduler/constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
from pydantic import Field, field_validator
1818

19-
from guidellm.settings import settings
2019
from guidellm.scheduler.objects import (
2120
ScheduledRequestInfo,
2221
SchedulerState,
2322
SchedulerUpdateAction,
2423
SchedulerUpdateActionProgress,
2524
)
25+
from guidellm.settings import settings
2626
from guidellm.utils import InfoMixin, RegistryMixin, StandardBaseModel
2727

2828
__all__ = [

src/guidellm/scheduler/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
from loguru import logger
1515

16-
from guidellm.settings import settings
1716
from guidellm.scheduler.objects import RequestT, ResponseT
1817
from guidellm.scheduler.strategy import SchedulingStrategy
1918
from guidellm.scheduler.worker import (
2019
RequestsWorker,
2120
WorkerProcessRequest,
2221
WorkerProcessResult,
2322
)
23+
from guidellm.settings import settings
2424
from guidellm.utils import StandardBaseDict
2525

2626
__all__ = ["Scheduler"]

src/guidellm/utils/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@
8080
"RunningStats",
8181
"SerializationTypesAlias",
8282
"Serializer",
83-
"EndlessTextCreator",
84-
"IntegerRangeSampler",
85-
"Percentiles",
86-
"PydanticClassRegistryMixin",
87-
"RegistryMixin",
88-
"ReloadableBaseModel",
89-
"RunningStats",
9083
"SingletonMixin",
9184
"StandardBaseDict",
9285
"StandardBaseModel",
@@ -95,9 +88,6 @@
9588
"ThreadSafeSingletonMixin",
9689
"TimeRunningStats",
9790
"all_defined",
98-
"ThreadSafeSingletonMixin",
99-
"TimeRunningStats",
100-
"all_defined",
10191
"check_load_processor",
10292
"clean_text",
10393
"filter_text",

tests/unit/presentation/test_injector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import pytest
44
from pydantic import BaseModel
55

6-
from guidellm.settings import settings
76
from guidellm.presentation.injector import create_report, inject_data
7+
from guidellm.settings import settings
88

99

1010
class ExampleModel(BaseModel):

0 commit comments

Comments
 (0)