|
|
@@ -93,7 +93,9 @@ func createTrainJob(modelConvert *models.AiModelConvert, ctx *context.Context, m |
|
|
|
if modelConvert.SrcEngine == PYTORCH_ENGINE { |
|
|
|
codePath := setting.JobPath + modelConvert.ID + CodeMountPath |
|
|
|
downloadCode(repo, codePath, DefaultBranchName) |
|
|
|
|
|
|
|
uploadCodeToMinio(codePath+"/", modelConvert.ID, CodeMountPath+"/") |
|
|
|
log.Info("minio code path=" + setting.CBCodePathPrefix + modelConvert.ID) |
|
|
|
|
|
|
|
modelPath := setting.JobPath + modelConvert.ID + ModelMountPath + "/" |
|
|
|
mkModelPath(modelPath) |
|
|
|