Browse Source

提交代码

tags/v1.22.9.2^2
ychao_1983 3 years ago
parent
commit
f5652669aa
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      routers/repo/cloudbrain.go
  2. +1
    -1
      routers/repo/grampus.go
  3. +1
    -1
      routers/repo/modelarts.go

+ 1
- 1
routers/repo/cloudbrain.go View File

@@ -2769,7 +2769,7 @@ func getTrainJobCommand(form auth.CreateCloudBrainForm) (string, error) {
}
}
if form.CkptName != "" {
param += " --pretrainmodelname" + "=" + form.CkptName
param += " --ckpt_url" + "=" + "/pretrainmodel/" + form.CkptName
}

command += "python /code/" + bootFile + param + " > " + cloudbrain.ModelMountPath + "/" + form.DisplayJobName + "-" + cloudbrain.LogFile


+ 1
- 1
routers/repo/grampus.go View File

@@ -994,7 +994,7 @@ func generateCommand(repoName, processorType, codeRemotePath, dataRemotePath, bo
}

if pretrainModelFileName != "" {
paramCode += " --pretrainmodelname" + "=" + pretrainModelFileName
paramCode += " --ckpt_url" + "=" + workDir + "pretrainmodel/" + pretrainModelFileName
}

var commandCode string


+ 1
- 1
routers/repo/modelarts.go View File

@@ -1054,7 +1054,7 @@ func TrainJobCreate(ctx *context.Context, form auth.CreateModelArtsTrainJobForm)
}
if !account.IsPointBalanceEnough(ctx.User.ID, spec.UnitPrice*form.WorkServerNumber) {
log.Error("point balance is not enough,userId=%d specId=%d", ctx.User.ID, spec.ID)
cloudBrainNewDataPrepare(ctx)
trainJobNewDataPrepare(ctx)
ctx.RenderWithErr(ctx.Tr("points.insufficient_points_balance"), tplModelArtsTrainJobNew, &form)
return
}


Loading…
Cancel
Save