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.2.tar.gz (7.2 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.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_launcher_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 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.2.tar.gz
Algorithm Hash digest
SHA256 71fc15f439b6406bcd68729b8a17c09450b267268e41917c0dcc1f7e5be6d572
MD5 dc18f1915722afb5ee9c161d92df5f86
BLAKE2b-256 5a108a186f8c1961f23b194f8afa8650a3e0bef3dcf04774ac34722981e9b7ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ai_launcher_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f6ef517ba0a6c2d1b7bc52d469aaa4492257037836fd83a4da1c7944a4ec0c3c
MD5 81bbe3143450d2431dd84596b8cba8c4
BLAKE2b-256 36da91e3f46b7e5218fae32a683016fa0b28329d851a7a2be24f100e7c923a8c

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