Configuration
July 31, 2026 · View on GitHub
Every wrapper loads a quantized GGUF model through llama-cpp-python and shares a
common config contract. A model may be a Hugging Face repo (downloaded on first
use) or a local .gguf path.
Common keys
| Key | Description | Default |
|---|---|---|
model | HF repo id, or a local .gguf path. For embeddings, also a DEFAULT_MODELS friendly name. | per wrapper |
remote_filename | file glob to fetch from the HF repo | *Q4_K_M.gguf |
n_gpu_layers | layers to offload to GPU (-1 = all) | 0 |
verbose | llama.cpp verbose logging | varies |
system_prompt | overrides the localized system prompt (see localization) | from .prompt |
GPU support requires llama.cpp built with CUDA:
CMAKE_ARGS="-DGGML_CUDA=on" FORCE_CMAKE=1 pip install llama-cpp-python --force-reinstall --no-cache-dir
Per-wrapper notes
- chat (
GGUFChatEngine,opm.agents.chat):max_tokens,chat_format,allow_system_prompts,drop_incomplete_sentences. - summarizer (
GGUFSummarizer,opm.agents.summarizer):prompt_template(an explicit{content}template) overrides the localizedsummarize_userprompt. - translate (
GGUFTextTranslator,opm.lang.translate): defaults toTheBloke/TowerInstruct-7B-v0.1-GGUF. - lang detect (
GGUFTextLangDetector,opm.lang.detect). - dialog transformer (
GGUFDialogTransformer,opm.transformer.dialog): the per-call rewrite instruction comes fromcontext["prompt"]orconfig["rewrite_prompt"]. - embeddings (
GGUFEmbeddings,opm.embeddings.text):modelmay be aGGUFEmbeddings.DEFAULT_MODELSname (for examplelabse,all-MiniLM-L6-v2,nomic-embed-text-v1.5). The default islabse. It pairs with anEmbeddingsDBvector store (ovos-chromadb-embeddings-plugin,ovos-qdrant-embeddings-plugin).
A single loaded model can be shared across wrappers by passing gguf_engine=.