Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/guidellm/benchmark/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,9 @@ async def finalize(self, report: GenerativeBenchmarksReport) -> Path:

ui_api_data = {}
for key, value in camel_data.items():
placeholder_key = f"window.{humps.decamelize(key)} = {{}};"
placeholder_key = f"window.{key} = {{}};"
replacement_value = (
f"window.{humps.decamelize(key)} = {json.dumps(value, indent=2)};\n"
f"window.{key} = {json.dumps(value, indent=2)};\n"
)
ui_api_data[placeholder_key] = replacement_value

Expand Down
12 changes: 6 additions & 6 deletions src/guidellm/presentation/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RunInfo(BaseModel):

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

@classmethod
def from_benchmarks(cls, benchmarks: list["GenerativeBenchmark"]):
target = benchmarks[0].worker.backend_target
rate_type = benchmarks[0].args.profile.type_
target = benchmarks[0].benchmarker.backend.get("target", "N/A")
rate_type = benchmarks[0].scheduler.strategy.type_
successful_requests = [
req for bm in benchmarks for req in bm.requests.successful
]
Expand Down Expand Up @@ -152,13 +152,13 @@ def from_benchmarks(cls, benchmarks: list["GenerativeBenchmark"]):
statistics=output_token_stats, buckets=output_token_buckets, bucket_width=1
)

min_start_time = benchmarks[0].run_stats.start_time
min_start_time = benchmarks[0].start_time

all_req_times = [
req.start_time - min_start_time
req.scheduler_info.started_at - min_start_time
for bm in benchmarks
for req in bm.requests.successful
if req.start_time is not None
if req.scheduler_info.started_at is not None
]
number_of_buckets = len(benchmarks)
request_over_time_buckets, bucket_width = Bucket.from_data(
Expand Down
Loading