Skip to content

Refactor of the Scheduler package to enable or setup for: distributed benchmarks, multi-turn requests, advanced stopping criteria, large concurrency, multi modality, evaluations #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
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
Empty file added example_usage.py
Empty file.
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,16 @@ indent-style = "space"

[tool.ruff.lint]
ignore = [
"PLR0913",
"TC001",
"COM812",
"ISC001",
"TC002",
"COM812", # ignore trailing comma errors due to older Python versions
"PD011", # ignore .values usage since ruff assumes it's a Pandas DataFrame
"PLR0913", # ignore too many arguments in function definitions
"PLW1514", # allow Path.open without encoding
"RET505", # allow `else` blocks
"RET506", # allow `else` blocks
"PD011", # ignore .values usage since ruff assumes it's a Pandas DataFrame
"S311", # allow standard pseudo-random generators
"TC001", # ignore imports used only for type checking
"TC002", # ignore imports used only for type checking
"TC003", # ignore imports used only for type checking
]
select = [
# Rules reference: https://docs.astral.sh/ruff/rules/
Expand Down
27 changes: 14 additions & 13 deletions src/guidellm/backend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
"""
Backend infrastructure for GuideLLM language model interactions.

Provides abstract base classes, implemented backends, request/response objects,
and timing utilities for standardized communication with LLM providers.
"""

from .backend import (
Backend,
BackendType,
)
from .openai import CHAT_COMPLETIONS_PATH, TEXT_COMPLETIONS_PATH, OpenAIHTTPBackend
from .response import (
RequestArgs,
ResponseSummary,
StreamingResponseType,
StreamingTextResponse,
from .objects import (
GenerationRequest,
GenerationRequestTimings,
GenerationResponse,
)

__all__ = [
"CHAT_COMPLETIONS_PATH",
"TEXT_COMPLETIONS_PATH",
"Backend",
"BackendType",
"OpenAIHTTPBackend",
"RequestArgs",
"ResponseSummary",
"StreamingResponseType",
"StreamingTextResponse",
"GenerationRequest",
"GenerationRequestTimings",
"GenerationResponse",
]
Loading
Loading