Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The read bytes are not valid UTF-8: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" } #115

Open
njalan opened this issue Mar 13, 2024 · 2 comments

Comments

@njalan
Copy link

njalan commented Mar 13, 2024

some time faced below issue:
thread 'main' panicked at src/main.rs:579:14:
The read bytes are not valid UTF-8: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

below is my command:
wasmedge --dir .:. --nn-preload default:GGML:CPU:MiniCPM-2B-dpo-q4km-gguf.gguf llama-chat.wasm -g 0

@hydai
Copy link
Member

hydai commented Mar 13, 2024

Please share the full reproduce steps.

@njalan
Copy link
Author

njalan commented Mar 15, 2024

@hydai When I ask in question in Chinese For example if I type 10 words in Chinese and then delete the last one word then wii get error message:
thread 'main' panicked at src/main.rs:579:14:
The read bytes are not valid UTF-8: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
[2024-03-15 13:07:39.002] [error] execution failed: unreachable, Code: 0x89
[2024-03-15 13:07:39.003] [error] In instruction: unreachable (0x00) , Bytecode offset: 0x00079370
[2024-03-15 13:07:39.003] [error] When executing function name: "_start"

Below is my command:
wasmedge --dir .:. --nn-preload default:GGML:CPU:MiniCPM-2B-dpo-q4km-gguf.gguf llama-chat.wasm -g 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants