Skip to main content

LoRA-powered GPT2 AlpacaX CLI

Project description

🦙 AlpacaX — LoRA-Enhanced GPT-2 CLI Chatbot

AlpacaX is a Python CLI chatbot built on top of a fine-tuned GPT-2 model with LoRA (Low-Rank Adapters) for modular, instruction-following interactions.
This tool lets you chat with different personas or skillsets — poetry, math, philosophy — by loading lightweight LoRA adapters defined in a simple JSON config.


🚀 Features

  • 🧠 Fine-tuned GPT-2 backbone (SullyGreene/gpt2-alpacax-clean)
  • 🧩 Pluggable LoRA adapters for dynamic behavior
  • 💬 Structured prompt format (Alpaca-style with <instruction>, <input>, <output>)
  • ⚙️ Easy-to-edit adapters.json for adding new personas
  • 📦 Clean CLI experience with alpacax command

📥 Installation

pip install alpacax

Requires Python 3.8+


💡 Usage

alpacax

Then follow the CLI prompt to choose an adapter and start chatting.

Example conversation:

📚 Available Adapters:
 - poetry
 - philosophy
 - math

🔍 Choose adapter (default: poetry):
🧑 You: write a poem about the stars
🤖 AlpacaX:  
  Stars whisper through time,  
  Echoes of light in the void,  
  Dreaming in silence.

🔧 Configuration: adapters.json

This file lives inside the alpacax package and defines which LoRA adapters are available:

{
  "default": "SullyGreene/gpt2-lora-alpacax",
  "adapters": {
    "poetry": "SullyGreene/gpt2-lora-alpacax",
    "math": "your-org/gpt2-lora-math",
    "philosophy": "your-org/gpt2-lora-philosophy"
  }
}

Update it to include new instruction-following LoRA adapters hosted on 🤗 Hugging Face Hub.


🛠 Development

Clone the repo and install locally for development:

git clone https://github.com/SullyGreene/AlpacaX.git
cd AlpacaX
pip install .
alpacax

📜 License

MIT License


🧙‍♂️ Made with magic by Sully Greene

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

alpacax-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

alpacax-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alpacax-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for alpacax-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5149bfe1795cab3cc87d09f048f54b0a9b2535c93123a98d70b7b709d06eb0d7
MD5 b4f64a124773abdddc048bf110055dfc
BLAKE2b-256 47975e5de239a1bb181717189cacc60007ee45644d24f1cea857bb0171c84242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alpacax-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for alpacax-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25b594520522ff843479fc5b515ed803e55eaffc00b23af4e8f5ba76d7b7c034
MD5 31d3579c8da6a896681374a6a0972813
BLAKE2b-256 690664434a54d8b177c1874b94d8088c04595e6bcee39b60ed6d856dbf73196d

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