File size: 377 Bytes
7de15fc
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import subprocess
import sys
from config import PROJECT_ROOT

LLAMA = PROJECT_ROOT / "llama.cpp"

if not LLAMA.exists():
    subprocess.run(["git", "clone", "--depth", "1", "https://github.com/ggml-org/llama.cpp", str(LLAMA)], check=True)

sys.path.insert(0, str(LLAMA))
import convert_hf_to_gguf
from conversion import TextModel

__all__ = ["convert_hf_to_gguf", "TextModel"]