MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / get_bpe_merges

Method get_bpe_merges

subprojects/llama.cpp/src/llama-vocab.cpp:3591–3599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3589}
3590
3591std::vector<std::string> llama_vocab::get_bpe_merges() const {
3592 std::vector<std::string> result(pimpl->bpe_ranks.size());
3593
3594 for (const auto & pair : pimpl->bpe_ranks) {
3595 result[pair.second] = pair.first.first + " " + pair.first.second;
3596 }
3597
3598 return result;
3599}
3600
3601std::vector<char> llama_vocab::get_precompiled_charsmap() const {
3602 return pimpl->precompiled_charsmap;

Callers 1

add_kv_from_modelMethod · 0.80

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected