You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reviewed the Discussions, and have a new bug or useful enhancement to share.
Expected Behavior
I am trying to send a string through a string->tokens->string cycle, but I'm not getting the same string back as when I started.
Current Behavior
The round trip is putting an extra space on the start of the final string.
Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
Physical (or virtual) hardware you are using, e.g. for Linux:
Core-i7 13800
Operating System, e.g. for Linux:
Win 11
SDK version, e.g. for Linux:
Python 3.12.3
Latest llama-cpp-python installed via pip
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
Please include any relevant log snippets or files. If it works under one configuration but not under another, please provide logs for both configurations and their corresponding outputs so it is easy to see where behavior changes.
From pytest I'm seeing failures from the final assert:
There seems to be a bug in the `LlamaCpp` tokenisers, where they [prepend spaces](abetlen/llama-cpp-python#1531). Fix this following @mmoskal , by prepending a byte which is extremely unlikely to occur in a real string, and using it to figure out the offending prefix.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
I am trying to send a string through a string->tokens->string cycle, but I'm not getting the same string back as when I started.
Current Behavior
The round trip is putting an extra space on the start of the final string.
Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
Core-i7 13800
Win 11
Python 3.12.3
Latest llama-cpp-python installed via pip
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
Failure Logs
Please include any relevant log snippets or files. If it works under one configuration but not under another, please provide logs for both configurations and their corresponding outputs so it is easy to see where behavior changes.
From
pytest
I'm seeing failures from the final assert:The text was updated successfully, but these errors were encountered: