You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2a4e153
Browse filesBrowse the repository at this point in the historyBrowse files
Fix references left behind by the consolidation: renamed drain knob in
session.py docstring, argv-vs-schema 0-sentinel wording in the aggregator
snapshot/help text, config module pointers after the schema split, the
from-config flag surface in CLI_QUICK_REFERENCE, regenerate-templates
trigger lists, the config DESIGN nested-model table, and the compliance
plan's duration-floor note. schema.py re-exports HTTPClientConfig again.
Copy file name to clipboardExpand all lines: AGENTS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ The aggregator is a separate process (`python -m inference_endpoint.async_utils.
128
128
CLI is auto-generated from `config/schema.py` Pydantic models via cyclopts. Fields annotated with `cyclopts.Parameter(alias="--flag")` get flat shorthands; all other fields get auto-generated dotted flags (kebab-case).
129
129
130
130
-**CLI mode** (`offline`/`online`): cyclopts constructs `OfflineBenchmarkConfig`/`OnlineBenchmarkConfig` (subclasses in `config/schema.py`) directly from CLI args. Type locked via `Literal`. `--dataset` is repeatable with TOML-style format `[perf|acc:]<path>[,key=value...]` (e.g. `--dataset data.csv,samples=500,parser.prompt=article`). Full accuracy support via `accuracy_config.eval_method=pass_at_1` etc.
131
-
-**YAML mode** (`from-config`): `BenchmarkConfig.from_yaml_file()` loads YAML, resolves env vars, and auto-selects the right subclass via Pydantic discriminated union. Optional `--timeout`(maps to `settings.timeouts.run_timeout_s`)/`--mode`overrides via `config.with_updates()`.
131
+
-**YAML mode** (`from-config`): `BenchmarkConfig.from_yaml_file()` loads YAML, resolves env vars, and auto-selects the right subclass via Pydantic discriminated union. Optional `--timeout`override maps to `settings.timeouts.run_timeout_s` via `config.with_updates()`; `--mode`selects the `TestMode` passed to the runner.
132
132
-**eval**: Not yet implemented (raises `CLIError` with a tracking issue link)
133
133
134
134
### Config Construction & Validation
@@ -315,7 +315,7 @@ All of these run automatically on commit:
315
315
-`mypy` type checking
316
316
-`prettier` for YAML/JSON/Markdown
317
317
- License header enforcement
318
-
-`regenerate-templates`: auto-regenerates YAML config templates from schema defaults when `schema.py`, `config.py`, or `regenerate_templates.py`change
318
+
-`regenerate-templates`: auto-regenerates YAML config templates from schema defaults when any config schema module (`schema|audit|model_params|datasets|settings|timeouts`.py), `endpoint_client/config.py`, or `regenerate_templates.py`changes
319
319
320
320
**IMPORTANT: Always run `pre-commit run --all-files` before every commit.** Hooks may modify files (prettier, ruff-format, license headers). If files are modified, stage the changes and commit once. Never commit without running pre-commit first.
3.**Optional CLI overrides.**`--timeout`and `--mode` applied via `config.with_updates(...)`which re-runs validators.
70
+
3.**Optional CLI overrides.**`--timeout`maps into `settings.timeouts.run_timeout_s`via `with_updates(...)`(re-runs validators); `--mode` selects the `TestMode` passed to the runner and never touches the config object.
does not expose a CLI override for `report_dir`. Set it in the YAML only if you need to control
107
-
the output location; otherwise a default report directory is used.
105
+
Note: `benchmark from-config` also accepts `--report-dir` as an override of the YAML value;
106
+
when neither is set a default report directory is used.
108
107
-`--timeout` - Whole-run watchdog in seconds (off by default). If it fires, the run is aborted, the report is marked INTERRUPTED, and the process exits non-zero.
109
108
-`--enable-cpu-affinity / --no-cpu-affinity` - NUMA-aware CPU pinning (default: true)
110
109
-`--no-early-stopping` - opt out of the MLPerf early-stopping percentile estimates in `result_summary.json` (default: on; see [early_stopping.md](early_stopping.md))
Copy file name to clipboardExpand all lines: docs/DEVELOPMENT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@ docs/short-description
198
198
199
199
## YAML Config Templates
200
200
201
-
Config templates in `src/inference_endpoint/config/templates/` are auto-generated from schema defaults. When you change `config/schema.py`, regenerate them:
201
+
Config templates in `src/inference_endpoint/config/templates/` are auto-generated from schema defaults. When you change any config schema module (`config/schema.py` and its sibling domain modules), regenerate them:
0 commit comments