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

Method decode

src/framework/tokenizers/llama_bpe.cpp:256–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256std::string LlamaBpeTokenizer::decode(const std::vector<int32_t> & token_ids, const bool skip_special_tokens) const {
257 return vendor::decode_bpe(impl_->vocab, token_ids, skip_special_tokens);
258}
259
260std::optional<int32_t> LlamaBpeTokenizer::find_token_id(const std::string & token) const {
261 const auto it = impl_->vocab.token_to_id.find(token);

Callers

nothing calls this directly

Calls 1

decode_bpeFunction · 0.85

Tested by

no test coverage detected