for devices that gpu is not supported, use cpu to merge lora

This commit is contained in:
josc146 2023-12-06 23:17:13 +08:00
parent c853c5b60b
commit c733b6419c

View File

@ -470,7 +470,7 @@ const LoraFinetune: FC = observer(() => {
return;
if (loraParams.loraLoad) {
const outputPath = `models/${loraParams.baseModel}-LoRA-${loraParams.loraLoad}`;
MergeLora(commonStore.settings.customPythonPath, true, loraParams.loraAlpha,
MergeLora(commonStore.settings.customPythonPath, !!commonStore.monitorData && commonStore.monitorData.totalVram !== 0, loraParams.loraAlpha,
'models/' + loraParams.baseModel, 'lora-models/' + loraParams.loraLoad,
outputPath).then(async () => {
if (!await FileExists(outputPath)) {