mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-10 20:40:24 +01:00
a39ab216aa
* llama : speed up compile time * fix build * fix build (2)
21 lines
630 B
C++
21 lines
630 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
|
|
struct range_nfd {
|
|
uint32_t first;
|
|
uint32_t last;
|
|
uint32_t nfd;
|
|
};
|
|
|
|
static const uint32_t MAX_CODEPOINTS = 0x110000;
|
|
|
|
extern const std::initializer_list<std::pair<uint32_t, uint16_t>> unicode_ranges_flags;
|
|
extern const std::unordered_set<uint32_t> unicode_set_whitespace;
|
|
extern const std::initializer_list<std::pair<uint32_t, uint32_t>> unicode_map_lowercase;
|
|
extern const std::initializer_list<std::pair<uint32_t, uint32_t>> unicode_map_uppercase;
|
|
extern const std::initializer_list<range_nfd> unicode_ranges_nfd;
|