Skip to content

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

torchci/clickhouse_queries/oss_ci_benchmark_branches/query.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ WITH benchmarks AS (
1515
tupleElement(o.benchmark, 'extra_info') [ 'arch' ],
1616
tupleElement(o.runners [ 1 ], 'type')
1717
) AS arch,
18+
o.timestamp AS timestamp,
1819
toStartOfDay(fromUnixTimestamp(o.timestamp)) AS event_time
1920
FROM
2021
benchmark.oss_ci_benchmark_v3 o
@@ -43,7 +44,6 @@ WITH benchmarks AS (
4344
OR empty({excludedMetrics: Array(String) })
4445
)
4546
AND notEmpty(o.metric.name)
46-
AND notEmpty(o.benchmark.dtype)
4747
)
4848
SELECT
4949
DISTINCT replaceOne(head_branch, 'refs/heads/', '') AS head_branch,
@@ -66,4 +66,4 @@ WHERE
6666
AND notEmpty(device)
6767
ORDER BY
6868
head_branch,
69-
event_time DESC
69+
timestamp DESC

torchci/clickhouse_queries/oss_ci_benchmark_llms/query.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ WITH benchmarks AS (
5757
OR empty({excludedMetrics: Array(String) })
5858
)
5959
AND notEmpty(o.metric.name)
60-
AND notEmpty(o.benchmark.dtype)
6160
)
6261
SELECT
6362
DISTINCT workflow_id,

torchci/clickhouse_queries/oss_ci_benchmark_names/query.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ WITH benchmarks AS (
4343
OR empty({excludedMetrics: Array(String) })
4444
)
4545
AND notEmpty(o.metric.name)
46-
AND notEmpty(o.benchmark.dtype)
4746
)
4847
SELECT
4948
DISTINCT benchmark,

torchci/pages/benchmark/llms.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,9 @@ export default function Page() {
252252
JSON.stringify(queryParams)
253253
)}`;
254254

255-
console.log(queryParams);
256255
const { data } = useSWR(url, fetcher, {
257256
refreshInterval: 60 * 60 * 1000, // refresh every hour
258257
});
259-
console.log(data);
260258

261259
if (data === undefined || data.length === 0) {
262260
return <>Loading {REPO_TO_BENCHMARKS[repoName].join(", ")}...</>;
@@ -274,10 +272,10 @@ export default function Page() {
274272
DEFAULT_DEVICE_NAME,
275273
...(_.uniq(data.map((r: any) => `${r.device} (${r.arch})`)) as string[]),
276274
];
277-
const dtypeNames: string[] = [
275+
const dtypeNames: string[] = _.compact([
278276
DEFAULT_DTYPE_NAME,
279277
...(_.uniq(data.map((r: any) => r.dtype)) as string[]),
280-
];
278+
]);
281279
const metricNames: string[] = _.uniq(data.map((r: any) => r.metric));
282280

283281
return (
@@ -330,12 +328,14 @@ export default function Page() {
330328
label={"Backend"}
331329
/>
332330
)}
333-
<DTypePicker
334-
dtype={dtypeName}
335-
setDType={setDTypeName}
336-
dtypes={dtypeNames}
337-
label={"DType"}
338-
/>
331+
{dtypeNames.length > 1 && (
332+
<DTypePicker
333+
dtype={dtypeName}
334+
setDType={setDTypeName}
335+
dtypes={dtypeNames}
336+
label={"DType"}
337+
/>
338+
)}
339339
<DTypePicker
340340
dtype={deviceName}
341341
setDType={setDeviceName}

0 commit comments

Comments
 (0)