diff --git a/package.json b/package.json index c05d0db3..8662d7b2 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@ant-design/pro-components": "3.1.0-0", "@antv/g6": "^5.0.51", "@braintree/sanitize-url": "^7.1.1", - "@gpustack/core-ui": "^1.0.25", + "@gpustack/core-ui": "^1.0.26", "@huggingface/gguf": "^0.1.7", "@huggingface/hub": "^0.15.1", "@huggingface/tasks": "^0.11.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7fd22080..95f204a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: ^7.1.1 version: 7.1.2 '@gpustack/core-ui': - specifier: ^1.0.25 - version: 1.0.25(czdvzceysqw7iv6pct2ucnb23e) + specifier: ^1.0.26 + version: 1.0.26(czdvzceysqw7iv6pct2ucnb23e) '@huggingface/gguf': specifier: ^0.1.7 version: 0.1.18 @@ -1484,8 +1484,8 @@ packages: resolution: {integrity: sha512-KWk80UPIzPmUg+P0rKh6TqspRw0G6eux1PuJr+zz47ftMaZ9QDwbGzHZbtzWkl5hgayM/qrKRutllRC7D/vVXQ==, tarball: https://registry.npmjs.org/@formatjs/intl-utils/-/intl-utils-2.3.0.tgz} deprecated: the package is rather renamed to @formatjs/ecma-abstract with some changes in functionality (primarily selectUnit is removed and we don't plan to make any further changes to this package - '@gpustack/core-ui@1.0.25': - resolution: {integrity: sha512-v23+IDPOmgPPUornhZa/EQsuA7YBY7fEF6VCYD4Y7im4bSP2HU2mgNEeszq/xKXoewyVWNVTSA8bBWx2qFYP6A==, tarball: https://registry.npmjs.org/@gpustack/core-ui/-/core-ui-1.0.25.tgz} + '@gpustack/core-ui@1.0.26': + resolution: {integrity: sha512-TVNoL5ADDHFKUsl90HmFRETqtX1r/C3TFxcQrsEm0bckgdoOQscsAPqqQintgR21RXl2T0XmVmUfziygBrqlRA==, tarball: https://registry.npmjs.org/@gpustack/core-ui/-/core-ui-1.0.26.tgz} peerDependencies: '@ant-design/icons': '>=6.0.0' '@ant-design/pro-components': 3.1.0-0 @@ -10808,7 +10808,7 @@ snapshots: '@formatjs/intl-utils@2.3.0': {} - '@gpustack/core-ui@1.0.25(czdvzceysqw7iv6pct2ucnb23e)': + '@gpustack/core-ui@1.0.26(czdvzceysqw7iv6pct2ucnb23e)': dependencies: '@ant-design/icons': 6.2.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@ant-design/pro-components': 3.1.0-0(antd@6.3.7(date-fns@2.30.0)(moment@2.30.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) diff --git a/src/pages/cluster-management/hooks/use-cluster-columns.tsx b/src/pages/cluster-management/hooks/use-cluster-columns.tsx index ee433d9a..fabea634 100644 --- a/src/pages/cluster-management/hooks/use-cluster-columns.tsx +++ b/src/pages/cluster-management/hooks/use-cluster-columns.tsx @@ -182,7 +182,7 @@ const useClusterColumns = ( ) }, { - title: 'GPUs', + title: intl.formatMessage({ id: 'menu.resources.gpus' }), dataIndex: 'gpus', span: 2, sorter: tableSorter(3), diff --git a/src/pages/gpu-service/instances/hooks/use-instances-columns.tsx b/src/pages/gpu-service/instances/hooks/use-instances-columns.tsx index 1c11bd20..e88296b7 100644 --- a/src/pages/gpu-service/instances/hooks/use-instances-columns.tsx +++ b/src/pages/gpu-service/instances/hooks/use-instances-columns.tsx @@ -76,7 +76,7 @@ const formatResources = ( if (!record.spec?.resources?.accelerator) { return { cpu: record.spec?.resources?.cpu - ? `${record.spec?.resources?.cpu} C` + ? `${record.spec?.resources?.cpu} vCPU` : '-', ram: record.spec?.resources?.ram ? toGB(record.spec?.resources?.ram) @@ -92,7 +92,7 @@ const formatResources = ( const vram = formatMemoryDisplay((instanceTypeSpec.spec as any)?.memory); return { - cpu: resources.cpu ? `${resources.cpu} C` : '-', + cpu: resources.cpu ? `${resources.cpu} vCPU` : '-', ram: resources.ram ? `${resources.ram} GB` : '-', vram, localStorage: record.spec?.resources?.localStorage