A compact PyTorch language-model training and fine-tuning library.
Project description
ArcLM
ArcLM is a lightweight PyTorch library for training, fine-tuning, and generating text with compact causal language models.
It is designed for learning, experimentation, research, and local AI workflows.
Features
- Train compact causal language models from your own text
- Generate text with a simple API
- Fine-tune existing ArcLM checkpoints
- Lightweight and easy to understand
- Built on PyTorch
Installation
Install ArcLM from PyPI:
pip install arclm
Or install the latest development version:
git clone https://github.com/Ahmad-Al-Dibo/ArcLM.git
cd ArcLM
pip install -e ".[dev]"
Quick Start
Train a model:
python train.py
Generate text:
from arclm import load_model
model = load_model("models/arclm.pth")
print(model.predict("machine learning", max_new_tokens=50))
Documentation
The complete documentation is available in docs/USAGE.md.
It includes:
- Training a model from scratch
- Loading saved checkpoints
- Fine-tuning existing ArcLM models
- Working with external checkpoints
- Configuration options
- Best practices and notes
Project Structure
arclm/ Library source code
data/ Example datasets
docs/ Documentation
examples/ Example scripts
models/ Local checkpoints
tests/ Tests
License
ArcLM is licensed under the Apache License 2.0. See the LICENSE file for details.
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
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 arclm-0.1.0.tar.gz.
File metadata
- Download URL: arclm-0.1.0.tar.gz
- Upload date:
- Size: 54.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be89678eb7104e0641d0b8ac8eeae8fb10c7e9d7a5ce175f2fe6b6e4a7f102c4
|
|
| MD5 |
073a1b9525558a71c138134b72dd591a
|
|
| BLAKE2b-256 |
7ac141317eb2a71377c7cbd3f5618e04bb93f5a90bcd8394042b945b253b513e
|
File details
Details for the file arclm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: arclm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 60.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c32d934f6a8701ec16ae33075915ed23c1b7af86cc9bbda07f9b39db94b144d
|
|
| MD5 |
ce98c0050d91ed166494a884c8245bd7
|
|
| BLAKE2b-256 |
7cee21efa8601d66f8d2365c58b973ce8453d4b38b5275a5c62c17b0623c3364
|