Skip to main content

Simple CLI to chat with GGUF models locally (no Ollama/LM Studio required)

Project description

GGUF Chat CLI

Simple Python CLI to chat with .gguf models locally using ctransformers. No Ollama, llama.cpp, LM Studio, or online providers required.

Install

pip install -r requirements.txt

Or install the package directly:

pip install -e .

Then use the ailaunch command:

ailaunch path/to/model.gguf

Usage

# Basic usage
python chat.py path/to/model.gguf

# Or installed as CLI
ailaunch path/to/model.gguf

# With custom settings
ailaunch model.gguf -c 8192 -t 0.8 --max-tokens 1024

# Disable streaming (wait for full response)
ailaunch model.gguf --no-stream

# Custom system prompt
ailaunch model.gguf --system "You are a coding assistant."

# Options:
#   -c, --ctx-size      Context window size (default: 4096)
#   -g, --gpu-layers    GPU layers to offload (-1 = all, default: -1)
#   -t, --threads       CPU threads (0 = auto, default: 0)
#   --temperature       Sampling temperature (default: 0.7)
#   --max-tokens        Max tokens to generate (default: 512)
#   --no-stream         Disable streaming output
#   --system            Custom system prompt

GPU Acceleration

Install with GPU extras for acceleration:

# NVIDIA CUDA
pip install ctransformers[cuda]

# Apple Metal (M1/M2/M3)
pip install ctransformers[metal]

Then use -g -1 to offload all layers to GPU.

Requirements

  • Python 3.8+
  • ctransformers (installs automatically via pip)

Exit

Type exit, quit, q, or press Ctrl+C to exit.

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

ai_launcher_cli-0.1.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

ai_launcher_cli-0.1.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file ai_launcher_cli-0.1.3.tar.gz.

File metadata

  • Download URL: ai_launcher_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for ai_launcher_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1d7d600af9facb3ae6495f4997a0716b584f6898234b7b8bb91df65f869217d3
MD5 066caae99eb7a45c2e1860178e34cea8
BLAKE2b-256 94c02735487921201ed4c390c1b806ea2a86de35e283028e96c56eeb8bba253e

See more details on using hashes here.

File details

Details for the file ai_launcher_cli-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_launcher_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7b2aa069a9102dc2009009836cc37d2be50f02935e7927aba7597784e14ff69f
MD5 26e298cf6ee91350a0e0cde09ebfbbd9
BLAKE2b-256 3ec7a28534c7505b16b3ef0a184bbf96ad877132dd39342fac5c32cf51456978

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