chore: disabled across workers for mindie
This commit is contained in:
@@ -196,7 +196,19 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGpuSelectorChange = (value: any[] | string) => {
|
const handleBeforeGpuSelectorChange = (gpuIds: any[]) => {
|
||||||
|
if (backend !== backendOptionsMap.ascendMindie || !gpuIds?.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const lastGroupName = gpuIds[gpuIds.length - 1][0];
|
||||||
|
|
||||||
|
const lastGroupItems = gpuIds.filter((item) => item[0] === lastGroupName);
|
||||||
|
|
||||||
|
form.setFieldValue(['gpu_selector', 'gpu_ids'], lastGroupItems);
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleGpuSelectorChange = (value: any[]) => {
|
||||||
|
handleBeforeGpuSelectorChange(value);
|
||||||
onValuesChange?.({}, form.getFieldsValue());
|
onValuesChange?.({}, form.getFieldsValue());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user