Optimal llama.cpp parameter calculator with hardware detection and model recommendations
Rust
0
7 commits
updated Jul 12, 2026
A terminal UI that detects your machine's hardware (CPU, RAM, GPU/VRAM) and recommends optimal llama.cpp CLI parameters, then suggests GGUF models from Hugging Face that fit your hardware.
This project was developed with the assistance of Claude Code, Anthropic's AI coding tool.
--n-gpu-layers, --ctx-size, --threads, --batch-size, --ubatch-size, --no-mmap/--mlock, and --flash-attn, each with a human-readable rationale explaining why that value was chosen for your hardware. --n-gpu-layers is recomputed for whichever model is selected in the Models tab (falling back to a generic full-offload recommendation when none is selected).IQ1_S up to F16) that still fits your machine's memory budget, and gives a direct download URL for that quant.~/.cache/huggingface/hub, or HF_HOME/HUGGINGFACE_HUB_CACHE if set) or in an optional local models directory set via LLAMA_TUNE_MODELS_DIR.llama.cpp executable (or the directory containing it, e.g. a version-tracking symlink) in the Settings tab (persisted between runs), then press l on a model in the Models tab to launch it as a background process with the recommended parameters already applied. Works with both older standalone llama-cli/main builds and newer builds that consolidated into a single llama binary with subcommands. If the model isn't installed yet, l downloads its best-fit quantization into the Hugging Face hub cache first, then launches automatically once the download finishes. A progress bar in the detail panel tracks the download, and x cancels it (deleting the partial file).L from any tab to relaunch it, downloading it again first if it's no longer cached.huggingface.co)cargo build --release
cargo run
NVIDIA VRAM detection via NVML is enabled by default (nvidia feature). To build without it:
cargo build --no-default-features
| Key | Action |
|---|---|
1/2/3/4 | Switch to Hardware / Parameters / Models / Settings tab |
Tab | Cycle through tabs |
↑/k, ↓/j | Select a model (Models tab) |
l | Launch the selected model (Models tab), downloading it first if not installed |
x | Cancel an in-progress download (Models tab) |
L | Relaunch the last-launched model, from any tab |
e / Enter | Edit the llama.cpp path (Settings tab) |
r | Re-detect hardware and re-fetch models |
q / Ctrl+C | Quit |
amdgpu driver does, so there's no real figure to read.7 commits
Rust
100.0%
Optimal llama.cpp parameter calculator with hardware detection and model recommendations
Rust
0
7 commits
updated Jul 12, 2026
A terminal UI that detects your machine's hardware (CPU, RAM, GPU/VRAM) and recommends optimal llama.cpp CLI parameters, then suggests GGUF models from Hugging Face that fit your hardware.
This project was developed with the assistance of Claude Code, Anthropic's AI coding tool.
--n-gpu-layers, --ctx-size, --threads, --batch-size, --ubatch-size, --no-mmap/--mlock, and --flash-attn, each with a human-readable rationale explaining why that value was chosen for your hardware. --n-gpu-layers is recomputed for whichever model is selected in the Models tab (falling back to a generic full-offload recommendation when none is selected).IQ1_S up to F16) that still fits your machine's memory budget, and gives a direct download URL for that quant.~/.cache/huggingface/hub, or HF_HOME/HUGGINGFACE_HUB_CACHE if set) or in an optional local models directory set via LLAMA_TUNE_MODELS_DIR.llama.cpp executable (or the directory containing it, e.g. a version-tracking symlink) in the Settings tab (persisted between runs), then press l on a model in the Models tab to launch it as a background process with the recommended parameters already applied. Works with both older standalone llama-cli/main builds and newer builds that consolidated into a single llama binary with subcommands. If the model isn't installed yet, l downloads its best-fit quantization into the Hugging Face hub cache first, then launches automatically once the download finishes. A progress bar in the detail panel tracks the download, and x cancels it (deleting the partial file).L from any tab to relaunch it, downloading it again first if it's no longer cached.huggingface.co)cargo build --release
cargo run
NVIDIA VRAM detection via NVML is enabled by default (nvidia feature). To build without it:
cargo build --no-default-features
| Key | Action |
|---|---|
1/2/3/4 | Switch to Hardware / Parameters / Models / Settings tab |
Tab | Cycle through tabs |
↑/k, ↓/j | Select a model (Models tab) |
l | Launch the selected model (Models tab), downloading it first if not installed |
x | Cancel an in-progress download (Models tab) |
L | Relaunch the last-launched model, from any tab |
e / Enter | Edit the llama.cpp path (Settings tab) |
r | Re-detect hardware and re-fetch models |
q / Ctrl+C | Quit |
amdgpu driver does, so there's no real figure to read.7 commits
Rust
100.0%