-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Plug in warmup phase #305
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
base: main
Are you sure you want to change the base?
Changes from all commits
06a9237
56258be
4d1c89e
1143d64
c9e80b0
b95cfc1
5005648
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -392,6 +392,30 @@ def _validate_completeness(self) -> Self: | |
| return self | ||
|
|
||
|
|
||
| class WarmupConfig(BaseModel): | ||
| """Warmup phase configuration. Runs before the performance phase; results are not recorded.""" | ||
|
|
||
| model_config = ConfigDict(extra="forbid", frozen=True) | ||
|
|
||
| enabled: bool = Field( | ||
| False, description="Enable warmup phase before performance run" | ||
| ) | ||
| n_requests: int | None = Field( | ||
| None, gt=0, description="Warmup request count (None = full dataset once)" | ||
| ) | ||
| salt: bool = Field( | ||
| False, description="Prepend a unique random hex salt to each warmup prompt" | ||
| ) | ||
| drain: bool = Field( | ||
| False, | ||
| description="Drain in-flight warmup requests before starting the performance phase", | ||
| ) | ||
| warmup_random_seed: int = Field( | ||
| 42, | ||
| description="RNG seed for warmup scheduling and sample ordering", | ||
| ) | ||
|
|
||
|
|
||
| @cyclopts.Parameter(name="*") | ||
| class Settings(BaseModel): | ||
| """Test settings.""" | ||
|
|
@@ -401,6 +425,7 @@ class Settings(BaseModel): | |
| runtime: RuntimeConfig = Field(default_factory=RuntimeConfig) | ||
| load_pattern: LoadPattern = Field(default_factory=LoadPattern) | ||
| client: HTTPClientConfig = Field(default_factory=HTTPClientConfig) | ||
| warmup: WarmupConfig = Field(default_factory=WarmupConfig) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Review Council — Claude] low · api-contract
|
||
|
|
||
|
|
||
| class OfflineSettings(Settings): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.