summaryrefslogtreecommitdiff
path: root/convert-lora-to-ggml.py
diff options
context:
space:
mode:
authorBrian <mofosyne@gmail.com>2024-05-05 15:07:48 +1000
committerGitHub <noreply@github.com>2024-05-05 08:07:48 +0300
commit6fbd43221167bf96112f899daf22c127b282cbcf (patch)
tree46a6c8d157adc202f7ac9fa46b85f5df50618c15 /convert-lora-to-ggml.py
parent842500144ee02c8b0a46d2cc43880f8d80998fa5 (diff)
py : logging and flake8 suppression refactoring (#7081)
Set one as executable and add basicConfig() to another. Also added noqa tag to test scripts.
Diffstat (limited to 'convert-lora-to-ggml.py')
-rwxr-xr-xconvert-lora-to-ggml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/convert-lora-to-ggml.py b/convert-lora-to-ggml.py
index 39536feb..f09fa85f 100755
--- a/convert-lora-to-ggml.py
+++ b/convert-lora-to-ggml.py
@@ -16,6 +16,7 @@ if 'NO_LOCAL_GGUF' not in os.environ:
sys.path.insert(1, str(Path(__file__).parent / 'gguf-py' / 'gguf'))
import gguf
+logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger("lora-to-gguf")
NUMPY_TYPE_TO_FTYPE: dict[str, int] = {"float32": 0, "float16": 1}