guidellm.scheduler.constraints
Constraint system for scheduler behavior control and request processing limits.
Provides flexible constraints for managing scheduler behavior with configurable thresholds based on time, error rates, and request counts. Constraints evaluate scheduler state and individual requests to determine whether processing should continue or stop based on predefined limits. The constraint system enables sophisticated benchmark stopping criteria through composable constraint types.
Constraint
Bases: Protocol
Protocol for constraint evaluation functions that control scheduler behavior.
Defines the interface that all constraint implementations must follow. Constraints are callable objects that evaluate scheduler state and request information to determine whether processing should continue or stop. The protocol enables type checking and runtime validation of constraint implementations while allowing flexible implementation approaches (functions, classes, closures).
Example: :: def my_constraint( state: SchedulerState, request: RequestInfo ) -> SchedulerUpdateAction: if state.processing_requests > 100: return SchedulerUpdateAction(request_queuing="stop") return SchedulerUpdateAction(request_queuing="continue")
Source code in src/guidellm/scheduler/constraints/constraint.py
__call__(state, request)
Evaluate constraint against scheduler state and request information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state with metrics and timing information | required |
request | RequestInfo | Individual request information and metadata | required |
Returns:
| Type | Description |
|---|---|
SchedulerUpdateAction | Action indicating whether to continue or stop scheduler operations |
Source code in src/guidellm/scheduler/constraints/constraint.py
ConstraintArgs
Bases: PydanticClassRegistryMixin['ConstraintArgs']
Base class for constraint configuration arguments.
Uses PydanticClassRegistryMixin to enable polymorphic deserialization based on the kind field. Each registered subclass represents a specific constraint type with its own parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
schema_discriminator | str | Field name for polymorphic deserialization |
Source code in src/guidellm/scheduler/constraints/args.py
constraint_key property
The key to use when inserting into the constraints dict.
Defaults to kind, but subclasses may override if the factory registry key differs from the args kind.
Returns:
| Type | Description |
|---|---|
str | Registry key for this constraint type |
__pydantic_schema_base_type__() classmethod
Return base type for polymorphic validation hierarchy.
Returns:
| Type | Description |
|---|---|
type[ConstraintArgs] | Base ConstraintArgs class for schema validation |
Source code in src/guidellm/scheduler/constraints/args.py
ConstraintInitializer
Bases: Protocol
Protocol for constraint initializer factory functions that create constraints.
Defines the interface for factory objects that create constraint instances from configuration parameters. Constraint initializers enable dynamic constraint creation and configuration, supporting both simple boolean flags and complex parameter dictionaries. The protocol allows type checking while maintaining flexibility for different initialization patterns.
Example: :: class MaxRequestsInitializer: def init(self, max_requests: int): self.max_requests = max_requests
def create_constraint(self) -> Constraint:
def evaluate(state, request):
if state.total_requests >= self.max_requests:
return SchedulerUpdateAction(request_queuing="stop")
return SchedulerUpdateAction(request_queuing="continue")
return evaluate
Source code in src/guidellm/scheduler/constraints/constraint.py
create_constraint(**kwargs)
Create a constraint instance from configuration parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Configuration parameters for constraint creation | {} |
Returns:
| Type | Description |
|---|---|
Constraint | Configured constraint evaluation function |
Source code in src/guidellm/scheduler/constraints/constraint.py
ConstraintsInitializerFactory
Bases: RegistryMixin[ConstraintInitializer]
Registry factory for creating and managing constraint initializers.
Provides centralized access to registered constraint types with support for creating constraints from ConstraintArgs instances or pre-configured initializer instances. Handles constraint resolution and type validation for the scheduler constraint system.
Example: :: from guidellm.scheduler import ConstraintsInitializerFactory
# Register new constraint type
@ConstraintsInitializerFactory.register("new_constraint")
class NewConstraint:
def create_constraint(self, **kwargs) -> Constraint:
return lambda state, request: SchedulerUpdateAction()
# Create and use constraint
args = NewConstraintArgs(kind="new_constraint")
initializer = ConstraintsInitializerFactory.create(args)
constraint = initializer.create_constraint()
Source code in src/guidellm/scheduler/constraints/factory.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |
create(args) classmethod
Create a constraint initializer from a ConstraintArgs instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args | ConstraintArgs | Validated constraint arguments with kind discriminator | required |
Returns:
| Type | Description |
|---|---|
ConstraintInitializer | Configured constraint initializer instance |
Raises:
| Type | Description |
|---|---|
ValueError | If args.kind is not registered in the factory |
Source code in src/guidellm/scheduler/constraints/factory.py
deserialize(initializer_dict) classmethod
Deserialize constraint initializer from dictionary format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initializer_dict | dict[str, Any] | Dictionary representation of constraint initializer | required |
Returns:
| Type | Description |
|---|---|
SerializableConstraintInitializer | UnserializableConstraintInitializer | Reconstructed constraint initializer instance |
Raises:
| Type | Description |
|---|---|
ValueError | If constraint type is unknown or cannot be deserialized |
Source code in src/guidellm/scheduler/constraints/factory.py
resolve(initializers) classmethod
Resolve constraint initializers to callable constraints.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initializers | dict[str, Constraint | ConstraintInitializer] | Dictionary mapping constraint keys to specifications. Values must be Constraint instances or ConstraintInitializer instances. | required |
Returns:
| Type | Description |
|---|---|
dict[str, Constraint] | Dictionary mapping constraint keys to callable functions |
Raises:
| Type | Description |
|---|---|
TypeError | If a value is not a supported type |
Source code in src/guidellm/scheduler/constraints/factory.py
MaxDurationConstraint
Bases: PydanticConstraintInitializer
Constraint that limits execution based on maximum time duration.
Stops both request queuing and processing when the elapsed time since scheduler start exceeds the maximum duration. Provides progress tracking based on remaining time and completion fraction.
Source code in src/guidellm/scheduler/constraints/request.py
__call__(state, request_info)
Evaluate constraint against current scheduler state and elapsed time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state with start time | required |
request_info | RequestInfo | Individual request information (unused) | required |
Returns:
| Type | Description |
|---|---|
SchedulerUpdateAction | Action indicating whether to continue or stop operations |
Source code in src/guidellm/scheduler/constraints/request.py
create_constraint(**_kwargs)
Return self as the constraint instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments (unused) | required |
Returns:
| Type | Description |
|---|---|
Constraint | Self instance as the constraint |
Source code in src/guidellm/scheduler/constraints/request.py
MaxDurationConstraintArgs
Bases: ConstraintArgs
Arguments for maximum duration constraint.
Limits benchmark execution time per strategy.
Attributes:
| Name | Type | Description |
|---|---|---|
kind | Literal['max_duration'] | Always "max_duration" |
Source code in src/guidellm/scheduler/constraints/request.py
MaxErrorRateConstraint
Bases: PydanticConstraintInitializer
Constraint that limits execution based on sliding window error rate.
Tracks error status of recent requests in a sliding window and stops all processing when the error rate exceeds the threshold. Only applies the constraint after processing enough requests to fill the minimum window size for statistical significance.
Source code in src/guidellm/scheduler/constraints/error.py
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | |
__call__(state, request_info)
Evaluate constraint against sliding window error rate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state with request counts | required |
request_info | RequestInfo | Individual request with completion status | required |
Returns:
| Type | Description |
|---|---|
SchedulerUpdateAction | Action indicating whether to continue or stop operations |
Source code in src/guidellm/scheduler/constraints/error.py
create_constraint(**_kwargs)
Create a new instance of MaxErrorRateConstraint (due to stateful window).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments (unused) | required |
Returns:
| Type | Description |
|---|---|
Constraint | New instance of the constraint |
Source code in src/guidellm/scheduler/constraints/error.py
MaxErrorRateConstraintArgs
Bases: ConstraintArgs
Arguments for maximum error rate constraint (sliding window).
Stops execution when the windowed error rate exceeds the threshold.
Attributes:
| Name | Type | Description |
|---|---|---|
kind | Literal['max_error_rate'] | Always "max_error_rate" |
Source code in src/guidellm/scheduler/constraints/error.py
MaxErrorsConstraint
Bases: PydanticConstraintInitializer
Constraint that limits execution based on absolute error count.
Stops both request queuing and all request processing when the total number of errored requests reaches the maximum threshold. Uses global error tracking across all requests for immediate constraint evaluation.
Source code in src/guidellm/scheduler/constraints/error.py
__call__(state, request_info)
Evaluate constraint against current error count.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state with error counts | required |
request_info | RequestInfo | Individual request information (unused) | required |
Returns:
| Type | Description |
|---|---|
SchedulerUpdateAction | Action indicating whether to continue or stop operations |
Source code in src/guidellm/scheduler/constraints/error.py
create_constraint(**_kwargs)
Return self as the constraint instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments (unused) | required |
Returns:
| Type | Description |
|---|---|
Constraint | Self instance as the constraint |
Source code in src/guidellm/scheduler/constraints/error.py
MaxErrorsConstraintArgs
Bases: ConstraintArgs
Arguments for maximum error count constraint.
Stops execution when total errors reach the threshold.
Attributes:
| Name | Type | Description |
|---|---|---|
kind | Literal['max_errors'] | Always "max_errors" |
Source code in src/guidellm/scheduler/constraints/error.py
MaxGlobalErrorRateConstraint
Bases: PydanticConstraintInitializer
Constraint that limits execution based on global error rate.
Calculates error rate across all processed requests and stops all processing when the rate exceeds the threshold. Only applies the constraint after processing the minimum number of requests to ensure statistical significance for global error rate calculations.
Source code in src/guidellm/scheduler/constraints/error.py
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | |
__call__(state, request_info)
Evaluate constraint against global error rate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state with global request and error counts | required |
request_info | RequestInfo | Individual request information (unused) | required |
Returns:
| Type | Description |
|---|---|
SchedulerUpdateAction | Action indicating whether to continue or stop operations |
Source code in src/guidellm/scheduler/constraints/error.py
create_constraint(**_kwargs)
Return self as the constraint instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments (unused) | required |
Returns:
| Type | Description |
|---|---|
Constraint | Self instance as the constraint |
Source code in src/guidellm/scheduler/constraints/error.py
MaxGlobalErrorRateConstraintArgs
Bases: ConstraintArgs
Arguments for maximum global error rate constraint.
Stops execution when the overall error rate across all requests exceeds the threshold. Only applies after min_processed requests are completed.
Attributes:
| Name | Type | Description |
|---|---|---|
kind | Literal['max_global_error_rate'] | Always "max_global_error_rate" |
Source code in src/guidellm/scheduler/constraints/error.py
MaxNumberConstraint
Bases: PydanticConstraintInitializer
Constraint that limits execution based on maximum request counts.
Stops request queuing when created requests reach the limit and stops local request processing when processed requests reach the limit. Provides progress tracking based on remaining requests and completion fraction.
Source code in src/guidellm/scheduler/constraints/request.py
__call__(state, request_info)
Evaluate constraint against current scheduler state and request count.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state with request counts | required |
request_info | RequestInfo | Individual request information (unused) | required |
Returns:
| Type | Description |
|---|---|
SchedulerUpdateAction | Action indicating whether to continue or stop operations |
Source code in src/guidellm/scheduler/constraints/request.py
create_constraint(**_kwargs)
Return self as the constraint instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments (unused) | required |
Returns:
| Type | Description |
|---|---|
Constraint | Self instance as the constraint |
Source code in src/guidellm/scheduler/constraints/request.py
MaxRequestsConstraintArgs
Bases: ConstraintArgs
Arguments for maximum request count constraint.
Limits the number of requests processed per strategy.
Attributes:
| Name | Type | Description |
|---|---|---|
kind | Literal['max_requests'] | Always "max_requests" |
Source code in src/guidellm/scheduler/constraints/request.py
OverSaturationConstraint
Bases: Constraint
Constraint that detects and stops execution when over-saturation is detected.
This constraint implements the Over-Saturation Detection (OSD) algorithm to identify when a model becomes over-saturated (response rate doesn't keep up with request rate). When over-saturation is detected, the constraint stops request queuing and optionally stops processing of existing requests.
The constraint maintains internal state for tracking concurrent requests and time-to-first-token (TTFT) metrics, using statistical slope detection to identify performance degradation patterns.
Source code in src/guidellm/scheduler/constraints/saturation.py
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 | |
info property
Get current constraint configuration and state information.
Returns:
| Type | Description |
|---|---|
dict[str, Any] | Dictionary containing configuration parameters. |
__call__(state, request_info)
Evaluate constraint against current scheduler state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state. | required |
request_info | RequestInfo | Individual request information. | required |
Returns:
| Type | Description |
|---|---|
SchedulerUpdateAction | Action indicating whether to continue or stop operations. |
Source code in src/guidellm/scheduler/constraints/saturation.py
__init__(minimum_duration=30.0, minimum_ttft=2.5, maximum_window_seconds=120.0, moe_threshold=2.0, maximum_window_ratio=0.75, minimum_window_size=5, confidence=0.95, eps=1e-12, mode='enforce')
Initialize the over-saturation constraint.
Creates a new constraint instance with specified detection parameters. The constraint will track concurrent requests and TTFT metrics, using statistical slope detection to identify when the model becomes over-saturated. All parameters have sensible defaults suitable for most benchmarking scenarios.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
minimum_duration | float | Minimum seconds before checking for over-saturation (default: 30.0) | 30.0 |
minimum_ttft | float | Minimum TTFT threshold in seconds for violation counting (default: 2.5) | 2.5 |
maximum_window_seconds | float | Maximum time window in seconds for data retention (default: 120.0) | 120.0 |
moe_threshold | float | Margin of error threshold for slope detection (default: 2.0) | 2.0 |
maximum_window_ratio | float | Maximum window size as ratio of total requests (default: 0.75) | 0.75 |
minimum_window_size | int | Minimum data points required for slope estimation (default: 5) | 5 |
confidence | float | Statistical confidence level for t-distribution (0-1) (default: 0.95) | 0.95 |
eps | float | Epsilon for numerical stability in calculations (default: 1e-12) | 1e-12 |
mode | Literal['enforce', 'monitor'] | Whether to stop when over-saturation is detected, or only monitor (default: "enforce") | 'enforce' |
Source code in src/guidellm/scheduler/constraints/saturation.py
reset()
Reset all internal state to initial values.
Clears all tracked requests, resets counters, and reinitializes slope checkers. Useful for reusing constraint instances across multiple benchmark runs or resetting state after configuration changes.
Source code in src/guidellm/scheduler/constraints/saturation.py
OverSaturationConstraintArgs
Bases: ConstraintArgs
Arguments for over-saturation detection constraint.
Detects when a model becomes over-saturated using statistical slope analysis of concurrent requests and time-to-first-token metrics.
Attributes:
| Name | Type | Description |
|---|---|---|
kind | Literal['over_saturation'] | Always "over_saturation" |
Source code in src/guidellm/scheduler/constraints/saturation.py
OverSaturationConstraintInitializer
Bases: PydanticConstraintInitializer
Factory for creating OverSaturationConstraint instances from configuration.
Stores an OverSaturationConstraintArgs instance and delegates to OverSaturationConstraint in create_constraint().
Example: ::
from guidellm.scheduler.constraints import OverSaturationConstraintArgs
args = OverSaturationConstraintArgs(mode="enforce", min_seconds=60.0)
initializer = OverSaturationConstraintInitializer(args=args)
constraint = initializer.create_constraint()
Source code in src/guidellm/scheduler/constraints/saturation.py
create_constraint(**_kwargs)
Create an OverSaturationConstraint instance from stored args.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
_kwargs | Additional keyword arguments (unused) | {} |
Returns:
| Type | Description |
|---|---|
Constraint | Configured OverSaturationConstraint instance ready for use |
Source code in src/guidellm/scheduler/constraints/saturation.py
PydanticConstraintInitializer
Bases: StandardBaseModel, ABC, InfoMixin
Abstract base for Pydantic-based constraint initializers.
Provides standardized serialization, validation, and metadata handling for constraint initializers using Pydantic models. Subclasses implement specific constraint creation logic while inheriting validation and persistence support. Integrates with the constraint factory system for dynamic instantiation and configuration management.
Example: :: @ConstraintsInitializerFactory.register("max_duration") class MaxDurationConstraintInitializer(PydanticConstraintInitializer): type_: str = "max_duration" max_seconds: float = Field(description="Maximum duration in seconds")
def create_constraint(self) -> Constraint:
def evaluate(state, request):
if time.time() - state.start_time > self.max_seconds:
return SchedulerUpdateAction(request_queuing="stop")
return SchedulerUpdateAction(request_queuing="continue")
return evaluate
Attributes:
| Name | Type | Description |
|---|---|---|
type_ | str | Type identifier for the constraint initializer |
Source code in src/guidellm/scheduler/constraints/constraint.py
info property
Extract serializable information from this constraint initializer.
Returns:
| Type | Description |
|---|---|
dict[str, Any] | Dictionary containing constraint configuration and metadata |
create_constraint(**kwargs) abstractmethod
Create a constraint instance.
Must be implemented by subclasses to return their specific constraint type with appropriate configuration and validation. The returned constraint should be ready for evaluation against scheduler state and requests.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments (usually unused) | {} |
Returns:
| Type | Description |
|---|---|
Constraint | Configured constraint instance |
Raises:
| Type | Description |
|---|---|
NotImplementedError | Must be implemented by subclasses |
Source code in src/guidellm/scheduler/constraints/constraint.py
RequestsExhaustedConstraint
Bases: StandardBaseModel, InfoMixin
Source code in src/guidellm/scheduler/constraints/request.py
info property
Extract serializable information from this constraint initializer.
Returns:
| Type | Description |
|---|---|
dict[str, Any] | Dictionary containing constraint configuration and metadata |
SerializableConstraintInitializer
Bases: Protocol
Protocol for serializable constraint initializers supporting persistence.
Extends ConstraintInitializer with serialization capabilities, enabling constraint configurations to be saved, loaded, and transmitted. Serializable initializers support validation, model-based configuration, and dictionary-based serialization for integration with configuration systems and persistence layers.
Example: :: class SerializableInitializer: @classmethod def model_validate(cls, data: dict) -> ConstraintInitializer: return cls(**data)
def model_dump(self) -> dict[str, Any]:
return {"type_": "max_requests", "max_requests": self.max_requests}
def create_constraint(self) -> Constraint:
# ... create constraint
Source code in src/guidellm/scheduler/constraints/constraint.py
create_constraint(**kwargs)
Create constraint instance from this initializer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional configuration parameters | {} |
Returns:
| Type | Description |
|---|---|
Constraint | Configured constraint evaluation function |
Source code in src/guidellm/scheduler/constraints/constraint.py
model_dump()
Serialize constraint initializer to dictionary format.
Returns:
| Type | Description |
|---|---|
dict[str, Any] | Dictionary representation of constraint initializer |
model_validate(**kwargs) classmethod
Create validated constraint initializer from configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Configuration dictionary for initializer creation | {} |
Returns:
| Type | Description |
|---|---|
ConstraintInitializer | Validated constraint initializer instance |
Source code in src/guidellm/scheduler/constraints/constraint.py
UnserializableConstraintInitializer
Bases: PydanticConstraintInitializer
Placeholder for constraints that cannot be serialized or executed.
Represents constraint initializers that failed serialization or contain non-serializable components. Cannot be executed and raises errors when invoked to prevent runtime failures from invalid constraint state. Used by the factory system to preserve constraint information even when full serialization is not possible.
Example: :: # Created automatically by factory when serialization fails unserializable = UnserializableConstraintInitializer( orig_info={"type_": "custom", "data": non_serializable_object} )
# Attempting to use it raises RuntimeError
constraint = unserializable.create_constraint() # Raises RuntimeError
Attributes:
| Name | Type | Description |
|---|---|---|
type_ | Literal['unserializable'] | Always "unserializable" to identify placeholder constraints |
orig_info | dict[str, Any] | Original constraint information before serialization failure |
Source code in src/guidellm/scheduler/constraints/constraint.py
__call__(state, request)
Raise error since unserializable constraints cannot be invoked.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state | SchedulerState | Current scheduler state (unused) | required |
request | RequestInfo | Individual request information (unused) | required |
Raises:
| Type | Description |
|---|---|
RuntimeError | Always raised for unserializable constraints |
Source code in src/guidellm/scheduler/constraints/constraint.py
create_constraint(**_kwargs)
Raise error for unserializable constraint creation attempt.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments (unused) | required |
Raises:
| Type | Description |
|---|---|
RuntimeError | Always raised since unserializable constraints cannot be executed |