- Configure models only in llama.cpp
- Auto model discovery in router mode -- you no longer have to duplicate what's in llama.cpp's
models.iniin pi'smodels.json - Takes the first model as the default on load
- Auto model discovery in router mode -- you no longer have to duplicate what's in llama.cpp's
- Performace metrics in the Pi TUI
- Tokens/second display
- Prompt Processing % display
pi install npm:@kushagharahi/pi-llama-extensions
Ensure that you have the following config for auto model discovery from llama.cpp's router mode. The two pieces of important info are the provider key llama-cpp and the model array having one "id": "llama-cpp-discover".
models.json:
{
"providers": {
"llama-cpp": {
"baseUrl": "http://127.0.0.1:8080",
"api": "openai-completions",
"apiKey": "local",
"models": [
{ "id": "llama-cpp-discover" }
]
}
}
}The extension will then autofill things like model id, name, contextLength, maxTokens.
Set LLAMA_CPP_EXTENSION_DEBUG=1 to enable verbose logging. Each extension writes to its own file:
| Extension | Log file |
|---|---|
| Auto Model Discovery | /tmp/llama-cpp-auto.log |
| TPS Display | /tmp/llama-cpp-tps.log |
