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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_launcher_cli-0.1.1.tar.gz.
File metadata
- Download URL: ai_launcher_cli-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55aed14f16ce550a32598ba3e8370ad116214aaedc05dfafd4ddc3cad3b67002
|
|
| MD5 |
e6c8de4cd5dba6d8e2fd3456dc8aa0a5
|
|
| BLAKE2b-256 |
7dad00221fe9cd3bb0244dac48d49a5f1c4fe533d768f03fee5281ed752f6d0e
|
File details
Details for the file ai_launcher_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ai_launcher_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de0dfccd09832e2bda54a8933ba1ff8db866165c42e5f1008aa79f7ffbde607d
|
|
| MD5 |
697090ad764e8a7ca225629302b9aa2c
|
|
| BLAKE2b-256 |
583cbcc85fcb3c1ed677b450dc70476159920db2cbe32375e03d0d4086e5ae80
|