diff options
author | Dean <Dean.Sinaean@gmail.com> | 2024-03-11 04:03:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 22:03:17 +0200 |
commit | 7ab7b733bb48250b2df26c12b00256ef42c76932 (patch) | |
tree | 2b5596009f19da27436565c20c1fb155389ccb67 /examples/server/index.js.hpp | |
parent | d9f65c97c3dc3aa6fa27470b8c6e69b437ec1a27 (diff) |
android : fix utf8 decoding error (#5935)
* examples: fix utf8 decoding error
some models have a tokenizer that decodes an id into an incomplete utf8 sequence, need to validate and wait for next token
one example would be: https://huggingface.co/Qwen/Qwen1.5-1.8B-Chat-GGUF/resolve/main/qwen1_5-1_8b-chat-q4_0.gguf and and an example of the token is 18137
* android : minor
---------
Co-authored-by: zhangfuwen <zhangfuwen@foxmail.com>
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'examples/server/index.js.hpp')
0 files changed, 0 insertions, 0 deletions