Make fattn optional
This commit is contained in:
parent
216e59c105
commit
275c1a1852
6 changed files with 57 additions and 4 deletions
|
|
@ -159,6 +159,10 @@ void MainWindow::loadSettings()
|
|||
// Load low VRAM mode
|
||||
bool lowVram = settings.value("lowVramMode", false).toBool();
|
||||
aceStep->setLowVramMode(lowVram);
|
||||
|
||||
// Load flash attention setting
|
||||
bool flashAttention = settings.value("flashAttention", true).toBool();
|
||||
aceStep->setFlashAttention(flashAttention);
|
||||
}
|
||||
|
||||
void MainWindow::saveSettings()
|
||||
|
|
@ -181,6 +185,9 @@ void MainWindow::saveSettings()
|
|||
// Save low VRAM mode
|
||||
settings.setValue("lowVramMode", aceStep->isLowVramMode());
|
||||
|
||||
// Save flash attention setting
|
||||
settings.setValue("flashAttention", aceStep->isFlashAttention());
|
||||
|
||||
settings.setValue("firstRun", false);
|
||||
}
|
||||
|
||||
|
|
@ -382,6 +389,7 @@ void MainWindow::on_advancedSettingsButton_clicked()
|
|||
dialog.setDiTModelPath(ditModelPath);
|
||||
dialog.setVAEModelPath(vaeModelPath);
|
||||
dialog.setLowVramMode(aceStep->isLowVramMode());
|
||||
dialog.setFlashAttention(aceStep->isFlashAttention());
|
||||
|
||||
if (dialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
|
|
@ -408,6 +416,9 @@ void MainWindow::on_advancedSettingsButton_clicked()
|
|||
// Update low VRAM mode
|
||||
aceStep->setLowVramMode(dialog.getLowVramMode());
|
||||
|
||||
// Update flash attention setting
|
||||
aceStep->setFlashAttention(dialog.getFlashAttention());
|
||||
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue