Skip to content
Merged
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
33 changes: 19 additions & 14 deletions torchci/components/benchmark/llms/components/LLMsSummaryPanel.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -478,21 +479,25 @@ export default function LLMsSummaryPanel({

// TODO (huydhn): Table bigger than 100 rows requires x-data-grid-pro
return (
<Grid container spacing={10}>
<Grid size={{ xs: 12, lg: 11.8 }}>
<TablePanelWithData
title={"Models"}
data={data}
columns={columns}
dataGridProps={{ getRowId: (el: any) => el.name }}
showFooter={true}
disableAutoPageSize={true}
customStyle={{
maxHeight: 1200,
}}
/>
<>
<RenderRawContent data={lData} buttonName="lData" />
<RenderRawContent data={rData} buttonName="rData" />
<Grid container spacing={10}>
<Grid size={{ xs: 12, lg: 11.8 }}>
<TablePanelWithData
title={"Models"}
data={data}
columns={columns}
dataGridProps={{ getRowId: (el: any) => el.name }}
showFooter={true}
disableAutoPageSize={true}
customStyle={{
maxHeight: 1200,
}}
/>
</Grid>
</Grid>
</Grid>
</>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@ export class PytorchHelionDataFetcher
"floor(arrayAvg(o.metric.'benchmark_values'), 2)",
"avg_value"
);
this._data_query.addSelectStatement(
"tupleElement(o.metric, 'benchmark_values')",
"raw_value_list"
);
}

applyFormat(
Expand Down