tzwang 10 months ago
parent
commit
d6dffcb165
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      internal/storeLink/modelarts.go

+ 9
- 0
internal/storeLink/modelarts.go View File

@@ -611,6 +611,15 @@ func (m *ModelArtsLink) Execute(ctx context.Context, option *option.AiOption, mo
if ascendNum == v.FlavorInfo.Npu.UnitNum {
option.ResourceId = v.FlavorId
break
} else if ascendNum == 3 {
option.ResourceId = "modelarts.kat1.4xlarge"
break
} else if ascendNum >= 5 && ascendNum <= 8 {
option.ResourceId = "modelarts.kat1.8xlarge"
break
} else if ascendNum > 8 {
option.ResourceId = "modelarts.kat1.8xlarge"
break
}
}
if err != nil {


Loading…
Cancel
Save