From f7de892ee58fc67c004e6818a203970424bac752 Mon Sep 17 00:00:00 2001 From: Galunid Date: Sun, 5 Nov 2023 00:43:56 +0100 Subject: [PATCH] Move util to gguf-py/gguf --- convert-hf-to-gguf.py | 7 ++++++- util.py => gguf-py/gguf/util.py | 0 2 files changed, 6 insertions(+), 1 deletion(-) rename util.py => gguf-py/gguf/util.py (100%) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index a1829a856..869eec72f 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -1,10 +1,15 @@ #!/usr/bin/env python3 from __future__ import annotations +from pathlib import Path +import os import sys - import model + + +if 'NO_LOCAL_GGUF' not in os.environ: + sys.path.insert(1, str(Path(__file__).parent / 'gguf-py' / 'gguf')) from util import parse_args args = parse_args() diff --git a/util.py b/gguf-py/gguf/util.py similarity index 100% rename from util.py rename to gguf-py/gguf/util.py