Parameter-Efficient Fine-Tuning Made Easy
PEFT-Factory is a fork of LLaMA-Factory ❤️, enhanced with an easy-to-use PEFT interface, support for HuggingFace PEFT methods, and curated datasets for benchmarking PEFT approaches.
📄 System Demonstration Paper | 🎥 Demo Video | 🏛️ EACL 2026
🏆 PEFT-Factory was presented at EACL 2026 (19th Conference of the European Chapter of the Association for Computational Linguistics, Rabat, Morocco) as a System Demonstration.
Supported Methods
| PEFT Method | Supported | Backend |
|---|---|---|
| LoRA (including variants) | ✅ | 🦙 LLaMA-Factory |
| OFT | ✅ | 🦙 LLaMA-Factory |
| Prefix Tuning | ✅ | 🤗 HuggingFace PEFT |
| Prompt Tuning | ✅ | 🤗 HuggingFace PEFT |
| P-Tuning | ✅ | 🤗 HuggingFace PEFT |
| P-Tuning v2 | ✅ | 🤗 HuggingFace PEFT |
| MPT | ✅ | 🤗 HuggingFace PEFT |
| IA³ | ✅ | 🤗 HuggingFace PEFT |
| LNTuning | ✅ | 🤗 HuggingFace PEFT |
| Bottleneck Adapter | ✅ | 🤖 AdapterHub |
| Parallel Adapter | ✅ | 🤖 AdapterHub |
| SeqBottleneck Adapter | ✅ | 🤖 AdapterHub |
| SVFT | ✅ | ⚙️ Custom |
| BitFit | ✅ | ⚙️ Custom |
Usage
This section provides instructions on how to install PEFT-Factory, download the necessary data and methods, and run training using either the command line or the web UI.
Quickstart
For a video walkthrough, visit the PEFT-Factory Demonstration Video.
# Install the package
pip install peftfactory
# Download the repository, which contains data, PEFT methods, and examples
git clone https://github.com/kinit-sk/PEFT-Factory.git && cd PEFT-Factory
# Start the web UI
pf webui
Alternatively, you can run training directly from the command line:
# Install the package
pip install peftfactory
# Download the repository, which contains data, PEFT methods, and examples
git clone https://github.com/kinit-sk/PEFT-Factory.git && cd PEFT-Factory
Set Environment Variables for envsubst
Define the variables that will be substituted into the training config template:
TIMESTAMP=`date +%s`
OUTPUT_DIR="saves/bitfit/llama-3.2-1b-instruct/train_wsc_${TIMESTAMP}"
DATASET="wsc"
SEED=123
WANDB_PROJECT="peft-factory-train-bitfit"
WANDB_NAME="bitfit_llama-3.2-1b-instruct_train_wsc"
mkdir -p "${OUTPUT_DIR}"
export OUTPUT_DIR DATASET SEED WANDB_PROJECT WANDB_NAME
Apply the Config Template
The envsubst utility replaces occurrences of environment variables in the template file with their current values:
envsubst < examples/peft/bitfit/llama-3.2-1b-instruct/train.yaml > ${OUTPUT_DIR}/train.yaml
Run Training
peftfactory-cli train ${OUTPUT_DIR}/train.yaml
Installation
PEFT-Factory can be installed in several ways: directly from PyPI for the latest release, or built from source for the development version.
From PyPI (Recommended)
pip install peftfactory
From Source
1. Clone the repository:
git clone git@github.com:kinit-sk/PEFT-Factory.git
2. Build the wheel package:
make build
3. Install with pip:
pip install dist/[name of the built package].whl
Installing DeepSpeed
DeepSpeed is required for evaluation and computation of the PSCP metric.
pip install deepspeed
Note: You may encounter an error about the
CUDA_HOMEenvironment variable not being set. The fix depends on your environment:
Conda
conda install -c nvidia cuda-compiler
Standard virtualenv / pyenv
You will need to install CUDA with the nvcc compiler at the OS level. Instructions vary by operating system — consult your distribution's documentation. For example, on Arch Linux:
# Arch Linux example — the exact command differs per OS
sudo pacman -S cuda
Data and Methods
To download the datasets, PEFT method implementations, and example configs for training, clone the repository from GitHub:
git clone https://github.com/kinit-sk/PEFT-Factory.git && cd PEFT-Factory
Running Training
From the Command Line
pf train [path to config file].yaml
Using the Web UI
pf webui
Citation
If you use PEFT-Factory in your research, please cite our EACL 2026 System Demonstration paper:
@inproceedings{belanec-etal-2026-peft-factory,
title = "{PEFT}-Factory: Unified Parameter-Efficient Fine-Tuning of Autoregressive Large Language Models",
author = "Belanec, Robert and
Srba, Ivan and
Bielikova, Maria",
editor = "Croce, Danilo and
Leidner, Jochen and
Moosavi, Nafise Sadat",
booktitle = "Proceedings of the 19th Conference of the {E}uropean Chapter of the {A}ssociation for {C}omputational {L}inguistics (Volume 3: System Demonstrations)",
month = mar,
year = "2026",
address = "Rabat, Morocco",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.eacl-demo.15/",
doi = "10.18653/v1/2026.eacl-demo.15",
pages = "188--202",
ISBN = "979-8-89176-382-1",
abstract = "Parameter-Efficient Fine-Tuning (PEFT) methods address the increasing size of Large Language Models (LLMs). Currently, many newly introduced PEFT methods are challenging to replicate, deploy, or compare with one another. To address this, we introduce PEFT-Factory, a unified framework for efficient fine-tuning LLMs using both off-the-shelf and custom PEFT methods. While its modular design supports extensibility, it natively provides a representative set of 19 PEFT methods, 27 classification and text generation datasets addressing 12 tasks, and both standard and PEFT-specific evaluation metrics. As a result, PEFT-Factory provides a ready-to-use, controlled, and stable environment, improving replicability and benchmarking of PEFT methods. PEFT-Factory is a downstream framework that originates from the popular LLaMA-Factory, and is publicly available at https://github.com/kinit-sk/PEFT-Factory."
}
Metadata
Release files for peftfactory 0.9.4.8
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 |
|---|---|---|---|---|
| peftfactory-0.9.4.8.tar.gz | 230.1 kB | With provenance | Details for peftfactory-0.9.4.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| peftfactory-0.9.4.8-py3-none-any.whl | Python 3 | none | any | Details for peftfactory-0.9.4.8-py3-none-any.whl |
Total release size: 547.2 kB
Release files / peftfactory-0.9.4.8.tar.gz
| Download URL | peftfactory-0.9.4.8.tar.gz |
|---|---|
| Size | 230.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f48bee33332527fdc5b82d961460d04fbf105cd267f0ddaa155b53218aa4a43a
|
|
BLAKE2b-256 checksum How to use checksums |
9af2cf2c8b02311da6c3fa09efb9fb2b025674e9c723436e52e7c851a02b7a6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logRelease files / peftfactory-0.9.4.8-py3-none-any.whl
| Download URL | peftfactory-0.9.4.8-py3-none-any.whl |
|---|---|
| Size | 317.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb04e00af48e5064f25f5e29e75d98ab580e671457286e7bbee230a949a7e26c
|
|
BLAKE2b-256 checksum How to use checksums |
6078c6885dd501bc89742fdf33ffa49171b9baab2f1b6d101536bf9c0d894521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logSecurity for peftfactory 0.9.4.8
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for peftfactory-0.9.4.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logA 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.