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.0.tar.gz (3.5 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.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_launcher_cli-0.1.0.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

Hashes for ai_launcher_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39592cd6d046500493b754cd65476c70fe7850ed2b62c796ba286f6e5c90ed2d
MD5 2b2c8c935f3501fe8e5a2cb0a812344c
BLAKE2b-256 403266ca0aa4ad6a918fedf2fa23c272933c3aee8bdf3716606c95a359fff83b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ai_launcher_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e04c01e3d89a6a7006526c0c8172a6c6519baddcd92033fb0891049aed35eed5
MD5 b9ddf00385739e544576e88b483b63ba
BLAKE2b-256 1cdf7fe3bd405a6037e7a70d4644d3c424dcf451780f46a00ce0b96061f6fb6e

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