mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
Merge branch 'master' into concedo_experimental
# Conflicts: # .dockerignore # .github/workflows/build.yml # CMakeLists.txt # Makefile # README.md # flake.lock # flake.nix # tests/CMakeLists.txt
This commit is contained in:
commit
4b00916ac7
53 changed files with 4980 additions and 1910 deletions
|
@ -256,7 +256,13 @@ void print_tok_vec(std::vector<float> &embd)
|
|||
{
|
||||
fin.close();
|
||||
fileformat = FileFormat::GGUF_LLAMA;
|
||||
auto ctx = gguf_read_headers(fname.c_str());
|
||||
|
||||
struct gguf_init_params ggufparams;
|
||||
ggufparams.no_alloc = true;
|
||||
ggufparams.ctx = NULL;
|
||||
|
||||
auto ctx = gguf_init_from_file(fname.c_str(), ggufparams);
|
||||
|
||||
auto keyidx = gguf_find_key(ctx, "general.architecture");
|
||||
std::string modelarch = "";
|
||||
if (keyidx != -1) { modelarch = gguf_get_val_str(ctx, keyidx); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue