chore: update reference to baseline
This commit is contained in:
@@ -227,11 +227,11 @@ export default {
|
|||||||
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
||||||
'models.form.mode.throughput': 'High-Throughput',
|
'models.form.mode.throughput': 'High-Throughput',
|
||||||
'models.form.mode.latency': 'Low-Latency',
|
'models.form.mode.latency': 'Low-Latency',
|
||||||
'models.form.mode.reference': 'Reference',
|
'models.form.mode.baseline': 'Baseline',
|
||||||
'models.form.mode.throughput.tips':
|
'models.form.mode.throughput.tips':
|
||||||
'optimized for high throughput under high request concurrency.',
|
'optimized for high throughput under high request concurrency.',
|
||||||
'models.form.mode.latency.tips':
|
'models.form.mode.latency.tips':
|
||||||
'optimized for low latency under low request concurrency.',
|
'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.'
|
'Runs at full (original) precision and prioritizes compatibility.'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -227,12 +227,12 @@ export default {
|
|||||||
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
||||||
'models.form.mode.throughput': 'Throughput',
|
'models.form.mode.throughput': 'Throughput',
|
||||||
'models.form.mode.latency': 'Latency',
|
'models.form.mode.latency': 'Latency',
|
||||||
'models.form.mode.reference': 'Reference',
|
'models.form.mode.baseline': 'Baseline',
|
||||||
'models.form.mode.throughput.tips':
|
'models.form.mode.throughput.tips':
|
||||||
'optimized for high throughput under high request concurrency.',
|
'optimized for high throughput under high request concurrency.',
|
||||||
'models.form.mode.latency.tips':
|
'models.form.mode.latency.tips':
|
||||||
'optimized for low latency under low request concurrency.',
|
'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.'
|
'the most compatible option with full precision.'
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -294,9 +294,9 @@ export default {
|
|||||||
// 38. 'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
// 38. 'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
||||||
// 39. 'models.form.mode.throughput': 'Throughput',
|
// 39. 'models.form.mode.throughput': 'Throughput',
|
||||||
// 40. 'models.form.mode.latency': 'Latency',
|
// 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.',
|
// 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.',
|
// 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 ==========
|
// ========== End of To-Do List ==========
|
||||||
|
|||||||
@@ -227,12 +227,12 @@ export default {
|
|||||||
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
||||||
'models.form.mode.throughput': 'Throughput',
|
'models.form.mode.throughput': 'Throughput',
|
||||||
'models.form.mode.latency': 'Latency',
|
'models.form.mode.latency': 'Latency',
|
||||||
'models.form.mode.reference': 'Reference',
|
'models.form.mode.baseline': 'Baseline',
|
||||||
'models.form.mode.throughput.tips':
|
'models.form.mode.throughput.tips':
|
||||||
'optimized for high throughput under high request concurrency.',
|
'optimized for high throughput under high request concurrency.',
|
||||||
'models.form.mode.latency.tips':
|
'models.form.mode.latency.tips':
|
||||||
'optimized for low latency under low request concurrency.',
|
'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.'
|
'the most compatible option with full precision.'
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -257,8 +257,8 @@ export default {
|
|||||||
// 30. 'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
// 30. 'models.form.ngramMaxMatchLength': 'N-gram Maximum Match Length',
|
||||||
// 31. 'models.form.mode.throughput': 'Throughput',
|
// 31. 'models.form.mode.throughput': 'Throughput',
|
||||||
// 32. 'models.form.mode.latency': 'Latency',
|
// 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.',
|
// 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.',
|
// 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 ==========
|
// ========== End of To-Do List ==========
|
||||||
|
|||||||
@@ -217,9 +217,8 @@ export default {
|
|||||||
'models.form.ngramMaxMatchLength': 'N-gram 最大匹配长度',
|
'models.form.ngramMaxMatchLength': 'N-gram 最大匹配长度',
|
||||||
'models.form.mode.throughput': '高吞吐',
|
'models.form.mode.throughput': '高吞吐',
|
||||||
'models.form.mode.latency': '低延迟',
|
'models.form.mode.latency': '低延迟',
|
||||||
'models.form.mode.reference': '参考',
|
'models.form.mode.baseline': '标准',
|
||||||
'models.form.mode.throughput.tips': '在高并发请求下优化吞吐性能。',
|
'models.form.mode.throughput.tips': '在高并发请求下优化吞吐性能。',
|
||||||
'models.form.mode.latency.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> = {
|
const ModesMap: Record<string, string> = {
|
||||||
latency: 'models.form.mode.latency',
|
latency: 'models.form.mode.latency',
|
||||||
reference: 'models.form.mode.reference',
|
baseline: 'models.form.mode.baseline',
|
||||||
throughput: 'models.form.mode.throughput'
|
throughput: 'models.form.mode.throughput'
|
||||||
};
|
};
|
||||||
|
|
||||||
const ModesTipsMap: Record<string, string> = {
|
const ModesTipsMap: Record<string, string> = {
|
||||||
latency: 'models.form.mode.latency.tips',
|
latency: 'models.form.mode.latency.tips',
|
||||||
reference: 'models.form.mode.reference.tips',
|
baseline: 'models.form.mode.baseline.tips',
|
||||||
throughput: 'models.form.mode.throughput.tips'
|
throughput: 'models.form.mode.throughput.tips'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import AutoTooltip from '@/components/auto-tooltip';
|
import AutoTooltip from '@/components/auto-tooltip';
|
||||||
import SealSelect from '@/components/seal-form/seal-select';
|
import SealSelect from '@/components/seal-form/seal-select';
|
||||||
import TooltipList from '@/components/tooltip-list';
|
|
||||||
import { useIntl } from '@umijs/max';
|
import { useIntl } from '@umijs/max';
|
||||||
import { Form, Select } from 'antd';
|
import { Form, Select } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -26,10 +25,10 @@ const modeTipsList = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: {
|
title: {
|
||||||
text: 'models.form.mode.reference',
|
text: 'models.form.mode.baseline',
|
||||||
locale: true
|
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">
|
<Form.Item name="mode">
|
||||||
<SealSelect
|
<SealSelect
|
||||||
onChange={onModeChange}
|
onChange={onModeChange}
|
||||||
description={<TooltipList list={modeTipsList}></TooltipList>}
|
|
||||||
label={intl.formatMessage({ id: 'models.form.mode' })}
|
label={intl.formatMessage({ id: 'models.form.mode' })}
|
||||||
>
|
>
|
||||||
{modeList?.map((item: any) => (
|
{modeList?.map((item: any) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user