chore: update reference to baseline

This commit is contained in:
jialin
2025-11-03 10:14:30 +08:00
parent c5166f07f1
commit ab9f9a9679
6 changed files with 16 additions and 19 deletions
+2 -2
View File
@@ -227,11 +227,11 @@ export default {
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
'models.form.mode.throughput': 'High-Throughput',
'models.form.mode.latency': 'Low-Latency',
'models.form.mode.reference': 'Reference',
'models.form.mode.baseline': 'Baseline',
'models.form.mode.throughput.tips':
'optimized for high throughput under high request concurrency.',
'models.form.mode.latency.tips':
'optimized for low latency under low request concurrency.',
'models.form.mode.reference.tips':
'models.form.mode.baseline.tips':
'Runs at full (original) precision and prioritizes compatibility.'
};
+4 -4
View File
@@ -227,12 +227,12 @@ export default {
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
'models.form.mode.throughput': 'Throughput',
'models.form.mode.latency': 'Latency',
'models.form.mode.reference': 'Reference',
'models.form.mode.baseline': 'Baseline',
'models.form.mode.throughput.tips':
'optimized for high throughput under high request concurrency.',
'models.form.mode.latency.tips':
'optimized for low latency under low request concurrency.',
'models.form.mode.reference.tips':
'models.form.mode.baseline.tips':
'the most compatible option with full precision.'
};
@@ -294,9 +294,9 @@ export default {
// 38. 'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
// 39. 'models.form.mode.throughput': 'Throughput',
// 40. 'models.form.mode.latency': 'Latency',
// 41. 'models.form.mode.reference': 'Reference',
// 41. 'models.form.mode.baseline': 'Baseline',
// 42. 'models.form.mode.throughput.tips': 'optimized for high throughput under high request concurrency.',
// 43. 'models.form.mode.latency.tips': 'optimized for low latency under low request concurrency.',
// 44. 'models.form.mode.reference.tips': 'the most compatible option with full precision
// 44. 'models.form.mode.baseline.tips': 'the most compatible option with full precision
// ========== End of To-Do List ==========
+4 -4
View File
@@ -227,12 +227,12 @@ export default {
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
'models.form.mode.throughput': 'Throughput',
'models.form.mode.latency': 'Latency',
'models.form.mode.reference': 'Reference',
'models.form.mode.baseline': 'Baseline',
'models.form.mode.throughput.tips':
'optimized for high throughput under high request concurrency.',
'models.form.mode.latency.tips':
'optimized for low latency under low request concurrency.',
'models.form.mode.reference.tips':
'models.form.mode.baseline.tips':
'the most compatible option with full precision.'
};
@@ -257,8 +257,8 @@ export default {
// 30. 'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
// 31. 'models.form.mode.throughput': 'Throughput',
// 32. 'models.form.mode.latency': 'Latency',
// 33. 'models.form.mode.reference': 'Reference',
// 33. 'models.form.mode.baseline': 'Baseline',
// 34. 'models.form.mode.throughput.tips': 'optimized for high throughput under high request concurrency.',
// 35. 'models.form.mode.latency.tips': 'optimized for low latency under low request concurrency.',
// 36. 'models.form.mode.reference.tips': 'the most compatible option with full precision.'
// 36. 'models.form.mode.baseline.tips': 'the most compatible option with full precision.'
// ========== End of To-Do List ==========
+2 -3
View File
@@ -217,9 +217,8 @@ export default {
'models.form.ngramMaxMatchLength': 'N-gram 最大匹配长度',
'models.form.mode.throughput': '高吞吐',
'models.form.mode.latency': '低延迟',
'models.form.mode.reference': '参考',
'models.form.mode.baseline': '标准',
'models.form.mode.throughput.tips': '在高并发请求下优化吞吐性能。',
'models.form.mode.latency.tips': '在低并发请求下优化响应延迟。',
'models.form.mode.reference.tips':
'以完整(原始)精度运行,并优先保证兼容性。'
'models.form.mode.baseline.tips': '以完整(原始)精度运行,并优先保证兼容性。'
};
@@ -27,13 +27,13 @@ import CompatibilityAlert from './compatible-alert';
const ModesMap: Record<string, string> = {
latency: 'models.form.mode.latency',
reference: 'models.form.mode.reference',
baseline: 'models.form.mode.baseline',
throughput: 'models.form.mode.throughput'
};
const ModesTipsMap: Record<string, string> = {
latency: 'models.form.mode.latency.tips',
reference: 'models.form.mode.reference.tips',
baseline: 'models.form.mode.baseline.tips',
throughput: 'models.form.mode.throughput.tips'
};
+2 -4
View File
@@ -1,6 +1,5 @@
import AutoTooltip from '@/components/auto-tooltip';
import SealSelect from '@/components/seal-form/seal-select';
import TooltipList from '@/components/tooltip-list';
import { useIntl } from '@umijs/max';
import { Form, Select } from 'antd';
import React from 'react';
@@ -26,10 +25,10 @@ const modeTipsList = [
},
{
title: {
text: 'models.form.mode.reference',
text: 'models.form.mode.baseline',
locale: true
},
tips: 'models.form.mode.reference.tips'
tips: 'models.form.mode.baseline.tips'
}
];
@@ -46,7 +45,6 @@ const Performance: React.FC = () => {
<Form.Item name="mode">
<SealSelect
onChange={onModeChange}
description={<TooltipList list={modeTipsList}></TooltipList>}
label={intl.formatMessage({ id: 'models.form.mode' })}
>
{modeList?.map((item: any) => (