Skip to content

Commit a4f60ac

Browse files
committed
add computed field back into data_models (this will fail the CI checks, need to find better solution)
1 parent 4e05b16 commit a4f60ac

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,13 @@ npm run build
185185
npm run serve
186186
```
187187

188-
This will start a local server (e.g., at http://localhost:3000). Then, in your GuideLLM config or CLI flags, point to this local server as the asset base for report generation. You can set the Environment to LOCAL before running your benchmarks to accomplish this.
188+
This will start a local server (e.g., at http://localhost:3000). Then set the Environment to LOCAL before running your benchmarks.
189+
190+
```bash
191+
export GUIDELLM__ENV=local
192+
193+
Alternatively, in config.py update the ENV_REPORT_MAPPING used as the asset base for report generation to the LOCAL option.
194+
```
189195

190196
## Resources
191197

src/guidellm/presentation/data_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from math import ceil
44
from typing import TYPE_CHECKING, Optional, Union
55

6-
from pydantic import BaseModel
6+
from pydantic import BaseModel, computed_field
77

88
if TYPE_CHECKING:
99
from guidellm.benchmark.benchmark import GenerativeBenchmark
@@ -189,6 +189,7 @@ class TabularDistributionSummary(DistributionSummary):
189189
`percentile_rows` helper.
190190
"""
191191

192+
@computed_field
192193
@property
193194
def percentile_rows(self) -> list[dict[str, float]]:
194195
rows = [

0 commit comments

Comments
 (0)