Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/apis/onecloud/v1alpha1/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var (
}
DefaultLLMSku = []llmapi.LLMSkuCreateInput{
newLLMSku("ollama-4c4g", 4, 4096, 40960, 1000, DefaultOllamaImageName, "ollama"),
newLLMSku("openclaw-4c8g", 4, 8192, 40960, 1000, DefaultOpenclawImageName, "openclaw"),
newLLMSku("openclaw-4c4g", 4, 4096, 40960, 1000, DefaultOpenclawImageName, "openclaw"),
newLLMSku("comfyui-8c16g", 8, 16384, 40960, 1000, DefaultComfyuiImageName, "comfyui"),
}
)
Expand Down Expand Up @@ -1006,7 +1006,8 @@ func newLLMSku(name string, cpu, memory, diskSize int, bandwidth int, imageId, l
LLMSKuBaseCreateInput: llmapi.LLMSKuBaseCreateInput{
SharableVirtualResourceCreateInput: apis.SharableVirtualResourceCreateInput{
SharableResourceBaseCreateInput: apis.SharableResourceBaseCreateInput{
IsPublic: &isPublic,
IsPublic: &isPublic,
PublicScope: "system",
},
VirtualResourceCreateInput: apis.VirtualResourceCreateInput{
StatusStandaloneResourceCreateInput: apis.StatusStandaloneResourceCreateInput{
Expand Down
5 changes: 4 additions & 1 deletion pkg/util/onecloud/onecloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,10 @@ func InitLLMSku(s *mcclient.ClientSession, skus []llmapi.LLMSkuCreateInput) erro
return errors.Errorf("memory is required for sku at index %d", i)
}

input.Devices = &devices
// openclaw and dify types do not require devices (no GPU)
if input.LLMType != "openclaw" && input.LLMType != "dify" {
input.Devices = &devices
}

// Ensure SKU exists
_, err := EnsureLLMSku(s, input)
Expand Down
Loading