diff options
Diffstat (limited to 'llama.cpp/gguf-py/gguf/gguf.py')
| -rw-r--r-- | llama.cpp/gguf-py/gguf/gguf.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llama.cpp/gguf-py/gguf/gguf.py b/llama.cpp/gguf-py/gguf/gguf.py new file mode 100644 index 0000000..651a81e --- /dev/null +++ b/llama.cpp/gguf-py/gguf/gguf.py @@ -0,0 +1,15 @@ +# This file left for compatibility. If you want to use the GGUF API from Python +# then don't import gguf/gguf.py directly. If you're looking for examples, see the +# examples/ directory for gguf-py + +import importlib +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).parent.parent)) + +# Compatibility for people trying to import gguf/gguf.py directly instead of as a package. +importlib.invalidate_caches() +import gguf # noqa: E402 + +importlib.reload(gguf) |
