char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
e7bcf1c3a
char/aliceai-t5-moe
1#pragma once 2 3#include <cstdint> 4#include <map> 5#include <string> 6#include <vector> 7 8inline constexprconst char * LLM_KV_IMATRIX_DATASETS = "imatrix.datasets" ; 9inline constexprconst char * LLM_KV_IMATRIX_CHUNK_COUNT = "imatrix.chunk_count" ; 10inline constexprconst char * LLM_KV_IMATRIX_CHUNK_SIZE = "imatrix.chunk_size" ; 11 12struct common_imatrix_entry { 13std ::vector < float > sums ; 14std ::vector < int64_t > counts ; 15}; 16 17struct common_imatrix { 18std ::map < std ::string ,common_imatrix_entry > entries ; 19std ::vector < std ::string > datasets ; 20int32_t chunk_count = 0 ; 21int32_t chunk_size = 0 ; 22bool is_legacy = false; 23bool has_metadata = false; 24}; 25 26bool common_imatrix_load (const std ::string & fname ,common_imatrix & imatrix );