MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / pair_key

Function pair_key

src/framework/tokenizers/llama_bpe.cpp:78–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78std::string pair_key(const std::string & left, const std::string & right) {
79 std::string key = left;
80 key.push_back('\0');
81 key += right;
82 return key;
83}
84
85uint32_t token_attr_from_json(const engine::io::json::Value & token_config) {
86 // HF added tokens must be matched as whole tokens during encode even when

Callers 2

add_mergeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected