add chinese prompt troubleshooting for npu cpp examples (#12437)
* add chinese prompt troubleshooting * add chinese prompt troubleshooting
This commit is contained in:
parent
8164aed802
commit
b633fbf26c
1 changed files with 11 additions and 0 deletions
|
|
@ -92,3 +92,14 @@ AI是"人工智能"的缩写,是英文"Artificial Intelligence"的翻译。它
|
||||||
|
|
||||||
Decode 46 tokens cost xxxx ms (avg xx.xx ms each token).
|
Decode 46 tokens cost xxxx ms (avg xx.xx ms each token).
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Troubleshooting
|
||||||
|
|
||||||
|
#### Program crash with Chinese prompt
|
||||||
|
If you run CPP examples on Windows and find that your program raises below error when accepting Chinese prompts, you can open `Region->Administrative->Change System locale..`, check `Beta: Use Unicode UTF-8 for worldwide language support` option and then restart your computer.
|
||||||
|
```log
|
||||||
|
thread '<unnamed>' panicked at src\lib.rs:151:91:
|
||||||
|
called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 77, error_len: Some(1) }
|
||||||
|
```
|
||||||
|
|
||||||
|
For detailed instructions on how to do this, see [this issue](https://github.com/intel-analytics/ipex-llm/issues/10989#issuecomment-2105598660).
|
||||||
Loading…
Reference in a new issue