char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Kerfufflegguf-py: Refactor and allow reading/modifying existing GGUF files (#3981)34b0a0820

char/aliceai-t5-moe
478 B15 linesraw
1# This file left for compatibility. If you want to use the GGUF API from Python
2# then don't import gguf/gguf.py directly. If you're looking for examples, see the
3# examples/ directory for gguf-py
4
5import importlib
6import sys
7from pathlib import Path
8
9sys.path.insert(0, str(Path(__file__).parent.parent))
10
11# Compatibility for people trying to import gguf/gguf.py directly instead of as a package.
12importlib.invalidate_caches()
13import gguf  # noqa: E402
14
15importlib.reload(gguf)