chatllm: fix model loading progress showing "Reload" sometimes

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
fix-reload-progress
Jared Van Bortel 3 weeks ago
parent 1427ef7195
commit 086597f1cc

@ -350,6 +350,7 @@ bool ChatLLM::loadModel(const ModelInfo &modelInfo)
}
m_llModelInfo.model->setProgressCallback([this](float progress) -> bool {
progress = std::max(progress, std::numeric_limits<float>::min()); // keep progress above zero
emit modelLoadingPercentageChanged(progress);
return m_shouldBeLoaded;
});

Loading…
Cancel
Save