diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index e7adeea18..3cfdd913b 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -3304,7 +3304,7 @@ Stopped_failed=任务停止失败,请稍后再试。 Stopped_success_update_status_fail=任务停止成功,状态及运行时间更新失败。 load_code_failed=代码加载失败,请确认选择了正确的分支。 -error.debug_datasetsize = 数据集大小超过限制(20GB) +error.debug_datasetsize = 数据集大小超过限制('%d'GB) error.dataset_select = 数据集选择错误:数量超过限制或者有同名数据集 new_train_gpu_tooltips = 训练脚本存储在 %s 中,数据集存储在 %s 中,预训练模型存放在运行参数 %s 中,训练输出请存储在 %s 中以供后续下载。 new_train_npu_tooltips = 训练脚本存储在 %s 中,预训练模型存放在运行参数 %s 中,训练输出请存储在 %s 中以供后续下载。 diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index f0238821c..3bf3c9dbd 100755 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -298,7 +298,7 @@ func cloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { for _, infos := range datasetInfos { attachSize += infos.Size } - if attachSize > int(setting.DebugAttachSize*1024*1024*1024) { + if attachSize > int(setting.DebugAttachSize*1000*1000*1000) { log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugAttachSize)) // GB cloudBrainNewDataPrepare(ctx, jobType) ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tpl, &form) diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index e1d79ecbd..47e8e7464 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -226,7 +226,7 @@ func Notebook2Create(ctx *context.Context, form auth.CreateModelArtsNotebookForm for _, infos := range datasetInfos { attachSize += infos.Size } - if attachSize > int(setting.DebugAttachSize * 1024 * 1024 * 1024) { + if attachSize > int(setting.DebugAttachSize*1000*1000*1000) { log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugAttachSize)) //GB notebookNewDataPrepare(ctx) ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tplModelArtsNotebookNew, &form)