Some checks are pending
Copilot Setup Steps / copilot-setup-steps (push) Waiting to run
Check Pre-Tokenizer Hashes / pre-tokenizer-hashes (push) Waiting to run
Python check requirements.txt / check-requirements (push) Waiting to run
Python Type-Check / python type-check (push) Waiting to run
Update Operations Documentation / update-ops-docs (push) Waiting to run
16 lines
478 B
Python
16 lines
478 B
Python
# 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)
|