fix: access control, voices options

This commit is contained in:
jialin
2025-11-11 15:47:32 +08:00
parent ee5c30934b
commit 84187eedc4
19 changed files with 196 additions and 59 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
export const GPUDriverMap = {
NVIDIA: 'cuda',
AMD: 'rocm',
ASCEND: 'npu',
HYGON: 'dcu',
ASCEND: 'cann',
HYGON: 'dtk',
MOORE_THREADS: 'musa',
ILUVATAR: 'corex',
CAMBRICON: 'cambricon',
METAX: 'metax'
CAMBRICON: 'neuware',
METAX: 'maca'
};
const ManufacturerMap = {
@@ -45,7 +45,7 @@ export const GPUsConfigs: Record<
[GPUDriverMap.HYGON]: {
label: ManufacturerMap[GPUDriverMap.HYGON],
value: GPUDriverMap.HYGON,
runtime: 'dcu', // TODO: confirm runtime name
runtime: '', // TODO: confirm runtime name
driver: 'hy-smi'
},
[GPUDriverMap.MOORE_THREADS]: {
@@ -57,7 +57,7 @@ export const GPUsConfigs: Record<
[GPUDriverMap.ILUVATAR]: {
label: ManufacturerMap[GPUDriverMap.ILUVATAR],
value: GPUDriverMap.ILUVATAR,
runtime: 'corex', // TODO: confirm runtime name
runtime: '', // TODO: confirm runtime name
driver: 'ixsmi'
},
[GPUDriverMap.CAMBRICON]: {
-9
View File
@@ -68,15 +68,6 @@ export const addWorkerGuide: Record<string, any> = {
}
};
export const containerInstallOptions = [
{ label: 'NVIDIA CUDA', value: 'cuda' },
{ label: 'AMD ROCm', value: 'rocm' },
{ label: 'Ascend CANN', value: 'npu' },
{ label: 'Hygon DTK', value: 'dcu' },
{ label: 'Moore Threads MUSA', value: 'musa' },
{ label: 'Iluvatar Corex', value: 'corex' }
];
export const ModelfileStateMap = {
Error: 'error',
Downloading: 'downloading',