Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ keywords = [
"inference",
"language-models",
"large-language-model",
"load-generation",
"llm",
"machine-learning",
"model-benchmark",
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/backend/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pydantic import computed_field

from guidellm.config import settings
from guidellm.objects.pydantic import StandardBaseModel
from guidellm.utils import StandardBaseModel

__all__ = [
"RequestArgs",
Expand Down
14 changes: 7 additions & 7 deletions src/guidellm/benchmark/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
GenerativeTextResponseStats,
)
from guidellm.config import settings
from guidellm.objects import (
RunningStats,
StandardBaseModel,
StatusBreakdown,
TimeRunningStats,
)
from guidellm.request import (
GenerationRequest,
GenerativeRequestLoaderDescription,
Expand All @@ -40,7 +34,13 @@
SchedulerRequestResult,
WorkerDescription,
)
from guidellm.utils import check_load_processor
from guidellm.utils import (
RunningStats,
StandardBaseModel,
StatusBreakdown,
TimeRunningStats,
check_load_processor,
)

__all__ = [
"AggregatorT",
Expand Down
10 changes: 5 additions & 5 deletions src/guidellm/benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
SynchronousProfile,
ThroughputProfile,
)
from guidellm.objects import (
StandardBaseModel,
StatusBreakdown,
StatusDistributionSummary,
)
from guidellm.request import (
GenerativeRequestLoaderDescription,
RequestLoaderDescription,
Expand All @@ -32,6 +27,11 @@
ThroughputStrategy,
WorkerDescription,
)
from guidellm.utils import (
StandardBaseModel,
StatusBreakdown,
StatusDistributionSummary,
)

__all__ = [
"Benchmark",
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/benchmark/benchmarker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
)
from guidellm.benchmark.benchmark import BenchmarkArgs, GenerativeBenchmark
from guidellm.benchmark.profile import Profile
from guidellm.objects import StandardBaseModel
from guidellm.request import (
GenerationRequest,
GenerativeRequestLoaderDescription,
Expand All @@ -37,6 +36,7 @@
SchedulerRequestResult,
SchedulingStrategy,
)
from guidellm.utils import StandardBaseModel

__all__ = ["Benchmarker", "BenchmarkerResult", "GenerativeBenchmarker"]

Expand Down
11 changes: 6 additions & 5 deletions src/guidellm/benchmark/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@
ThroughputProfile,
)
from guidellm.config import settings
from guidellm.objects import (
from guidellm.presentation import UIDataBuilder
from guidellm.presentation.injector import create_report
from guidellm.scheduler import strategy_display_str
from guidellm.utils import (
Colors,
DistributionSummary,
StandardBaseModel,
StatusDistributionSummary,
split_text_list_by_length,
)
from guidellm.presentation import UIDataBuilder
from guidellm.presentation.injector import create_report
from guidellm.scheduler import strategy_display_str
from guidellm.utils import Colors, split_text_list_by_length

__all__ = [
"GenerativeBenchmarksConsole",
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/benchmark/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from pydantic import Field, computed_field

from guidellm.config import settings
from guidellm.objects import StandardBaseModel
from guidellm.scheduler import (
AsyncConstantStrategy,
AsyncPoissonStrategy,
Expand All @@ -15,6 +14,7 @@
SynchronousStrategy,
ThroughputStrategy,
)
from guidellm.utils import StandardBaseModel

__all__ = [
"AsyncProfile",
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/benchmark/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

from guidellm.backend.backend import BackendType
from guidellm.benchmark.profile import ProfileType
from guidellm.objects.pydantic import StandardBaseModel
from guidellm.scheduler.strategy import StrategyType
from guidellm.utils import StandardBaseModel

__ALL__ = ["Scenario", "GenerativeTextScenario", "get_builtin_scenarios"]

Expand Down
18 changes: 0 additions & 18 deletions src/guidellm/objects/__init__.py

This file was deleted.

89 changes: 0 additions & 89 deletions src/guidellm/objects/pydantic.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/guidellm/presentation/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if TYPE_CHECKING:
from guidellm.benchmark.benchmark import GenerativeBenchmark

from guidellm.objects.statistics import DistributionSummary
from guidellm.utils.statistics import DistributionSummary


class Bucket(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/request/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

from guidellm.config import settings
from guidellm.dataset import ColumnInputTypes, load_dataset
from guidellm.objects import StandardBaseModel
from guidellm.request.request import GenerationRequest
from guidellm.utils import StandardBaseModel

__all__ = [
"GenerativeRequestLoader",
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/request/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pydantic import Field

from guidellm.objects.pydantic import StandardBaseModel
from guidellm.utils import StandardBaseModel

__all__ = ["GenerationRequest"]

Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/scheduler/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Optional,
)

from guidellm.objects import StandardBaseModel
from guidellm.scheduler.strategy import SchedulingStrategy
from guidellm.scheduler.types import RequestT, ResponseT
from guidellm.utils import StandardBaseModel

__all__ = [
"SchedulerRequestInfo",
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/scheduler/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from pydantic import Field

from guidellm.config import settings
from guidellm.objects import StandardBaseModel
from guidellm.utils import StandardBaseModel

__all__ = [
"AsyncConstantStrategy",
Expand Down
2 changes: 1 addition & 1 deletion src/guidellm/scheduler/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
ResponseSummary,
StreamingTextResponse,
)
from guidellm.objects import StandardBaseModel
from guidellm.request import GenerationRequest
from guidellm.scheduler.result import SchedulerRequestInfo
from guidellm.scheduler.types import RequestT, ResponseT
from guidellm.utils import StandardBaseModel

__all__ = [
"GenerativeRequestsWorker",
Expand Down
49 changes: 47 additions & 2 deletions src/guidellm/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,79 @@
from .auto_importer import AutoImporterMixin
from .colors import Colors
from .default_group import DefaultGroupHandler
from .functions import (
all_defined,
safe_add,
safe_divide,
safe_format_timestamp,
safe_getattr,
safe_multiply,
)
from .hf_datasets import (
SUPPORTED_TYPES,
save_dataset_to_file,
)
from .hf_transformers import (
check_load_processor,
)
from .pydantic_utils import (
PydanticClassRegistryMixin,
ReloadableBaseModel,
StandardBaseDict,
StandardBaseModel,
StatusBreakdown,
)
from .random import IntegerRangeSampler
from .registry import RegistryMixin
from .singleton import SingletonMixin, ThreadSafeSingletonMixin
from .statistics import (
DistributionSummary,
Percentiles,
RunningStats,
StatusDistributionSummary,
TimeRunningStats,
)
from .text import (
EndlessTextCreator,
clean_text,
filter_text,
is_puncutation,
is_punctuation,
load_text,
split_text,
split_text_list_by_length,
)

__all__ = [
"SUPPORTED_TYPES",
"AutoImporterMixin",
"Colors",
"DefaultGroupHandler",
"DistributionSummary",
"EndlessTextCreator",
"IntegerRangeSampler",
"Percentiles",
"PydanticClassRegistryMixin",
"RegistryMixin",
"ReloadableBaseModel",
"RunningStats",
"SingletonMixin",
"StandardBaseDict",
"StandardBaseModel",
"StatusBreakdown",
"StatusDistributionSummary",
"ThreadSafeSingletonMixin",
"TimeRunningStats",
"all_defined",
"check_load_processor",
"clean_text",
"filter_text",
"is_puncutation",
"is_punctuation",
"load_text",
"safe_add",
"safe_divide",
"safe_format_timestamp",
"safe_getattr",
"safe_multiply",
"save_dataset_to_file",
"split_text",
"split_text_list_by_length",
Expand Down
Loading