Search notes:

Python library: llama-cpp-python

pip install llama-cpp-python
from llama_cpp import Llama

from_pretrained

from_pretrained creates a Llama model from the given pretrained model name or path.
This method requires huggingface_hub.
local_dir specifies where the model data is downloaded to. If it is omitted, it is downloaded to ~/.cache/huggingface/hub.
from llama_cpp import Llama

llm = Llama.from_pretrained(
   repo_id   ='bartowski/Llama-3.2-3B-Instruct-GGUF',
#  local_dir ='.',
   filename  ='Llama-3.2-3B-Instruct-Q4_K_L.gguf',
   verbose   = False,
   n_ctx     = 4096
)

print(type(llm)) # llama_cpp.llama.Llama

See also

llama-index
llama.cpp

Index