Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiiny-AI/PowerInfer
/ unicode_to_bytes_bpe
Function
unicode_to_bytes_bpe
unicode.h:458–461 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
456
}
457
458
static uint8_t unicode_to_bytes_bpe(const std::string & utf8) {
459
static std::unordered_map<std::string, uint8_t> map = unicode_to_bytes_map_bpe();
460
return map.at(utf8);
461
}
462
Callers
2
llama_token_to_byte
Function · 0.85
llama_decode_text
Function · 0.85
Calls
1
unicode_to_bytes_map_bpe
Function · 0.85
Tested by
no test coverage detected