From c6ef618b8c1bcdeb71957a8348efa43a04376d9f Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Fri, 7 Nov 2025 09:58:00 -0800 Subject: [PATCH 1/5] add config --- .../benchmark/llms/components/LLMsSummaryPanel.tsx | 5 +++++ .../queryBuilderUtils/benchmarkDataQueryBuilder.ts | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx b/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx index 067f3c6ab4..fcf689ce17 100644 --- a/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx +++ b/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx @@ -1,5 +1,6 @@ import { Grid, styled, Tooltip } from "@mui/material"; import { GridCellParams, GridRenderCellParams } from "@mui/x-data-grid"; +import { RenderRawContent } from "components/benchmark_v3/components/common/RawContentDialog"; import styles from "components/metrics.module.css"; import { TablePanelWithData } from "components/metrics/panels/TablePanel"; import { Granularity } from "components/metrics/panels/TimeSeriesPanel"; @@ -478,6 +479,8 @@ export default function LLMsSummaryPanel({ // TODO (huydhn): Table bigger than 100 rows requires x-data-grid-pro return ( + <> + + + ); } diff --git a/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts b/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts index b39a176e4c..0b4ad98659 100644 --- a/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts +++ b/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts @@ -492,6 +492,10 @@ export class PytorchHelionDataFetcher "floor(arrayAvg(o.metric.'benchmark_values'), 2)", "avg_value" ); + this._data_query.addSelectStatement( + "o.metric['benchmark_values']", + "raw_value_list" + ) } applyFormat( From 0e37218b4c48529e8ad6f5be42cc872a3ca105a5 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Fri, 7 Nov 2025 10:05:29 -0800 Subject: [PATCH 2/5] add config --- .../llms/components/LLMsSummaryPanel.tsx | 31 +++++++++---------- .../benchmarkDataQueryBuilder.ts | 4 +-- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx b/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx index fcf689ce17..70edb4705f 100644 --- a/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx +++ b/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx @@ -480,24 +480,23 @@ export default function LLMsSummaryPanel({ // TODO (huydhn): Table bigger than 100 rows requires x-data-grid-pro return ( <> - - - - el.name }} - showFooter={true} - disableAutoPageSize={true} - customStyle={{ - maxHeight: 1200, - }} - /> + + + + el.name }} + showFooter={true} + disableAutoPageSize={true} + customStyle={{ + maxHeight: 1200, + }} + /> + - - ); } diff --git a/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts b/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts index 0b4ad98659..cd1be3a0b6 100644 --- a/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts +++ b/torchci/lib/benchmark/api_helper/backend/dataFetchers/queryBuilderUtils/benchmarkDataQueryBuilder.ts @@ -493,9 +493,9 @@ export class PytorchHelionDataFetcher "avg_value" ); this._data_query.addSelectStatement( - "o.metric['benchmark_values']", + "tupleElement(o.metric, 'benchmark_values')", "raw_value_list" - ) + ); } applyFormat( From ccf7d8fba61ad3d5ecac21ecab705665c6c529cf Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Fri, 7 Nov 2025 10:15:15 -0800 Subject: [PATCH 3/5] add config --- .../benchmark/llms/components/LLMsSummaryPanel.tsx | 3 ++- .../components/dataRender/auto/autoComponents.tsx | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx b/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx index 70edb4705f..699334ceea 100644 --- a/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx +++ b/torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx @@ -480,7 +480,8 @@ export default function LLMsSummaryPanel({ // TODO (huydhn): Table bigger than 100 rows requires x-data-grid-pro return ( <> - + + - + Date: Fri, 7 Nov 2025 10:30:55 -0800 Subject: [PATCH 4/5] add config --- .../benchmark_v3/components/dataRender/auto/autoComponents.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx b/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx index 65a1b85959..ef2a145e76 100644 --- a/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx +++ b/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx @@ -238,7 +238,6 @@ export function AutoBenchmarkPairwiseTable({ config }: AutoComponentProps) { error, } = useBenchmarkTimeSeriesData(ctx.benchmarkId, queryParams, [ "table", - "raw", ]); if (!ready) { @@ -272,7 +271,7 @@ export function AutoBenchmarkPairwiseTable({ config }: AutoComponentProps) { return ( - + Date: Fri, 7 Nov 2025 10:31:55 -0800 Subject: [PATCH 5/5] add config --- .../components/dataRender/auto/autoComponents.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx b/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx index ef2a145e76..78fc593f75 100644 --- a/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx +++ b/torchci/components/benchmark_v3/components/dataRender/auto/autoComponents.tsx @@ -236,9 +236,7 @@ export function AutoBenchmarkPairwiseTable({ config }: AutoComponentProps) { data: resp, isLoading, error, - } = useBenchmarkTimeSeriesData(ctx.benchmarkId, queryParams, [ - "table", - ]); + } = useBenchmarkTimeSeriesData(ctx.benchmarkId, queryParams, ["table"]); if (!ready) { return (