Skip to content

Commit eeebb6b

Browse files
committed
[GuideLLM Refactor] Features/refactor fix html #377
features/refactor-fix-html
2 parents 30ab756 + 54556ae commit eeebb6b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/guidellm/benchmark/output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,9 @@ async def finalize(self, report: GenerativeBenchmarksReport) -> Path:
724724

725725
ui_api_data = {}
726726
for key, value in camel_data.items():
727-
placeholder_key = f"window.{humps.decamelize(key)} = {{}};"
727+
placeholder_key = f"window.{key} = {{}};"
728728
replacement_value = (
729-
f"window.{humps.decamelize(key)} = {json.dumps(value, indent=2)};\n"
729+
f"window.{key} = {json.dumps(value, indent=2)};\n"
730730
)
731731
ui_api_data[placeholder_key] = replacement_value
732732

src/guidellm/presentation/data_models.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class RunInfo(BaseModel):
6767

6868
@classmethod
6969
def from_benchmarks(cls, benchmarks: list["GenerativeBenchmark"]):
70-
model = benchmarks[0].worker.backend_model or "N/A"
70+
model = benchmarks[0].benchmarker.backend.get("model", "N/A")
7171
timestamp = max(
7272
bm.run_stats.start_time for bm in benchmarks if bm.start_time is not None
7373
)
@@ -108,8 +108,8 @@ class WorkloadDetails(BaseModel):
108108

109109
@classmethod
110110
def from_benchmarks(cls, benchmarks: list["GenerativeBenchmark"]):
111-
target = benchmarks[0].worker.backend_target
112-
rate_type = benchmarks[0].args.profile.type_
111+
target = benchmarks[0].benchmarker.backend.get("target", "N/A")
112+
rate_type = benchmarks[0].scheduler.strategy.type_
113113
successful_requests = [
114114
req for bm in benchmarks for req in bm.requests.successful
115115
]
@@ -152,13 +152,13 @@ def from_benchmarks(cls, benchmarks: list["GenerativeBenchmark"]):
152152
statistics=output_token_stats, buckets=output_token_buckets, bucket_width=1
153153
)
154154

155-
min_start_time = benchmarks[0].run_stats.start_time
155+
min_start_time = benchmarks[0].start_time
156156

157157
all_req_times = [
158-
req.start_time - min_start_time
158+
req.scheduler_info.started_at - min_start_time
159159
for bm in benchmarks
160160
for req in bm.requests.successful
161-
if req.start_time is not None
161+
if req.scheduler_info.started_at is not None
162162
]
163163
number_of_buckets = len(benchmarks)
164164
request_over_time_buckets, bucket_width = Bucket.from_data(

0 commit comments

Comments
 (0)