Skip to main content

Lightweight TUI manager for llama.cpp models on Raspberry Pi

Project description

llama-tui

CLI manager for llama.cpp. Detects hardware, downloads models, launches optimized servers. Specifically made for Raspberry Pi OS (Linux).

Requirements

  • Raspberry Pi OS (any model, 64-bit recommended)
  • Python 3.11+
  • uv
  • llama-server (compiled with BLIS + NEON)
  • hf CLI (huggingface-hub, authenticated for private models)

Install

uv tool install llama-tui

Setup

llama-tui setup    # detect hardware, select models
llama-tui download # fetch enabled models
llama-tui prep     # system tuning (swap, governor, hugepages)

Notes:

  • llama-tui prep and llama-tui serve use sudo for system tuning. Run from a terminal that can prompt for sudo.
  • Config is stored at $XDG_CONFIG_HOME/llama-tui/config.toml (defaults to ~/.config/llama-tui/config.toml).
  • Config models are stored as [[models]] array-of-tables entries.

Serve

llama-tui serve --role chat

/health returns 503 while the model is loading and 200 when ready; llama-tui waits for 200 before returning.

Other Commands

llama-tui models   # list enabled models
llama-tui rpc      # check remote RPC connectivity
llama-tui status   # full system & config summary
llama-tui restore  # revert system tuning
llama-tui swap     # show swap status

Optional RPC

On a second Pi, run:

rpc-server --host <hostname> --port 50052

Enable RPC during setup or edit ~/.config/llama-tui/config.toml.

License

MIT See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_tui-0.1.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_tui-0.1.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file llama_tui-0.1.2.tar.gz.

File metadata

  • Download URL: llama_tui-0.1.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for llama_tui-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9b72776db7afe60bf4523f442d83229ff9c691598b45b3893b749ee44ae48660
MD5 c32a242277b66ffdab90277c3c72d95b
BLAKE2b-256 f8a339aed506ffa194b2b3cfb96e6f697aa7dc9047164520932a4d1c5fafc65a

See more details on using hashes here.

File details

Details for the file llama_tui-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: llama_tui-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for llama_tui-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94626a0fe5cc1e4a757dee21afde918db9235009efd074e42093d668acf13416
MD5 4fbdea99ff04269e313f1c254b39f9f1
BLAKE2b-256 6d7f26aa53757f6c1cf992c807a84d8cd0274df8eee9573e443cb1920d349458

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page