fix: gpus link

This commit is contained in:
jialin
2025-11-25 11:34:11 +08:00
parent 6b402e944b
commit 33defab7df
5 changed files with 24 additions and 11 deletions
+1 -2
View File
@@ -66,8 +66,7 @@ const FilterBox = styled.div`
top: 0; top: 0;
width: 100%; width: 100%;
z-index: 100; z-index: 100;
padding-bottom: 16px; margin-block: 16px;
padding-top: 16px;
background-color: var(--ant-color-bg-container); background-color: var(--ant-color-bg-container);
`; `;
@@ -45,7 +45,7 @@ const SelectVendor = () => {
updateField('currentGPU', GPUDriverMap.NVIDIA); updateField('currentGPU', GPUDriverMap.NVIDIA);
updateField('workerCommand', { updateField('workerCommand', {
label: 'NVIDIA', label: 'NVIDIA',
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#nvidia-cuda', link: 'https://docs.gpustack.ai/latest/installation/nvidia/installation/#prerequisites',
notes: AddWorkerDockerNotes[GPUDriverMap.NVIDIA] notes: AddWorkerDockerNotes[GPUDriverMap.NVIDIA]
}); });
}, []); }, []);
@@ -57,7 +57,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
key: GPUDriverMap.NVIDIA, key: GPUDriverMap.NVIDIA,
locale: false, locale: false,
notes: AddWorkerDockerNotes[GPUDriverMap.NVIDIA], notes: AddWorkerDockerNotes[GPUDriverMap.NVIDIA],
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#nvidia-cuda', link: 'https://docs.gpustack.ai/latest/installation/nvidia/installation/#prerequisites',
icon: <IconFont type="icon-nvidia2" style={{ fontSize: 32 }} /> icon: <IconFont type="icon-nvidia2" style={{ fontSize: 32 }} />
}, },
{ {
@@ -67,7 +67,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
key: GPUDriverMap.AMD, key: GPUDriverMap.AMD,
locale: false, locale: false,
notes: AddWorkerDockerNotes[GPUDriverMap.AMD], notes: AddWorkerDockerNotes[GPUDriverMap.AMD],
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#amd-rocm', link: 'https://docs.gpustack.ai/latest/installation/amd/installation/#prerequisites',
icon: ( icon: (
<IconFont <IconFont
type="icon-amd" type="icon-amd"
@@ -82,7 +82,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
key: GPUDriverMap.ASCEND, key: GPUDriverMap.ASCEND,
locale: false, locale: false,
notes: AddWorkerDockerNotes[GPUDriverMap.ASCEND], notes: AddWorkerDockerNotes[GPUDriverMap.ASCEND],
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#ascend-cann', link: 'https://docs.gpustack.ai/latest/installation/ascend/installation/#prerequisites',
icon: <ProviderImage src={ascendLogo} showBg /> icon: <ProviderImage src={ascendLogo} showBg />
}, },
{ {
@@ -92,7 +92,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
key: GPUDriverMap.HYGON, key: GPUDriverMap.HYGON,
locale: false, locale: false,
notes: AddWorkerDockerNotes[GPUDriverMap.HYGON], notes: AddWorkerDockerNotes[GPUDriverMap.HYGON],
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#hygon-dtk', link: 'https://docs.gpustack.ai/latest/installation/hygon/installation/#prerequisites',
icon: <ProviderImage src={hyponPNG} /> icon: <ProviderImage src={hyponPNG} />
}, },
{ {
@@ -102,7 +102,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
key: GPUDriverMap.MOORE_THREADS, key: GPUDriverMap.MOORE_THREADS,
locale: false, locale: false,
notes: AddWorkerDockerNotes[GPUDriverMap.MOORE_THREADS], notes: AddWorkerDockerNotes[GPUDriverMap.MOORE_THREADS],
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#moore-threads-musa', link: 'https://docs.gpustack.ai/latest/installation/mthreads/installation/#prerequisites',
icon: <ProviderImage src={moorePNG} /> icon: <ProviderImage src={moorePNG} />
}, },
{ {
@@ -112,7 +112,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
key: GPUDriverMap.ILUVATAR, key: GPUDriverMap.ILUVATAR,
locale: false, locale: false,
notes: AddWorkerDockerNotes[GPUDriverMap.ILUVATAR], notes: AddWorkerDockerNotes[GPUDriverMap.ILUVATAR],
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#iluvatar-corex', link: 'https://docs.gpustack.ai/latest/installation/iluvatar/installation/#prerequisites',
icon: <ProviderImage src={iluvatarWEBP} showBg /> icon: <ProviderImage src={iluvatarWEBP} showBg />
}, },
{ {
@@ -122,7 +122,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
key: GPUDriverMap.CAMBRICON, key: GPUDriverMap.CAMBRICON,
locale: false, locale: false,
notes: AddWorkerDockerNotes[GPUDriverMap.CAMBRICON], notes: AddWorkerDockerNotes[GPUDriverMap.CAMBRICON],
link: 'https://docs.gpustack.ai/latest/installation/installation-requirements/#cambricon-mlu', link: 'https://docs.gpustack.ai/latest/installation/cambricon/installation/#prerequisites',
icon: <ProviderImage src={CambriconPNG} /> icon: <ProviderImage src={CambriconPNG} />
}, },
{ {
+13 -1
View File
@@ -91,6 +91,18 @@ const BackendFields: React.FC = () => {
return option.data.title; return option.data.title;
}; };
const versionOptionRender = (option: any) => {
const { data } = option;
return data.is_deprecated ? (
<span>
{data.title}
<span className="text-tertiary m-l-4">[Deprecated]</span>
</span>
) : (
<span>{data.title}</span>
);
};
const labelRender = (option: any) => { const labelRender = (option: any) => {
return option.title; return option.title;
}; };
@@ -121,7 +133,7 @@ const BackendFields: React.FC = () => {
<SealSelect <SealSelect
allowClear allowClear
options={backendVersions} options={backendVersions}
optionRender={optionRender} optionRender={versionOptionRender}
labelRender={labelRender} labelRender={labelRender}
placeholder={intl.formatMessage({ placeholder={intl.formatMessage({
id: 'models.form.backendVersion.holder' id: 'models.form.backendVersion.holder'
@@ -47,6 +47,7 @@ const CustomBackend: React.FC = () => {
<SealInput.Input <SealInput.Input
required required
allowClear allowClear
onBlur={handleImageNameOnBlur}
label={intl.formatMessage({ id: 'backend.imageName' })} label={intl.formatMessage({ id: 'backend.imageName' })}
></SealInput.Input> ></SealInput.Input>
</Form.Item> </Form.Item>
@@ -65,6 +66,7 @@ const CustomBackend: React.FC = () => {
scaleSize={false} scaleSize={false}
alwaysFocus={true} alwaysFocus={true}
autoSize={{ minRows: 2, maxRows: 4 }} autoSize={{ minRows: 2, maxRows: 4 }}
onBlur={handleRunCommandOnBlur}
label={intl.formatMessage({ id: 'backend.runCommand' })} label={intl.formatMessage({ id: 'backend.runCommand' })}
description={intl.formatMessage({ description={intl.formatMessage({
id: 'backend.form.defaultExecuteCommand.tips' id: 'backend.form.defaultExecuteCommand.tips'