chore: add mindie option
This commit is contained in:
@@ -172,9 +172,6 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
|||||||
},
|
},
|
||||||
getFieldsValue: () => {
|
getFieldsValue: () => {
|
||||||
return form.getFieldsValue();
|
return form.getFieldsValue();
|
||||||
},
|
|
||||||
resetFields() {
|
|
||||||
form.resetFields();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -276,6 +273,14 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
|||||||
? false
|
? false
|
||||||
: isGGUF
|
: isGGUF
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Ascend Mindie',
|
||||||
|
value: backendOptionsMap.ascendMindie,
|
||||||
|
disabled:
|
||||||
|
props.source === modelSourceMap.local_path_value
|
||||||
|
? false
|
||||||
|
: isGGUF
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'vox-box',
|
label: 'vox-box',
|
||||||
value: backendOptionsMap.voxBox,
|
value: backendOptionsMap.voxBox,
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ const backendOptions = [
|
|||||||
label: 'vLLM',
|
label: 'vLLM',
|
||||||
value: backendOptionsMap.vllm
|
value: backendOptionsMap.vllm
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Ascend Mindie',
|
||||||
|
value: backendOptionsMap.ascendMindie
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'vox-box',
|
label: 'vox-box',
|
||||||
value: backendOptionsMap.voxBox
|
value: backendOptionsMap.voxBox
|
||||||
@@ -306,12 +310,10 @@ const AddModal: React.FC<AddModalProps> = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleBackendChange = (backend: string) => {
|
const handleBackendChange = (backend: string) => {
|
||||||
if (backend === backendOptionsMap.vllm) {
|
|
||||||
setIsGGUF(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (backend === backendOptionsMap.llamaBox) {
|
if (backend === backendOptionsMap.llamaBox) {
|
||||||
setIsGGUF(true);
|
setIsGGUF(true);
|
||||||
|
} else {
|
||||||
|
setIsGGUF(false);
|
||||||
}
|
}
|
||||||
const sizeList = handleSetSizeOptions({
|
const sizeList = handleSetSizeOptions({
|
||||||
backend: backend
|
backend: backend
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import TitleWrapper from './title-wrapper';
|
|||||||
const resetFields = [
|
const resetFields = [
|
||||||
'cpu_offloading',
|
'cpu_offloading',
|
||||||
'distributed_inference_across_workers',
|
'distributed_inference_across_workers',
|
||||||
'backend',
|
|
||||||
'backend_version',
|
'backend_version',
|
||||||
'backend_parameters'
|
'backend_parameters'
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -519,6 +519,14 @@ const UpdateModal: React.FC<AddModalProps> = (props) => {
|
|||||||
? false
|
? false
|
||||||
: isGGUF
|
: isGGUF
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Ascend Mindie',
|
||||||
|
value: backendOptionsMap.ascendMindie,
|
||||||
|
disabled:
|
||||||
|
formData?.source === modelSourceMap.local_path_value
|
||||||
|
? false
|
||||||
|
: isGGUF
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'vox-box',
|
label: 'vox-box',
|
||||||
value: backendOptionsMap.voxBox,
|
value: backendOptionsMap.voxBox,
|
||||||
|
|||||||
@@ -131,7 +131,8 @@ export const localPathTipsList = [
|
|||||||
export const backendOptionsMap = {
|
export const backendOptionsMap = {
|
||||||
llamaBox: 'llama-box',
|
llamaBox: 'llama-box',
|
||||||
vllm: 'vllm',
|
vllm: 'vllm',
|
||||||
voxBox: 'vox-box'
|
voxBox: 'vox-box',
|
||||||
|
ascendMindie: 'ascend-mindie'
|
||||||
};
|
};
|
||||||
|
|
||||||
export const backendParamsHolderTips = {
|
export const backendParamsHolderTips = {
|
||||||
|
|||||||
Reference in New Issue
Block a user