fix: add ShareGPT profile
This commit is contained in:
@@ -88,5 +88,8 @@ export default {
|
|||||||
'benchmark.form.nonLlmModel.tips':
|
'benchmark.form.nonLlmModel.tips':
|
||||||
'Benchmarking currently only supports LLM models',
|
'Benchmarking currently only supports LLM models',
|
||||||
'benchmark.detail.result.duration': 'Duration',
|
'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.'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -88,5 +88,8 @@ export default {
|
|||||||
'benchmark.form.nonLlmModel.tips':
|
'benchmark.form.nonLlmModel.tips':
|
||||||
'Benchmarking currently only supports LLM models',
|
'Benchmarking currently only supports LLM models',
|
||||||
'benchmark.detail.result.duration': 'Duration',
|
'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.'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -88,5 +88,8 @@ export default {
|
|||||||
'benchmark.form.nonLlmModel.tips':
|
'benchmark.form.nonLlmModel.tips':
|
||||||
'Benchmarking currently only supports LLM models',
|
'Benchmarking currently only supports LLM models',
|
||||||
'benchmark.detail.result.duration': 'Duration',
|
'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.'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -87,5 +87,8 @@ export default {
|
|||||||
'benchmark.table.export.results': '导出结果',
|
'benchmark.table.export.results': '导出结果',
|
||||||
'benchmark.form.nonLlmModel.tips': '基准测试目前仅支持 LLM 模型',
|
'benchmark.form.nonLlmModel.tips': '基准测试目前仅支持 LLM 模型',
|
||||||
'benchmark.detail.result.duration': '耗时',
|
'benchmark.detail.result.duration': '耗时',
|
||||||
'benchmark.detail.result.basic': '基础信息'
|
'benchmark.detail.result.basic': '基础信息',
|
||||||
|
'benchmark.form.profile.ShareGPT': 'ShareGPT',
|
||||||
|
'benchmark.form.profile.ShareGPT.tips':
|
||||||
|
'基于真实提示词长度的最大吞吐表现,是最常用的 GPU 与模型对比基准。'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,8 +74,17 @@ const RightActions: React.FC<RightActionsProps> = ({
|
|||||||
id: 'benchmark.table.filter.byProfile'
|
id: 'benchmark.table.filter.byProfile'
|
||||||
})}
|
})}
|
||||||
style={{ width: 160 }}
|
style={{ width: 160 }}
|
||||||
options={profileOptions.map((item) => ({
|
options={[
|
||||||
label: intl.formatMessage({ id: item.label }),
|
...profileOptions,
|
||||||
|
{
|
||||||
|
label: 'backend.custom',
|
||||||
|
locale: true,
|
||||||
|
value: 'Custom'
|
||||||
|
}
|
||||||
|
].map((item) => ({
|
||||||
|
label: item.locale
|
||||||
|
? intl.formatMessage({ id: item.label })
|
||||||
|
: item.label,
|
||||||
value: item.value
|
value: item.value
|
||||||
}))}
|
}))}
|
||||||
onChange={(value, option) =>
|
onChange={(value, option) =>
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export const ProfileValueMap = {
|
|||||||
ThroughputMedium: 'Throughput',
|
ThroughputMedium: 'Throughput',
|
||||||
LongContextStress: 'Long Context',
|
LongContextStress: 'Long Context',
|
||||||
GenerationHeavy: 'Generation Heavy',
|
GenerationHeavy: 'Generation Heavy',
|
||||||
|
ShareGPT: 'ShareGPT',
|
||||||
Custom: 'Custom'
|
Custom: 'Custom'
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -44,6 +45,7 @@ export const ProfileLabelMap = {
|
|||||||
[ProfileValueMap.ThroughputMedium]: 'benchmark.form.profile.throughput',
|
[ProfileValueMap.ThroughputMedium]: 'benchmark.form.profile.throughput',
|
||||||
[ProfileValueMap.LongContextStress]: 'benchmark.form.profile.longContext',
|
[ProfileValueMap.LongContextStress]: 'benchmark.form.profile.longContext',
|
||||||
[ProfileValueMap.GenerationHeavy]: 'benchmark.form.profile.heavy',
|
[ProfileValueMap.GenerationHeavy]: 'benchmark.form.profile.heavy',
|
||||||
|
[ProfileValueMap.ShareGPT]: 'benchmark.form.profile.ShareGPT',
|
||||||
[ProfileValueMap.Custom]: 'benchmark.form.profile.custom'
|
[ProfileValueMap.Custom]: 'benchmark.form.profile.custom'
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -71,6 +73,12 @@ export const profileOptions = [
|
|||||||
tips: 'benchmark.form.profile.heavy.tips',
|
tips: 'benchmark.form.profile.heavy.tips',
|
||||||
value: ProfileValueMap.GenerationHeavy,
|
value: ProfileValueMap.GenerationHeavy,
|
||||||
locale: true
|
locale: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'benchmark.form.profile.ShareGPT',
|
||||||
|
tips: 'benchmark.form.profile.ShareGPT.tips',
|
||||||
|
value: ProfileValueMap.ShareGPT,
|
||||||
|
locale: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user