| @@ -306,8 +306,8 @@ func CloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { | |||||
| command := cloudbrain.GetCloudbrainDebugCommand() | command := cloudbrain.GetCloudbrainDebugCommand() | ||||
| if jobType == string(models.JobTypeTrain) { | if jobType == string(models.JobTypeTrain) { | ||||
| bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExict { | |||||
| bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExist { | |||||
| log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | ||||
| cloudBrainNewDataPrepare(ctx) | cloudBrainNewDataPrepare(ctx) | ||||
| ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tpl, &form) | ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tpl, &form) | ||||
| @@ -459,8 +459,8 @@ func CloudBrainInferenceJobCreate(ctx *context.Context, form auth.CreateCloudBra | |||||
| return | return | ||||
| } | } | ||||
| bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExict { | |||||
| bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExist { | |||||
| log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | ||||
| cloudBrainNewDataPrepare(ctx) | cloudBrainNewDataPrepare(ctx) | ||||
| ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tpl, &form) | ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tpl, &form) | ||||
| @@ -215,8 +215,8 @@ func GrampusTrainJobGpuCreate(ctx *context.Context, form auth.CreateGrampusTrain | |||||
| return | return | ||||
| } | } | ||||
| bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExict { | |||||
| bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExist { | |||||
| log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | ||||
| grampusTrainJobNewDataPrepare(ctx, grampus.ProcessorTypeGPU) | grampusTrainJobNewDataPrepare(ctx, grampus.ProcessorTypeGPU) | ||||
| ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplGrampusTrainJobGPUNew, &form) | ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplGrampusTrainJobGPUNew, &form) | ||||
| @@ -407,8 +407,8 @@ func GrampusTrainJobNpuCreate(ctx *context.Context, form auth.CreateGrampusTrain | |||||
| return | return | ||||
| } | } | ||||
| bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExict { | |||||
| bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExist { | |||||
| log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | log.Error("Get bootfile error:", err, ctx.Data["MsgID"]) | ||||
| grampusTrainJobNewDataPrepare(ctx, grampus.ProcessorTypeNPU) | grampusTrainJobNewDataPrepare(ctx, grampus.ProcessorTypeNPU) | ||||
| ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplGrampusTrainJobNPUNew, &form) | ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplGrampusTrainJobNPUNew, &form) | ||||
| @@ -1117,8 +1117,8 @@ func TrainJobCreate(ctx *context.Context, form auth.CreateModelArtsTrainJobForm) | |||||
| return | return | ||||
| } | } | ||||
| bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExict { | |||||
| bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExist { | |||||
| log.Error("Get bootfile error:", err) | log.Error("Get bootfile error:", err) | ||||
| trainJobErrorNewDataPrepare(ctx, form) | trainJobErrorNewDataPrepare(ctx, form) | ||||
| ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsTrainJobNew, &form) | ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsTrainJobNew, &form) | ||||
| @@ -1422,8 +1422,8 @@ func TrainJobCreateVersion(ctx *context.Context, form auth.CreateModelArtsTrainJ | |||||
| return | return | ||||
| } | } | ||||
| bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExict { | |||||
| bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExist { | |||||
| log.Error("Get bootfile error:", err) | log.Error("Get bootfile error:", err) | ||||
| versionErrorDataPrepare(ctx, form) | versionErrorDataPrepare(ctx, form) | ||||
| ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsTrainJobVersionNew, &form) | ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsTrainJobVersionNew, &form) | ||||
| @@ -2076,8 +2076,8 @@ func InferenceJobCreate(ctx *context.Context, form auth.CreateModelArtsInference | |||||
| return | return | ||||
| } | } | ||||
| bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExict { | |||||
| bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) | |||||
| if err != nil || !bootFileExist { | |||||
| log.Error("Get bootfile error:", err) | log.Error("Get bootfile error:", err) | ||||
| inferenceJobErrorNewDataPrepare(ctx, form) | inferenceJobErrorNewDataPrepare(ctx, form) | ||||
| ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsInferenceJobNew, &form) | ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsInferenceJobNew, &form) | ||||