|
|
@@ -967,7 +967,7 @@ func TrainJobCreate(ctx *context.Context, form auth.CreateModelArtsTrainJobForm) |
|
|
|
description := form.Description |
|
|
|
workServerNumber := form.WorkServerNumber |
|
|
|
engineID := form.EngineID |
|
|
|
bootFile := form.BootFile |
|
|
|
bootFile := strings.TrimSpace(form.BootFile) |
|
|
|
flavorCode := form.Flavor |
|
|
|
params := form.Params |
|
|
|
poolID := form.PoolID |
|
|
@@ -1210,7 +1210,7 @@ func TrainJobCreateVersion(ctx *context.Context, form auth.CreateModelArtsTrainJ |
|
|
|
description := form.Description |
|
|
|
workServerNumber := form.WorkServerNumber |
|
|
|
engineID := form.EngineID |
|
|
|
bootFile := form.BootFile |
|
|
|
bootFile := strings.TrimSpace(form.BootFile) |
|
|
|
flavorCode := form.Flavor |
|
|
|
params := form.Params |
|
|
|
poolID := form.PoolID |
|
|
@@ -1284,7 +1284,7 @@ func TrainJobCreateVersion(ctx *context.Context, form auth.CreateModelArtsTrainJ |
|
|
|
|
|
|
|
var parameters models.Parameters |
|
|
|
param := make([]models.Parameter, 0) |
|
|
|
existDeviceTarget := true |
|
|
|
existDeviceTarget := false |
|
|
|
if len(params) != 0 { |
|
|
|
err := json.Unmarshal([]byte(params), ¶meters) |
|
|
|
if err != nil { |
|
|
@@ -1803,7 +1803,7 @@ func InferenceJobCreate(ctx *context.Context, form auth.CreateModelArtsInference |
|
|
|
description := form.Description |
|
|
|
workServerNumber := form.WorkServerNumber |
|
|
|
engineID := form.EngineID |
|
|
|
bootFile := form.BootFile |
|
|
|
bootFile := strings.TrimSpace(form.BootFile) |
|
|
|
flavorCode := form.Flavor |
|
|
|
params := form.Params |
|
|
|
poolID := form.PoolID |
|
|
|