Browse Source

Merge branch 'zouap_static' of openi.pcl.ac.cn:OpenI/aiforge into zouap_static

pull/3226/head
chenshihai 2 years ago
parent
commit
1b73288532
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/ai_model_manage.go

+ 1
- 1
routers/repo/ai_model_manage.go View File

@@ -78,7 +78,7 @@ func saveModelByParameters(jobId string, versionName string, name string, versio
cloudType = models.TypeCloudBrainTwo
spec, err := resource.GetCloudbrainSpec(aiTask.ID)
if err == nil {
flaverName := "NPU: " + fmt.Sprint(spec.AccCardsNum) + "*" + spec.AccCardType + ",CPU: " + fmt.Sprint(spec.CpuCores) + "," + ctx.Tr("cloudbrain.memory") + ": " + fmt.Sprint(spec.MemGiB) + "GB," + ctx.Tr("cloudbrain.shared_memory") + ": " + fmt.Sprint(spec.ShareMemGiB) + "GB"
flaverName := "NPU: " + fmt.Sprint(spec.AccCardsNum) + "*" + spec.AccCardType + ",CPU: " + fmt.Sprint(spec.CpuCores) + "," + ctx.Tr("cloudbrain.gpu_memory") + ": " + fmt.Sprint(spec.GPUMemGiB) + "GB," + ctx.Tr("cloudbrain.memory") + ": " + fmt.Sprint(spec.MemGiB) + "GB"
aiTask.FlavorName = flaverName
}
} else if aiTask.ComputeResource == models.GPUResource {


Loading…
Cancel
Save