for devices that gpu is not supported, use cpu to merge lora
This commit is contained in:
parent
c853c5b60b
commit
c733b6419c
@ -470,7 +470,7 @@ const LoraFinetune: FC = observer(() => {
|
|||||||
return;
|
return;
|
||||||
if (loraParams.loraLoad) {
|
if (loraParams.loraLoad) {
|
||||||
const outputPath = `models/${loraParams.baseModel}-LoRA-${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,
|
'models/' + loraParams.baseModel, 'lora-models/' + loraParams.loraLoad,
|
||||||
outputPath).then(async () => {
|
outputPath).then(async () => {
|
||||||
if (!await FileExists(outputPath)) {
|
if (!await FileExists(outputPath)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user