|
ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
|
Namespaces | |
| namespace | tables |
Classes | |
| struct | CptFlags |
| class | Tokenizer |
Functions | |
| uint16_t | category_bits (uint32_t cpt) |
| CptFlags | flags_of (uint32_t cpt) |
| std::vector< uint32_t > | cpts_from_utf8 (const std::string &s) |
| void | append_utf8 (uint32_t cpt, std::string &out) |
| std::vector< std::string > | split_words (const std::string &text, size_t max_digits=3) |
| const std::vector< std::string > & | byte_to_unicode () |
| std::string | byte_encode (const std::string &word) |
| Tokenizer | load_gguf (const std::string &path) |
Definition at line 122 of file llama3_tokenizer.h.
Referenced by ember::nfc::nfc_utf8(), and split_words().
|
inline |
Definition at line 256 of file llama3_tokenizer.h.
References byte_to_unicode(), c, j, and out.
Referenced by microtorch::llama3::Tokenizer::encode().
|
inline |
Definition at line 242 of file llama3_tokenizer.h.
Referenced by byte_encode(), and microtorch::llama3::Tokenizer::Tokenizer().
Definition at line 53 of file llama3_tokenizer.h.
References j, microtorch::llama3::tables::kRangeCount, microtorch::llama3::tables::kRangeFlags, and microtorch::llama3::tables::kRangeStart.
Referenced by flags_of().
Definition at line 75 of file llama3_tokenizer.h.
Referenced by ember::nfc::nfc_utf8(), and split_words().
Definition at line 63 of file llama3_tokenizer.h.
References c, category_bits(), j, microtorch::llama3::tables::kWhitespace, microtorch::llama3::tables::kWhitespaceCount, and microtorch::llama3::CptFlags::number.
Referenced by split_words().
Definition at line 422 of file llama3_tokenizer.h.
References j, microtorch::bpe::GgufTokenizer::merges, microtorch::bpe::GgufTokenizer::model, microtorch::bpe::GgufTokenizer::pre, microtorch::bpe::read_gguf_tokenizer(), microtorch::bpe::GgufTokenizer::token_type, and microtorch::bpe::GgufTokenizer::tokens.
|
inline |
Definition at line 145 of file llama3_tokenizer.h.
References add, append_utf8(), c, cpts_from_utf8(), flags_of(), j, n, number, p, pos, and text.
Referenced by microtorch::llama3::Tokenizer::encode().