chatllm: fix model loading progress showing "Reload" sometimes (#2337)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
pull/2310/head
Jared Van Bortel 2 weeks ago committed by GitHub
parent 9f9d8e636f
commit 7f1c3d4275
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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