chore: disabled across workers for mindie

This commit is contained in:
jialin
2025-04-17 12:34:53 +08:00
parent c8b0faf05d
commit 51ed9dab04
@@ -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());
};