chore: profile config

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent 8f2eea70f6
commit 1a2e82f079
27 changed files with 730 additions and 231 deletions
+25 -5
View File
@@ -28,26 +28,46 @@ export const BenchmarkStatus: Record<string, StatusType> = {
[BenchmarkStatusValueMap.Unreachable]: StatusMaps.error
};
export const ProfileValueMap = {
LatencyShort: 'latency_short',
ThroughputMedium: 'throughput_medium',
LongContextStress: 'long_context_stress',
GenerationHeavy: 'generation_heavy',
Custom: 'Custom'
};
export const ProfileLabelMap = {
[ProfileValueMap.LatencyShort]: 'benchmark.form.profile.latency',
[ProfileValueMap.ThroughputMedium]: 'benchmark.form.profile.throughput',
[ProfileValueMap.LongContextStress]: 'benchmark.form.profile.longContext',
[ProfileValueMap.GenerationHeavy]: 'benchmark.form.profile.heavy',
[ProfileValueMap.Custom]: 'benchmark.form.profile.custom'
};
export const profileOptions = [
{
label: 'benchmark.form.profile.latency',
value: 'latency_short',
value: ProfileValueMap.LatencyShort,
locale: true
},
{
label: 'benchmark.form.profile.throughput',
value: 'throughput_medium',
value: ProfileValueMap.ThroughputMedium,
locale: true
},
{
label: 'benchmark.form.profile.longContext',
value: 'long_context_stress',
value: ProfileValueMap.LongContextStress,
locale: true
},
{
label: 'benchmark.form.profile.heavy',
value: 'generation_heavy',
value: ProfileValueMap.GenerationHeavy,
locale: true
},
{ label: 'benchmark.form.profile.custom', value: 'custom', locale: true }
{
label: 'benchmark.form.profile.custom',
value: ProfileValueMap.Custom,
locale: true
}
];
+13
View File
@@ -87,6 +87,7 @@ export interface FormData {
state_message: string;
worker_id: number;
gpu_summary: string;
seed: number;
gpu_vendor_summary: string;
}
@@ -101,4 +102,16 @@ export interface DatasetListItem {
source: string;
prompt_tokens: number;
output_tokens: number;
id: number;
}
export interface ProfileOption {
name: string;
description: string;
dataset_name: string;
dataset_source: string;
dataset_prompt_tokens: number;
dataset_output_tokens: number;
request_rate: number;
total_requests: number;
}