diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index 3b23d5ebc..6eab0c23c 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -11,6 +11,10 @@ from pathlib import Path import torch +script_dir = os.path.dirname(os.path.abspath(__file__)) +if script_dir not in sys.path: + sys.path.append(script_dir) + if 'NO_LOCAL_GGUF' not in os.environ: sys.path.insert(1, str(Path(__file__).parent / 'gguf-py')) import gguf