mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
fix to allow all EOGs to trigger a stop, occam's glm4 fix,
This commit is contained in:
parent
bd7a40f326
commit
f97bbdde00
6 changed files with 54 additions and 22 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <set>
|
||||
|
||||
#ifdef LLAMA_SHARED
|
||||
# if defined(_WIN32) && !defined(__MINGW32__)
|
||||
|
@ -941,6 +942,8 @@ extern "C" {
|
|||
LLAMA_API llama_token llama_vocab_nl (const struct llama_vocab * vocab); // next-line
|
||||
LLAMA_API llama_token llama_vocab_pad(const struct llama_vocab * vocab); // padding
|
||||
|
||||
LLAMA_API std::set<int> llama_vocab_get_eogs(const struct llama_vocab * vocab);
|
||||
|
||||
LLAMA_API bool llama_vocab_get_add_bos(const struct llama_vocab * vocab);
|
||||
LLAMA_API bool llama_vocab_get_add_eos(const struct llama_vocab * vocab);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue