PEFT
github.comlibraryself-hosted
PEFT is a self-hosted library in the Fine-tuning & Training layer of the AI stack. Parameter-efficient fine-tuning methods such as LoRA and QLoRA.
By Lattice editorial · Facts verified · method
- licence
- BSD-3-Clause
- language
- Python
- cost
- free
- owned by
- Applied Engineering
Verified 2026-09build refuses it from 2027-04
Use PEFT when
Parameter-efficient fine-tuning — LoRA and variants — on limited hardware.
Skip PEFT when
You need to change the model's capabilities, not bolt on an adapter.
Produces the weights that layer 1 serves. — that is what this layer of the stack is answerable for. See the full Fine-tuning & Training section for the rest of the options.
Visit github.comCompare with another toolBadge this entry
[](https://lattice.kunjshah.in/fine-tuning/peft)Quick answers
- Is PEFT open source?
- Yes. PEFT is open source under the BSD-3-Clause licence. It is free to use.
- What are the alternatives to PEFT?
- The closest alternatives to PEFT are Unsloth and TRL.
Reading on training
Alternatives to PEFT
Listed as an alternative to
- UnslothUnslothHand-written kernels that cut LoRA memory and time sharply.Use when LoRA fine-tuning on a single GPU, with memory and time roughly halved.Skip when You need a training stack you can audit line by line.Apache-2.0 · self-hosted · free
- TRLTRLHugging Face library of post-training trainers for SFT, DPO and GRPO.Use when Post-training trainers for SFT, DPO and GRPO on top of any PEFT setup.Skip when You are training from scratch rather than aligning an existing model.Apache-2.0 · self-hosted · free
Also in training
- UnslothUnslothHand-written kernels that cut LoRA memory and time sharply.Use when LoRA fine-tuning on a single GPU, with memory and time roughly halved.Skip when You need a training stack you can audit line by line.Apache-2.0 · self-hosted · free
- AxolotlAxolotlConfiguration-driven fine-tuning across common architectures.Use when Configuration-driven fine-tuning across many architectures.Skip when You need to hand-tune the training loop itself.Apache-2.0 · self-hosted · free
- LLaMA-FactoryLLaMA-FactoryUnified interface for SFT, DPO and RLHF on open models.Use when One interface for SFT, DPO and RLHF across open models.Skip when You want a minimal, readable training script.Apache-2.0 · self-hosted · free
- TRLTRLHugging Face library of post-training trainers for SFT, DPO and GRPO.Use when Post-training trainers for SFT, DPO and GRPO on top of any PEFT setup.Skip when You are training from scratch rather than aligning an existing model.Apache-2.0 · self-hosted · free
- DeepSpeedDeepSpeedZeRO sharding and pipeline parallelism for large-scale training.Use when ZeRO sharding and pipeline parallelism across many GPUs.Skip when The model fits on one device — the complexity buys nothing.MIT · self-hosted · free
- Megatron-LMMegatron-LMTensor and pipeline parallel training for multi-GPU clusters.Use when Tensor and pipeline parallel pretraining at cluster scale.Skip when You are fine-tuning rather than pretraining.Apache-2.0 · self-hosted · free
- torchtunetorchtunePyTorch-native recipes for fine-tuning and aligning open models.Use when PyTorch-native recipes that you can read and modify.Skip when You want the breadth of a config-driven stack.BSD-3-Clause · self-hosted · free
- Hugging Face TRLHugging Face TRLPreference and reward optimisation on top of any PEFT setup.Use when Preference and reward optimisation hosted, without a cluster.Skip when Training data cannot be uploaded to a third party.proprietary · saas · usage-based
- ColabColabHosted GPUs for small runs and quick experiments.Use when A disposable GPU for a quick experiment, with no setup.Skip when Anything reproducible — a notebook is not a training pipeline.proprietary · saas · free-tier
- ReplicateReplicateHosted fine-tuning and deployment for open models.Use when Hosted fine-tuning and deployment of an open model, billed per run.Skip when You need custom training code or strict residency.proprietary · saas · usage-based
- Weights & Biases LaunchWeights & Biases LaunchManaged training runs with sweeps and artifact tracking.Use when Managed training runs with sweeps and artifact tracking wired up.Skip when You want training infrastructure you run yourself.proprietary · saas · subscription