diff --git a/src/locales/en-US/models.ts b/src/locales/en-US/models.ts index 3f3c0cbd..204c5318 100644 --- a/src/locales/en-US/models.ts +++ b/src/locales/en-US/models.ts @@ -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.' }; diff --git a/src/locales/ja-JP/models.ts b/src/locales/ja-JP/models.ts index 7a04de0c..6afe2b7d 100644 --- a/src/locales/ja-JP/models.ts +++ b/src/locales/ja-JP/models.ts @@ -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 ========== diff --git a/src/locales/ru-RU/models.ts b/src/locales/ru-RU/models.ts index 0d4be6d4..35abe84b 100644 --- a/src/locales/ru-RU/models.ts +++ b/src/locales/ru-RU/models.ts @@ -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 ========== diff --git a/src/locales/zh-CN/models.ts b/src/locales/zh-CN/models.ts index 71176467..8cc1a5cb 100644 --- a/src/locales/zh-CN/models.ts +++ b/src/locales/zh-CN/models.ts @@ -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': '以完整(原始)精度运行,并优先保证兼容性。' }; diff --git a/src/pages/llmodels/components/deploy-builtin-modal.tsx b/src/pages/llmodels/components/deploy-builtin-modal.tsx index 3ce53104..98d1f4bb 100644 --- a/src/pages/llmodels/components/deploy-builtin-modal.tsx +++ b/src/pages/llmodels/components/deploy-builtin-modal.tsx @@ -27,13 +27,13 @@ import CompatibilityAlert from './compatible-alert'; const ModesMap: Record = { latency: 'models.form.mode.latency', - reference: 'models.form.mode.reference', + baseline: 'models.form.mode.baseline', throughput: 'models.form.mode.throughput' }; const ModesTipsMap: Record = { latency: 'models.form.mode.latency.tips', - reference: 'models.form.mode.reference.tips', + baseline: 'models.form.mode.baseline.tips', throughput: 'models.form.mode.throughput.tips' }; diff --git a/src/pages/llmodels/forms/performance.tsx b/src/pages/llmodels/forms/performance.tsx index 820a8fa8..aa367749 100644 --- a/src/pages/llmodels/forms/performance.tsx +++ b/src/pages/llmodels/forms/performance.tsx @@ -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 = () => { } label={intl.formatMessage({ id: 'models.form.mode' })} > {modeList?.map((item: any) => (