From 48779aed29a5e0e3bf8dbebf3563b8c64f9fd402 Mon Sep 17 00:00:00 2001 From: jialin Date: Tue, 24 Mar 2026 16:20:03 +0800 Subject: [PATCH] fix: add ShareGPT profile --- src/locales/en-US/benchmark.ts | 5 ++++- src/locales/ja-JP/benchmark.ts | 5 ++++- src/locales/ru-RU/benchmark.ts | 5 ++++- src/locales/zh-CN/benchmark.ts | 5 ++++- src/pages/benchmark/components/left-actions.tsx | 13 +++++++++++-- src/pages/benchmark/config/index.ts | 8 ++++++++ 6 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/locales/en-US/benchmark.ts b/src/locales/en-US/benchmark.ts index d6905ed5..5848c161 100644 --- a/src/locales/en-US/benchmark.ts +++ b/src/locales/en-US/benchmark.ts @@ -88,5 +88,8 @@ export default { 'benchmark.form.nonLlmModel.tips': 'Benchmarking currently only supports LLM models', 'benchmark.detail.result.duration': 'Duration', - 'benchmark.detail.result.basic': 'Basic' + 'benchmark.detail.result.basic': 'Basic', + 'benchmark.form.profile.ShareGPT': 'ShareGPT', + 'benchmark.form.profile.ShareGPT.tips': + 'Max throughput with realistic prompt length. The most commonly used baseline for GPU and model comparison.' }; diff --git a/src/locales/ja-JP/benchmark.ts b/src/locales/ja-JP/benchmark.ts index d6905ed5..5848c161 100644 --- a/src/locales/ja-JP/benchmark.ts +++ b/src/locales/ja-JP/benchmark.ts @@ -88,5 +88,8 @@ export default { 'benchmark.form.nonLlmModel.tips': 'Benchmarking currently only supports LLM models', 'benchmark.detail.result.duration': 'Duration', - 'benchmark.detail.result.basic': 'Basic' + 'benchmark.detail.result.basic': 'Basic', + 'benchmark.form.profile.ShareGPT': 'ShareGPT', + 'benchmark.form.profile.ShareGPT.tips': + 'Max throughput with realistic prompt length. The most commonly used baseline for GPU and model comparison.' }; diff --git a/src/locales/ru-RU/benchmark.ts b/src/locales/ru-RU/benchmark.ts index d6905ed5..5848c161 100644 --- a/src/locales/ru-RU/benchmark.ts +++ b/src/locales/ru-RU/benchmark.ts @@ -88,5 +88,8 @@ export default { 'benchmark.form.nonLlmModel.tips': 'Benchmarking currently only supports LLM models', 'benchmark.detail.result.duration': 'Duration', - 'benchmark.detail.result.basic': 'Basic' + 'benchmark.detail.result.basic': 'Basic', + 'benchmark.form.profile.ShareGPT': 'ShareGPT', + 'benchmark.form.profile.ShareGPT.tips': + 'Max throughput with realistic prompt length. The most commonly used baseline for GPU and model comparison.' }; diff --git a/src/locales/zh-CN/benchmark.ts b/src/locales/zh-CN/benchmark.ts index 8afbd08b..1bf82060 100644 --- a/src/locales/zh-CN/benchmark.ts +++ b/src/locales/zh-CN/benchmark.ts @@ -87,5 +87,8 @@ export default { 'benchmark.table.export.results': '导出结果', 'benchmark.form.nonLlmModel.tips': '基准测试目前仅支持 LLM 模型', 'benchmark.detail.result.duration': '耗时', - 'benchmark.detail.result.basic': '基础信息' + 'benchmark.detail.result.basic': '基础信息', + 'benchmark.form.profile.ShareGPT': 'ShareGPT', + 'benchmark.form.profile.ShareGPT.tips': + '基于真实提示词长度的最大吞吐表现,是最常用的 GPU 与模型对比基准。' }; diff --git a/src/pages/benchmark/components/left-actions.tsx b/src/pages/benchmark/components/left-actions.tsx index e01bd596..c8bc39d2 100644 --- a/src/pages/benchmark/components/left-actions.tsx +++ b/src/pages/benchmark/components/left-actions.tsx @@ -74,8 +74,17 @@ const RightActions: React.FC = ({ id: 'benchmark.table.filter.byProfile' })} style={{ width: 160 }} - options={profileOptions.map((item) => ({ - label: intl.formatMessage({ id: item.label }), + options={[ + ...profileOptions, + { + label: 'backend.custom', + locale: true, + value: 'Custom' + } + ].map((item) => ({ + label: item.locale + ? intl.formatMessage({ id: item.label }) + : item.label, value: item.value }))} onChange={(value, option) => diff --git a/src/pages/benchmark/config/index.ts b/src/pages/benchmark/config/index.ts index 21eb5f8e..61a7e4f9 100644 --- a/src/pages/benchmark/config/index.ts +++ b/src/pages/benchmark/config/index.ts @@ -36,6 +36,7 @@ export const ProfileValueMap = { ThroughputMedium: 'Throughput', LongContextStress: 'Long Context', GenerationHeavy: 'Generation Heavy', + ShareGPT: 'ShareGPT', Custom: 'Custom' }; @@ -44,6 +45,7 @@ export const ProfileLabelMap = { [ProfileValueMap.ThroughputMedium]: 'benchmark.form.profile.throughput', [ProfileValueMap.LongContextStress]: 'benchmark.form.profile.longContext', [ProfileValueMap.GenerationHeavy]: 'benchmark.form.profile.heavy', + [ProfileValueMap.ShareGPT]: 'benchmark.form.profile.ShareGPT', [ProfileValueMap.Custom]: 'benchmark.form.profile.custom' }; @@ -71,6 +73,12 @@ export const profileOptions = [ tips: 'benchmark.form.profile.heavy.tips', value: ProfileValueMap.GenerationHeavy, locale: true + }, + { + label: 'benchmark.form.profile.ShareGPT', + tips: 'benchmark.form.profile.ShareGPT.tips', + value: ProfileValueMap.ShareGPT, + locale: true } ];