73void read_raw(std::ifstream& file, T& dest);
constexpr uint32_t GGUF_MAGIC
GGUF magic number that identifies the file format Spells "GGUF" in ASCII (0x47475546)
constexpr float TENSOR_SCALE_MAX
Constants for tensor value validation.
constexpr int8_t Q4K_OFFSET
Offset values for quantization methods.
constexpr int8_t Q6K_OFFSET
constexpr size_t GGML_Q4K_BLOCK_SIZE
constexpr float Q8K_SCALE_FACTOR
constexpr size_t GGML_Q6K_BLOCK_SIZE
constexpr float Q4K_SCALE_FACTOR
Scale factors for different quantization methods.
void read_raw(std::ifstream &file, T &dest)
Reads raw binary data from a file stream.
constexpr uint32_t GGUF_MAX_TENSOR_DIMS
constexpr float TENSOR_SCALE_MIN
constexpr float Q6K_SCALE_FACTOR
constexpr float GGUF_EPSILON
Constants for numeric stability in calculations.
constexpr uint64_t GGUF_STRING_MAX_LENGTH
constexpr size_t GGML_QK8_0
constexpr size_t GGML_QK_K
Block size constants for different quantization formats.
constexpr float GGUF_SMALL_VAL
constexpr uint64_t GGUF_DEFAULT_ALIGNMENT
Constants for GGUF file parsing and validation.
GGUFData load_gguf_meta(const std::string &filename, bool use_mmap)
Loads GGUF metadata and optionally memory-maps tensor data.
std::string read_gguf_string(std::ifstream &file)
Reads a string from a GGUF format file.
Data structures for GGUF (GPT-Generated Unified Format) file format.
Complete representation of a GGUF file's contents.