CoolFace
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 3d agoView on Hugging Face
0likes1.1kdownloads
imatrix-loader.h27 linesDownload Raw Back to common
1#pragma once2 3#include <cstdint>4#include <map>5#include <string>6#include <vector>7 8inline constexpr const char * LLM_KV_IMATRIX_DATASETS    = "imatrix.datasets";9inline constexpr const char * LLM_KV_IMATRIX_CHUNK_COUNT = "imatrix.chunk_count";10inline constexpr const char * LLM_KV_IMATRIX_CHUNK_SIZE  = "imatrix.chunk_size";11 12struct common_imatrix_entry {13    std::vector<float>   sums;14    std::vector<int64_t> counts;15};16 17struct common_imatrix {18    std::map<std::string, common_imatrix_entry> entries;19    std::vector<std::string> datasets;20    int32_t chunk_count    = 0;21    int32_t chunk_size     = 0;22    bool    is_legacy      = false;23    bool    has_metadata   = false;24};25 26bool common_imatrix_load(const std::string & fname, common_imatrix & imatrix);27