Skip to content

About

A GUI launcher for llama.cpp server based on egui

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

🦙 llama.cpp Launcher

A GUI launcher for llama.cpp server based on egui

Rust License Platform egui

🇺🇸 English | 🇨🇳 中文


预览

Features

Feature Description
GUI Configuration Visual configuration of llama-server without memorizing CLI flags
Multi-Profile Management Save/load named profiles, switch between environments and models
Route Mode Multi-model routing via --models-preset with auto-generated config.ini
Auto Language Detection Automatically detects system language (Chinese / English)
Advanced Parameters GPU layers, context size, Flash Attention, MTP, mmproj vision model
Command Line Preview Real-time CLI display, supports manual extra-args editing
One-Click Start/Stop Start/stop server with automatic health check and port conflict detection

Quick Start

  1. Select Executable — Browse and select llama-server
  2. Select Model Directory — Choose the folder containing your models
  3. Select Model File — Pick a model from the dropdown
  4. Configure Parameters — Port, GPU layers, context size, etc.
  5. Enable Route Mode (optional) — Check the route mode radio to run as a multi-model router
  6. Start Server — Click the ▶ Start button

Profiles can be saved and loaded for quick environment switching.


Route Mode

When route mode is enabled, the launcher generates a config.ini file alongside the executable and starts llama-server with --models-preset. The router listens on port 8080 by default.

INI layout:

# version = 1

[*]
n-gpu-layers = 30
ctx-size = 4096
models-max = 1

[ModelName]
model = /path/to/model.gguf
n-gpu-layers = 30
ctx-size = 4096
extra-args = --no-warmup
  • [*] section sets defaults for all models
  • Named sections are auto-created when saving a profile matching a model filename
  • extra-args in each section are forwarded to that model's instance

Build

Linux

cargo build --release

Output: target/release/llamacpp-launcher

Windows Cross-Compilation

Requires MinGW-w64:

sudo apt install mingw-w64
rustup target add x86_64-pc-windows-gnu
cargo build --release --target x86_64-pc-windows-gnu

Output: target/x86_64-pc-windows-gnu/release/llamacpp-launcher.exe

Release Optimizations

Cargo.toml uses:

  • LTO (Link-Time Optimization)
  • Strip (remove debug symbols)
  • opt-level = "z" (minimize binary size)
  • codegen-units = 1

Configuration

Profiles are stored in llamacpp_config.json alongside the executable:

{
  "__meta__": { "last_profile": "Local Dev" },
  "Local Dev": {
    "executable": "/path/to/llama-server",
    "model_dir": "/path/to/models",
    "model_name": "model-name-q4_k_m",
    "mmproj": "",
    "host": "127.0.0.1",
    "port": 11433,
    "n_gpu_layers": 30,
    "ctx_size": 4096,
    "models_max": 1,
    "flash_attn": "auto",
    "mtp_enabled": false,
    "spec_draft_n_max": 2,
    "route_mode": false,
    "command_text": ""
  }
}

Switching profiles does not auto-save current changes. Click 💾 Save to persist.


Dependencies

Rust Crates

Crate Purpose
eframe GUI framework
rfd Native file dialog
serde Serialization
serde_json JSON config persistence
ureq HTTP health check
sys-locale System locale detection

System Dependencies

  • Linux: psmisc (provides fuser for port conflict detection)
    sudo apt install psmisc
  • Windows Cross-Compilation: mingw-w64

License

MIT License

About

A GUI launcher for llama.cpp server based on egui

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages