2023-11-10 22:04:50 -07:00
|
|
|
# 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
|
2023-08-31 01:02:23 -04:00
|
|
|
|
2023-11-10 22:04:50 -07:00
|
|
|
import importlib
|
2023-08-31 01:02:23 -04:00
|
|
|
import sys
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
2023-11-10 22:04:50 -07:00
|
|
|
sys.path.insert(0, str(Path(__file__).parent.parent))
|
2023-08-21 23:07:43 +03:00
|
|
|
|
2023-11-10 22:04:50 -07:00
|
|
|
# Compatibility for people trying to import gguf/gguf.py directly instead of as a package.
|
|
|
|
|
importlib.invalidate_caches()
|
|
|
|
|
import gguf # noqa: E402
|
2023-08-21 23:07:43 +03:00
|
|
|
|
2023-11-10 22:04:50 -07:00
|
|
|
importlib.reload(gguf)
|