16#define WIN32_LEAN_AND_MEAN
82 std::map<std::string, GGUFMetadataValue>
metadata;
173 other.file_descriptor = -1;
178 other.mapped_tensor_data =
nullptr;
179 other.mapped_tensor_data_size = 0;
180 other.offset_diff_for_mmap = 0;
184 if (
this != &
other) {
230 other.file_descriptor = -1;
235 other.mapped_tensor_data =
nullptr;
236 other.mapped_tensor_data_size = 0;
237 other.offset_diff_for_mmap = 0;
Type definitions for GGML (Georgi Gerganov Machine Learning) library.
GGMLType
Enumeration of GGML tensor data types.
GGUFValueType
Enumeration of value types used in GGUF metadata.
std::variant< uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, float, bool, std::string, uint64_t, int64_t, double, GGUFArray > GGUFMetadataValue
Type for storing metadata values of various types.
Represents an array in GGUF metadata.
Complete representation of a GGUF file's contents.
static const void * MMapFailure
GGUFData & operator=(GGUFData &&other) noexcept
std::vector< GGUFTensorInfo > tensor_infos
std::vector< std::string > tokenizer_tokens
std::vector< float > tokenizer_scores
size_t offset_diff_for_mmap
std::vector< uint8_t > tensor_data
std::vector< std::string > tokenizer_merges
size_t mapped_tensor_data_size
std::map< std::string, GGUFMetadataValue > metadata
GGUFData(GGUFData &&other) noexcept
GGUFData(const GGUFData &)=delete
void * mapped_tensor_data
std::map< std::string, GGUFTensorInfo > tensor_infos_map
std::vector< uint32_t > tokenizer_token_types
GGUFData & operator=(const GGUFData &)=delete
Information about a tensor stored in a GGUF file.
std::vector< uint64_t > shape