@@ -3304,7 +3304,7 @@ Stopped_failed=任务停止失败,请稍后再试。 | |||||
Stopped_success_update_status_fail=任务停止成功,状态及运行时间更新失败。 | Stopped_success_update_status_fail=任务停止成功,状态及运行时间更新失败。 | ||||
load_code_failed=代码加载失败,请确认选择了正确的分支。 | load_code_failed=代码加载失败,请确认选择了正确的分支。 | ||||
error.debug_datasetsize = 数据集大小超过限制(20GB) | |||||
error.debug_datasetsize = 数据集大小超过限制('%d'GB) | |||||
error.dataset_select = 数据集选择错误:数量超过限制或者有同名数据集 | error.dataset_select = 数据集选择错误:数量超过限制或者有同名数据集 | ||||
new_train_gpu_tooltips = 训练脚本存储在 <strong style="color:#010101">%s</strong> 中,数据集存储在 <strong style="color:#010101">%s</strong> 中,预训练模型存放在运行参数 <strong style="color:#010101">%s</strong> 中,训练输出请存储在 <strong style="color:#010101">%s</strong> 中以供后续下载。 | new_train_gpu_tooltips = 训练脚本存储在 <strong style="color:#010101">%s</strong> 中,数据集存储在 <strong style="color:#010101">%s</strong> 中,预训练模型存放在运行参数 <strong style="color:#010101">%s</strong> 中,训练输出请存储在 <strong style="color:#010101">%s</strong> 中以供后续下载。 | ||||
new_train_npu_tooltips = 训练脚本存储在 <strong style="color:#010101">%s</strong> 中,预训练模型存放在运行参数 <strong style="color:#010101">%s</strong> 中,训练输出请存储在 <strong style="color:#010101">%s</strong> 中以供后续下载。 | new_train_npu_tooltips = 训练脚本存储在 <strong style="color:#010101">%s</strong> 中,预训练模型存放在运行参数 <strong style="color:#010101">%s</strong> 中,训练输出请存储在 <strong style="color:#010101">%s</strong> 中以供后续下载。 | ||||
@@ -298,7 +298,7 @@ func cloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { | |||||
for _, infos := range datasetInfos { | for _, infos := range datasetInfos { | ||||
attachSize += infos.Size | 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 | log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugAttachSize)) // GB | ||||
cloudBrainNewDataPrepare(ctx, jobType) | cloudBrainNewDataPrepare(ctx, jobType) | ||||
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tpl, &form) | ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tpl, &form) | ||||
@@ -226,7 +226,7 @@ func Notebook2Create(ctx *context.Context, form auth.CreateModelArtsNotebookForm | |||||
for _, infos := range datasetInfos { | for _, infos := range datasetInfos { | ||||
attachSize += infos.Size | 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 | log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugAttachSize)) //GB | ||||
notebookNewDataPrepare(ctx) | notebookNewDataPrepare(ctx) | ||||
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tplModelArtsNotebookNew, &form) | ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tplModelArtsNotebookNew, &form) | ||||