Dont unload models on cancle in high vram mode

This commit is contained in:
Carl Philipp Klemm 2026-04-15 11:16:52 +02:00
parent ef17335614
commit be21c1f2bd
2 changed files with 3 additions and 2 deletions

View file

@ -319,14 +319,13 @@ void AceStepWorker::runGeneration()
if (m_cancelRequested.load())
{
emit generationCanceled(m_currentSong);
unloadModels();
m_busy.store(false);
return;
}
if (lmResult != 0)
{
emit generationError("LM generation failed or was canceled");
emit generationError("LM generation failed");
unloadModels();
m_busy.store(false);
return;

View file

@ -102,6 +102,8 @@ MainWindow::MainWindow(QWidget *parent)
currentSong = songModel->getSong(0);
// Start the worker thread and enter its event loop
QObject::connect(&aceThread, &QThread::started, [this]() {qDebug() << "Worker thread started";});
aceThread.start();
}