|
ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
|
Namespaces | |
| namespace | tables |
Functions | |
| uint8_t | ccc (uint32_t c) |
| void | decompose (uint32_t c, std::vector< uint32_t > &out) |
| uint32_t | compose (uint32_t a, uint32_t b) |
| std::vector< uint32_t > | nfc (const std::vector< uint32_t > &in) |
| std::string | nfc_utf8 (const std::string &text) |
Variables | |
| constexpr uint32_t | kSBase = 0xAC00 |
| constexpr uint32_t | kLBase = 0x1100 |
| constexpr uint32_t | kVBase = 0x1161 |
| constexpr uint32_t | kTBase = 0x11A7 |
| constexpr uint32_t | kLCount = 19 |
| constexpr uint32_t | kVCount = 21 |
| constexpr uint32_t | kTCount = 28 |
| constexpr uint32_t | kNCount = kVCount * kTCount |
| constexpr uint32_t | kSCount = kLCount * kNCount |
Definition at line 26 of file unicode_nfc.h.
References c, j, ember::nfc::tables::kCccCount, ember::nfc::tables::kCccCp, and ember::nfc::tables::kCccVal.
Referenced by nfc().
Definition at line 56 of file unicode_nfc.h.
References a, j, ember::nfc::tables::kCompCount, ember::nfc::tables::kCompKey, ember::nfc::tables::kCompVal, kLBase, kSBase, kSCount, kTBase, kTCount, kVBase, and kVCount.
Referenced by nfc().
Definition at line 34 of file unicode_nfc.h.
References c, j, ember::nfc::tables::kDecompCount, ember::nfc::tables::kDecompCp, ember::nfc::tables::kDecompData, ember::nfc::tables::kDecompLen, ember::nfc::tables::kDecompOff, kLBase, kNCount, kSBase, kSCount, kTBase, kTCount, kVBase, and out.
Referenced by nfc().
Definition at line 68 of file unicode_nfc.h.
References a, c, ccc(), compose(), decompose(), in, j, nfc(), out, and p.
Referenced by nfc(), and nfc_utf8().
|
inline |
Definition at line 113 of file unicode_nfc.h.
References microtorch::llama3::append_utf8(), c, microtorch::llama3::cpts_from_utf8(), j, n, nfc(), out, and text.
Referenced by ember::QwenNfcTokenizer::encode().
Definition at line 22 of file unicode_nfc.h.
Referenced by compose(), and decompose().
Definition at line 23 of file unicode_nfc.h.
Definition at line 23 of file unicode_nfc.h.
Referenced by decompose().
Definition at line 22 of file unicode_nfc.h.
Referenced by compose(), and decompose().
Definition at line 24 of file unicode_nfc.h.
Referenced by compose(), and decompose().
Definition at line 22 of file unicode_nfc.h.
Referenced by compose(), and decompose().
Definition at line 23 of file unicode_nfc.h.
Referenced by compose(), and decompose().
Definition at line 22 of file unicode_nfc.h.
Referenced by compose(), and decompose().
Definition at line 23 of file unicode_nfc.h.
Referenced by compose().