Skip to main content

🦙 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

Metadata

Release files for alpacax 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alpacax 0.1.0
File Size Uploaded
alpacax-0.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alpacax 0.1.0
File Interpreter ABI Platform
alpacax-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / alpacax-0.1.0.tar.gz

Download URL alpacax-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5149bfe1795cab3cc87d09f048f54b0a9b2535c93123a98d70b7b709d06eb0d7
BLAKE2b-256 checksum
How to use checksums
47975e5de239a1bb181717189cacc60007ee45644d24f1cea857bb0171c84242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / alpacax-0.1.0-py3-none-any.whl

Download URL alpacax-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25b594520522ff843479fc5b515ed803e55eaffc00b23af4e8f5ba76d7b7c034
BLAKE2b-256 checksum
How to use checksums
690664434a54d8b177c1874b94d8088c04595e6bcee39b60ed6d856dbf73196d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page