|
|
@@ -93,7 +93,6 @@ func createTrainJob(modelConvert *models.AiModelConvert, ctx *context.Context, m |
|
|
|
if modelConvert.SrcEngine == PYTORCH_ENGINE { |
|
|
|
|
|
|
|
codePath := setting.JobPath + modelConvert.ID + CodeMountPath |
|
|
|
log.Info("Volume codePath=" + codePath) |
|
|
|
|
|
|
|
downloadCode(repo, codePath, DefaultBranchName) |
|
|
|
|
|
|
@@ -101,6 +100,7 @@ func createTrainJob(modelConvert *models.AiModelConvert, ctx *context.Context, m |
|
|
|
log.Info("minio code path=" + setting.CBCodePathPrefix + modelConvert.ID) |
|
|
|
|
|
|
|
minioCodePath := setting.Attachment.Minio.RealPath + setting.Attachment.Minio.Bucket + "/" + setting.CBCodePathPrefix + modelConvert.ID |
|
|
|
log.Info("Volume codePath=" + minioCodePath) |
|
|
|
|
|
|
|
modelPath := setting.JobPath + modelConvert.ID + ModelMountPath + "/" |
|
|
|
log.Info("modelPath=" + modelPath) |
|
|
|