diff --git a/src/pages/llmodels/hooks/index.ts b/src/pages/llmodels/hooks/index.ts index 0c06f859..6f9d732e 100644 --- a/src/pages/llmodels/hooks/index.ts +++ b/src/pages/llmodels/hooks/index.ts @@ -230,6 +230,9 @@ export const useGenerateModelFileOptions = () => { // handle for ascend npu only export const checkOnlyAscendNPU = (gpuOptions: any[]) => { + if (!gpuOptions?.length) { + return false; + } return gpuOptions?.every?.((item) => { return item.children?.every((child: any) => { return _.toLower(child.vendor) === 'huawei';