🦙 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.jsonfor adding new personas - 📦 Clean CLI experience with
alpacaxcommand
📥 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alpacax-0.1.0.tar.gz | 3.4 kB | Without provenance | Details for alpacax-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alpacax-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for alpacax-0.1.0-py3-none-any.whl |
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
|
Security for alpacax 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.