From 351b2e1417eaac31eee43820b141b73bd3d519bd Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 23 Jul 2025 10:43:28 +0800 Subject: [PATCH] chore: adjust the evaluation result statement --- src/locales/en-US/models.ts | 8 +++++--- src/locales/zh-CN/models.ts | 6 +++--- src/pages/llmodels/components/deploy-modal.tsx | 9 --------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/locales/en-US/models.ts b/src/locales/en-US/models.ts index 33100acc..8c7a6134 100644 --- a/src/locales/en-US/models.ts +++ b/src/locales/en-US/models.ts @@ -133,9 +133,11 @@ export default { 'models.form.check.params': 'Checking configuration...', 'models.form.check.passed': 'Compatibility Check Passed', 'models.form.check.claims': - 'The model requires approximately {vram} VRAM and {ram} RAM.', - 'models.form.check.claims2': 'The model requires approximately {vram} VRAM.', - 'models.form.check.claims3': 'The model requires approximately {ram} RAM.', + 'The model will consume approximately {vram} VRAM and {ram} RAM.', + 'models.form.check.claims2': + 'The model will consume approximately {vram} VRAM.', + 'models.form.check.claims3': + 'The model will consume approximately {ram} RAM.', 'models.form.update.tips': 'Changes will only apply after you delete and recreate the instance.', 'models.table.download.progress': 'Download Progress', diff --git a/src/locales/zh-CN/models.ts b/src/locales/zh-CN/models.ts index 1ceb662e..c096ca73 100644 --- a/src/locales/zh-CN/models.ts +++ b/src/locales/zh-CN/models.ts @@ -126,9 +126,9 @@ export default { 'models.form.restart.onerror.tips': '当发生错误时,将自动尝试恢复', 'models.form.check.params': '正在校验配置...', 'models.form.check.passed': '兼容性检查通过', - 'models.form.check.claims': '该模型大约需要分配 {vram} 显存和 {ram} 内存。', - 'models.form.check.claims2': '该模型大约需要分配 {vram} 显存。', - 'models.form.check.claims3': '该模型大约需要分配 {ram} 内存。', + 'models.form.check.claims': '该模型大约需要消耗 {vram} 显存和 {ram} 内存。', + 'models.form.check.claims2': '该模型大约需要消耗 {vram} 显存。', + 'models.form.check.claims3': '该模型大约需要消耗 {ram} 内存。', 'models.form.update.tips': '更改仅在删除并重新创建实例后生效。', 'models.table.download.progress': '下载进度', 'models.table.button.apiAccessInfo': 'API 接入信息', diff --git a/src/pages/llmodels/components/deploy-modal.tsx b/src/pages/llmodels/components/deploy-modal.tsx index 111ca62a..94f8baa4 100644 --- a/src/pages/llmodels/components/deploy-modal.tsx +++ b/src/pages/llmodels/components/deploy-modal.tsx @@ -29,7 +29,6 @@ import CompatibilityAlert from './compatible-alert'; import DataForm from './data-form'; import HFModelFile from './hf-model-file'; import ModelCard from './model-card'; -import OllamaTips from './ollama-tips'; import SearchModel from './search-model'; import Separator from './separator'; import TitleWrapper from './title-wrapper'; @@ -458,11 +457,7 @@ const AddModal: FC = (props) => { ? backendOptionsMap.ascendMindie : backendOptionsMap.vllm; - if (source === modelSourceMap.ollama_library_value) { - backend = backendOptionsMap.llamaBox; - } form.current?.setFieldValue?.('backend', backend); - setIsGGUF(source === modelSourceMap.ollama_library_value); } }; @@ -567,7 +562,6 @@ const AddModal: FC = (props) => { selectedModel={selectedModel} modelSource={props.source} onSelectFile={handleSelectModelFile} - updateEvaluteState={updateEvaluateState} collapsed={collapsed} gpuOptions={props.gpuOptions} > @@ -621,9 +615,6 @@ const AddModal: FC = (props) => { } > <> - {source === modelSourceMap.ollama_library_value && ( - - )} {SEARCH_SOURCE.includes(source) && deploymentType === 'modelList' && (