mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-08 07:10:32 +00:00
Add a fixme for dubious code.
This commit is contained in:
parent
13c71bfa4a
commit
e4b110639c
1
llm.cpp
1
llm.cpp
@ -120,6 +120,7 @@ void LLMObject::regenerateResponse()
|
|||||||
{
|
{
|
||||||
s_ctx.n_past -= m_responseTokens;
|
s_ctx.n_past -= m_responseTokens;
|
||||||
s_ctx.n_past = std::max(0, s_ctx.n_past);
|
s_ctx.n_past = std::max(0, s_ctx.n_past);
|
||||||
|
// FIXME: This does not seem to be needed in my testing and llama models don't to it. Remove?
|
||||||
s_ctx.logits.erase(s_ctx.logits.end() -= m_responseLogits, s_ctx.logits.end());
|
s_ctx.logits.erase(s_ctx.logits.end() -= m_responseLogits, s_ctx.logits.end());
|
||||||
m_responseTokens = 0;
|
m_responseTokens = 0;
|
||||||
m_responseLogits = 0;
|
m_responseLogits = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user