Skip to content

Commit bc59f8d

Browse files
authored
[LLMS Benchmark UI][BE]Reorg all llms benchmark code under same folder (#6337)
issue: #6323 # Description Put llms-benchmark-specific files under component/benchmark/llms # Overview this pr simple move everything specifically for llms under component/benchmark/llms first step to come up customized component UI for llms. new& modified files: - create LlmsPage as main page component, no complicated logic in pages/benchmark/llms.tsx, it should mainly used as api routing - move LlmsReport to its own component instead of nested in LlmsPage. - rename component with prefix 'Llms' Since we have similar name component such as GraphPanel. - move convertToCompilerPerformanceData in lib/complier/compierUtils # Demo https://torchci-9eem5f1do-fbopensource.vercel.app/benchmark/llms?repoName=pytorch%2Fpytorch&benchmarkName=TorchCache+Benchmark
1 parent f48f29c commit bc59f8d

File tree

13 files changed

+622
-598
lines changed

13 files changed

+622
-598
lines changed

torchci/components/benchmark/compilers/ModelGraphPanel.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import {
1010
TimeSeriesPanelWithData,
1111
} from "components/metrics/panels/TimeSeriesPanel";
1212
import dayjs from "dayjs";
13-
import { convertToCompilerPerformanceData } from "lib/benchmark/aoUtils";
14-
import { augmentData } from "lib/benchmark/compilerUtils";
13+
import {
14+
augmentData,
15+
convertToCompilerPerformanceData,
16+
} from "lib/benchmark/compilerUtils";
1517
import { fetcher } from "lib/GeneralUtils";
1618
import { CompilerPerformanceData } from "lib/types";
1719
import useSWR from "swr";

torchci/components/benchmark/compilers/SummaryGraphPanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import {
88
TimeSeriesPanelWithData,
99
} from "components/metrics/panels/TimeSeriesPanel";
1010
import dayjs from "dayjs";
11-
import { convertToCompilerPerformanceData } from "lib/benchmark/aoUtils";
1211
import {
1312
computeCompilationTime,
1413
computeExecutionTime,
1514
computeGeomean,
1615
computeMemoryCompressionRatio,
1716
computePassrate,
1817
computePeakMemoryUsage,
18+
convertToCompilerPerformanceData,
1919
getPassingModels,
2020
} from "lib/benchmark/compilerUtils";
2121
import { fetcher } from "lib/GeneralUtils";

0 commit comments

Comments
 (0)