|
|
@@ -156,7 +156,7 @@ func GenerateNotebookJob(ctx *context.Context, req *GenerateNotebookJobReq) (job |
|
|
|
var codeGrampus models.GrampusDataset |
|
|
|
var cpCommand string |
|
|
|
imageUrl := req.ImageUrl |
|
|
|
if ProcessorTypeNPU == req.ProcessType { |
|
|
|
if ProcessorTypeNPU == req.ProcessType || ProcessorTypeGCU == req.ProcessType { |
|
|
|
datasetGrampus = getDatasetGrampus(req.DatasetInfos) |
|
|
|
if len(req.ModelName) != 0 { |
|
|
|
datasetGrampus = append(datasetGrampus, models.GrampusDataset{ |
|
|
@@ -225,6 +225,7 @@ func GenerateNotebookJob(ctx *context.Context, req *GenerateNotebookJobReq) (job |
|
|
|
AutoStopDuration: autoStopDurationMs, |
|
|
|
Capacity: setting.Capacity, |
|
|
|
Command: req.Command, |
|
|
|
CenterID: req.Spec.GetAvailableCenterIds(ctx.User.ID), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
@@ -273,6 +274,8 @@ func GenerateNotebookJob(ctx *context.Context, req *GenerateNotebookJobReq) (job |
|
|
|
actionType = models.ActionCreateGrampusNPUDebugTask |
|
|
|
} else if req.ComputeResource == models.GPUResource { |
|
|
|
actionType = models.ActionCreateGrampusGPUDebugTask |
|
|
|
} else if req.ComputeResource == models.GCUResource { |
|
|
|
actionType = models.ActionCreateGrampusGCUDebugTask |
|
|
|
} |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, req.DisplayJobName, actionType) |
|
|
|
|
|
|
|