|
|
|
@@ -66,6 +66,9 @@ const ( |
|
|
|
SortByCreateTime = "create_time" |
|
|
|
ConfigTypeCustom = "custom" |
|
|
|
TotalVersionCount = 1 |
|
|
|
|
|
|
|
VolumeSourcePath = "192.168.0.30:/" |
|
|
|
VolumeDestPath = "/home/ma-user/sfs" |
|
|
|
) |
|
|
|
|
|
|
|
var ( |
|
|
|
@@ -374,6 +377,13 @@ func GenerateTrainJob(ctx *context.Context, req *GenerateTrainJobReq) (jobId str |
|
|
|
UserImageUrl: req.UserImageUrl, |
|
|
|
UserCommand: req.UserCommand, |
|
|
|
}, |
|
|
|
Volume: models.Volumes{ |
|
|
|
Nfs: models.Nfs{ |
|
|
|
SourcePath: VolumeSourcePath, |
|
|
|
DestPath: VolumeDestPath, |
|
|
|
ReadOnly: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
} else { |
|
|
|
jobResult, createErr = createTrainJob(models.CreateTrainJobParams{ |
|
|
|
@@ -394,6 +404,13 @@ func GenerateTrainJob(ctx *context.Context, req *GenerateTrainJobReq) (jobId str |
|
|
|
}, |
|
|
|
Parameter: req.Parameters, |
|
|
|
}, |
|
|
|
Volume: models.Volumes{ |
|
|
|
Nfs: models.Nfs{ |
|
|
|
SourcePath: VolumeSourcePath, |
|
|
|
DestPath: VolumeDestPath, |
|
|
|
ReadOnly: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
} |
|
|
|
if createErr != nil { |
|
|
|
|