import ascendLogo from '@/assets/logo/ascend.png'; import CambriconPNG from '@/assets/logo/cambricon.png'; import hyponPNG from '@/assets/logo/hygon.png'; import iluvatarWEBP from '@/assets/logo/Iluvatar.png'; import metaxLogo from '@/assets/logo/metax.png'; import moorePNG from '@/assets/logo/moore _threads.png'; import IconFont from '@/components/icon-font'; import { AddWorkerDockerNotes, GPUDriverMap } from '@/pages/resources/config/gpu-driver'; import { useIntl } from '@umijs/max'; import styled from 'styled-components'; import ProviderCatalog from './provider-catalog'; const Box = styled.div` .template-card-wrapper { .template-card-inner { line-height: 1; .template-card-content { font-size: 13px; } } } `; const ProviderImage = ({ src, showBg }: { src: string; showBg?: boolean }) => { return ( ); }; interface SupportedHardwareProps { onSelect?: (provider: string, item: any) => void; current?: string; clickable?: boolean; } const SupportedHardware: React.FC = ({ onSelect, clickable, current }) => { const intl = useIntl(); const supportedHardPlatforms = [ { label: 'NVIDIA', value: GPUDriverMap.NVIDIA, description: '', key: GPUDriverMap.NVIDIA, locale: false, notes: AddWorkerDockerNotes[GPUDriverMap.NVIDIA], link: 'https://docs.gpustack.ai/latest/installation/requirements/#nvidia-gpu', icon: }, { label: 'AMD', description: '', value: GPUDriverMap.AMD, key: GPUDriverMap.AMD, locale: false, notes: AddWorkerDockerNotes[GPUDriverMap.AMD], link: 'https://docs.gpustack.ai/latest/installation/requirements/#amd-gpu', icon: ( ) }, { label: intl.formatMessage({ id: 'vendor.ascend' }), description: '', value: GPUDriverMap.ASCEND, key: GPUDriverMap.ASCEND, locale: false, notes: AddWorkerDockerNotes[GPUDriverMap.ASCEND], link: 'https://docs.gpustack.ai/latest/installation/requirements/#ascend-npu', icon: }, { label: intl.formatMessage({ id: 'vendor.hygon' }), description: '', value: GPUDriverMap.HYGON, key: GPUDriverMap.HYGON, locale: false, notes: AddWorkerDockerNotes[GPUDriverMap.HYGON], link: 'https://docs.gpustack.ai/latest/installation/requirements/#hygon-dcu', icon: }, { label: intl.formatMessage({ id: 'vendor.moorthreads' }), description: 'common.tag.experimental', value: GPUDriverMap.MOORE_THREADS, key: GPUDriverMap.MOORE_THREADS, locale: false, notes: AddWorkerDockerNotes[GPUDriverMap.MOORE_THREADS], link: 'https://docs.gpustack.ai/latest/installation/requirements/#mthreads-gpu', icon: }, { label: intl.formatMessage({ id: 'vendor.iluvatar' }), description: 'common.tag.experimental', value: GPUDriverMap.ILUVATAR, key: GPUDriverMap.ILUVATAR, locale: false, notes: AddWorkerDockerNotes[GPUDriverMap.ILUVATAR], link: 'https://docs.gpustack.ai/latest/installation/requirements/#iluvatar-gpu', icon: }, { label: intl.formatMessage({ id: 'vendor.cambricon' }), description: 'common.tag.experimental', value: GPUDriverMap.CAMBRICON, key: GPUDriverMap.CAMBRICON, locale: false, notes: AddWorkerDockerNotes[GPUDriverMap.CAMBRICON], link: 'https://docs.gpustack.ai/latest/installation/requirements/#cambricon-mlu', icon: }, { label: intl.formatMessage({ id: 'vendor.metax' }), description: 'common.tag.experimental', value: GPUDriverMap.METAX, key: GPUDriverMap.METAX, locale: false, link: 'https://docs.gpustack.ai/latest/installation/requirements/#metax-gpu', notes: AddWorkerDockerNotes[GPUDriverMap.METAX], icon: } ]; return ( ); }; export default SupportedHardware;