Add comment to make this clear.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-02-21 09:54:27 -05:00 committed by AT
parent ad34c2bdd4
commit 67099f80ba
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ void Chat::setModelInfo(const ModelInfo &modelInfo)
if (m_modelInfo == modelInfo && isModelLoaded()) if (m_modelInfo == modelInfo && isModelLoaded())
return; return;
m_modelLoadingPercentage = std::numeric_limits<float>::min(); m_modelLoadingPercentage = std::numeric_limits<float>::min(); // small non-zero positive value
emit isModelLoadedChanged(); emit isModelLoadedChanged();
m_modelLoadingError = QString(); m_modelLoadingError = QString();
emit modelLoadingErrorChanged(); emit modelLoadingErrorChanged();

View File

@ -222,7 +222,7 @@ bool ChatLLM::loadModel(const ModelInfo &modelInfo)
#endif #endif
delete m_llModelInfo.model; delete m_llModelInfo.model;
m_llModelInfo.model = nullptr; m_llModelInfo.model = nullptr;
emit modelLoadingPercentageChanged(std::numeric_limits<float>::min()); emit modelLoadingPercentageChanged(std::numeric_limits<float>::min()); // small non-zero positive value
} else if (!m_isServer) { } else if (!m_isServer) {
// This is a blocking call that tries to retrieve the model we need from the model store. // This is a blocking call that tries to retrieve the model we need from the model store.
// If it succeeds, then we just have to restore state. If the store has never had a model // If it succeeds, then we just have to restore state. If the store has never had a model