From 3f96d538c0be3d7985d01c0e89fd10ef231b2163 Mon Sep 17 00:00:00 2001 From: brian khuu Date: Sat, 4 May 2024 15:15:45 +1000 Subject: [PATCH] two converter py files needs basicConfig() added --- convert-hf-to-gguf-update.py | 3 +++ convert-lora-to-ggml.py | 1 + 2 files changed, 4 insertions(+) mode change 100644 => 100755 convert-hf-to-gguf-update.py diff --git a/convert-hf-to-gguf-update.py b/convert-hf-to-gguf-update.py old mode 100644 new mode 100755 index 09772f668e2b9..45279e7125e53 --- a/convert-hf-to-gguf-update.py +++ b/convert-hf-to-gguf-update.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + # This script downloads the tokenizer models of the specified models from Huggingface and # generates the get_vocab_base_pre() function for convert-hf-to-gguf.py # @@ -32,6 +34,7 @@ from transformers import AutoTokenizer logger = logging.getLogger("convert-hf-to-gguf-update") +logging.basicConfig(level=logging.INFO) class TOKENIZER_TYPE(IntEnum): diff --git a/convert-lora-to-ggml.py b/convert-lora-to-ggml.py index 39536feb954b4..49d219e10356f 100755 --- a/convert-lora-to-ggml.py +++ b/convert-lora-to-ggml.py @@ -17,6 +17,7 @@ import gguf logger = logging.getLogger("lora-to-gguf") +logging.basicConfig(level=logging.INFO) NUMPY_TYPE_TO_FTYPE: dict[str, int] = {"float32": 0, "float16": 1}