| 254 | } |
| 255 | |
| 256 | std::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 | |
| 260 | std::optional<int32_t> LlamaBpeTokenizer::find_token_id(const std::string & token) const { |
| 261 | const auto it = impl_->vocab.token_to_id.find(token); |
nothing calls this directly
no test coverage detected