LLamaSharp/LLama/Batched
Martin Evans 268f3a6b07
BatchedExecutor Fixed Forking (#621)
* Previously when a conversation was forked this would result in both the parent and the child sharing exactly the same logits. Since sampling is allowed to modify logits this could lead to issues in sampling (e.g. one conversation is sampled and overwrites logits to be all zero, second conversation is sampled and generates nonsense). Fixed this by setting a "forked" flag, logits are copied if this flag is set. Flag is cleared next time the conversation is prompted so this extra copying only happens once after a fork occurs.

* Removed finalizer from `BatchedExecutor`. This class does not directly own any unmanaged resources so it is not necessary.
2024-03-20 16:36:01 +00:00
..
BatchedExecutor.cs BatchedExecutor Fixed Forking (#621) 2024-03-20 16:36:01 +00:00
Conversation.cs BatchedExecutor Fixed Forking (#621) 2024-03-20 16:36:01 +00:00
ConversationExtensions.cs March Binary Update (#565) 2024-03-06 15:19:42 +00:00
Exceptions.cs Assorted small changes to clean up some code warnings 2024-02-17 23:07:10 +00:00