From 460c40d8abb07bda636fc0d26af025e790bef3bf Mon Sep 17 00:00:00 2001 From: Gennadij Date: Tue, 12 Sep 2023 23:02:42 +0300 Subject: [PATCH] Read more GGUF metadata (scale_linear and freq_base) (#3877) --- models/config.yaml | 2 +- modules/metadata_gguf.py | 3 +++ modules/models_settings.py | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/models/config.yaml b/models/config.yaml index 8783c49b..d98e95fb 100644 --- a/models/config.yaml +++ b/models/config.yaml @@ -226,4 +226,4 @@ llama-65b-gptq-3bit: .*codellama: rope_freq_base: 1000000 .*codellama.*instruct: - instruction_template: 'Llama-v2' + instruction_template: 'Llama-v2' \ No newline at end of file diff --git a/modules/metadata_gguf.py b/modules/metadata_gguf.py index 42f3a190..f633d70c 100644 --- a/modules/metadata_gguf.py +++ b/modules/metadata_gguf.py @@ -70,6 +70,9 @@ def load_metadata(fname): GGUF_VERSION = struct.unpack("