mirror of
https://github.com/ollama/ollama.git
synced 2025-04-08 03:48:21 +02:00
patch: use default locale in wpm tokenizer (#3034)
This commit is contained in:
parent
cdf65e793f
commit
908005d90b
13
llm/patches/03-locale.diff
Normal file
13
llm/patches/03-locale.diff
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/llama.cpp b/llama.cpp
|
||||
index b19616e8..519b9602 100644
|
||||
--- a/llama.cpp
|
||||
+++ b/llama.cpp
|
||||
@@ -9938,7 +9938,7 @@ struct llm_tokenizer_wpm {
|
||||
}
|
||||
|
||||
uint32_t to_lower(uint32_t code) {
|
||||
- static const std::locale locale("en_US.UTF-8");
|
||||
+ static const std::locale locale("");
|
||||
#if defined(_WIN32)
|
||||
if (code > 0xFFFF) {
|
||||
return code;
|
Loading…
x
Reference in New Issue
Block a user