MCPcopy 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
458static 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_byteFunction · 0.85
llama_decode_textFunction · 0.85

Calls 1

unicode_to_bytes_map_bpeFunction · 0.85

Tested by

no test coverage detected