mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
fix wrong order, fix llava debug mode failure
This commit is contained in:
parent
e99fa531a2
commit
5988243aee
3 changed files with 33 additions and 26 deletions
|
@ -146,6 +146,10 @@ inline bool LogitsDuplicated(std::vector<float> & arr1, std::vector<float> & arr
|
|||
|
||||
static std::string FileFormatTokenizeID(int id, FileFormat file_format, bool return_special = false)
|
||||
{
|
||||
if(id<0)
|
||||
{
|
||||
return ""; //placeholder IDs cannot be tokenized!
|
||||
}
|
||||
if (file_format == FileFormat::GGML || file_format == FileFormat::GGHF || file_format == FileFormat::GGJT || file_format == FileFormat::GGJT_2)
|
||||
{
|
||||
return std::string(llama_v2_token_to_str(llama_ctx_v2, id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue