Browse Source

#2863

update
tags/v1.22.9.1^2^2
chenyifan01 3 years ago
parent
commit
4c414b9203
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      routers/repo/modelarts.go

+ 1
- 8
routers/repo/modelarts.go View File

@@ -2552,14 +2552,7 @@ func inferenceJobErrorNewDataPrepare(ctx *context.Context, form auth.CreateModel
return err
}
ctx.Data["engine_versions"] = versionInfos.Version

var flavorInfos modelarts.Flavor
if err = json.Unmarshal([]byte(setting.TrainJobFLAVORINFOS), &flavorInfos); err != nil {
ctx.ServerError("json.Unmarshal failed:", err)
return err
}
ctx.Data["flavor_infos"] = flavorInfos.Info
setSpecBySpecialPoolConfig(ctx, string(models.JobTypeInference))
prepareCloudbrainTwoInferenceSpecs(ctx)

configList, err := getConfigList(modelarts.PerPage, 1, modelarts.SortByCreateTime, "desc", "", modelarts.ConfigTypeCustom)
if err != nil {


Loading…
Cancel
Save