-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swapped
StatelessExecutor
to use llama_decode
!
- Added `logits_i` argument to `Context.ApplyPenalty` - Added a new exception type for `llama_decode` return code
- Loading branch information
1 parent
892e841
commit a2e29d3
Showing
8 changed files
with
90 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace LLama.Native; | ||
|
||
/// <summary> | ||
/// Return codes from llama_decode | ||
/// </summary> | ||
public enum DecodeResult | ||
{ | ||
/// <summary> | ||
/// An unspecified error | ||
/// </summary> | ||
Error = -1, | ||
|
||
/// <summary> | ||
/// Ok. | ||
/// </summary> | ||
Ok = 0, | ||
|
||
/// <summary> | ||
/// Could not find a KV slot for the batch (try reducing the size of the batch or increase the context) | ||
/// </summary> | ||
NoKvSlot = 1, | ||
} |