---
title: "peft 0.22.0 Breaking Changes on PyPI | Since.dev"
description: "What each peft release removed, renamed or changed: 740 breaking changes in 10 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/peft
last_updated: 2026-12-04
---

# peft breaking changes

peft 0.22.0 (November 19, 2026) is its newest release with breaking changes, 25 of them. The first: peft 0.22.0 drops support for Python 3.10 and requires Python 3.11 or later. Every breaking API change we have recorded in peft on PyPI: 740 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.22.0`, released November 19, 2026. [Source repository](https://github.com/huggingface/peft)

Its 0.22.0 release requires [Python 3.11](https://since.dev/calendar/python/3.11.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.15.0](#v-0-15-0) to [0.22.0](#v-0-22-0): 627 breaking changes in 9 versions.

## peft 0.22.0 breaking changes

peft 0.22.0, released November 19, 2026: 25 breaking changes.

- **Removed**  

PEFT now requires Python 3.11 or newer because Python 3.10 reached end of life. Users on Python 3.10 must upgrade Python to keep using this release. [github.com](https://github.com/huggingface/peft/releases/tag/v0.22.0)
- **Removed** `peft.tuners.lora.conversion.ModulesToSaveWrapper`  

peft.tuners.lora.conversion.ModulesToSaveWrapper was removed in peft 0.22.0 [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Removed** `peft.tuners.lora.dora.DoraConv1dLayer.conv_fn`  

DoraConv1dLayer.conv_fn was removed in peft 0.22.0 [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Removed** `peft.tuners.lora.dora.DoraConv2dLayer.conv_fn`  

DoraConv2dLayer.conv_fn was removed in peft 0.22.0 [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Removed** `peft.tuners.lora.dora.DoraConv3dLayer.conv_fn`  

DoraConv3dLayer.conv_fn was removed in peft 0.22.0 [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Removed** `peft.tuners.lora.model.Conv2d`  

peft.tuners.lora.model.Conv2d was removed in peft 0.22.0 [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Removed** `peft.tuners.oft.layer.OFTRotationModule.kernel_size`  

OFTRotationModule.kernel_size was removed in peft 0.22.0 [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Removed** `peft.utils.loftq_utils.is_xpu_available`  

peft.utils.loftq_utils.is_xpu_available was removed in peft 0.22.0 [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Behavior changed** `low_cpu_mem_usage`  

With low_cpu_mem_usage=True the loaded adapter keeps the dtypes already in the model rather than restoring checkpoint dtypes. [github.com](https://github.com/huggingface/peft/releases/tag/v0.22.0)
- **Behavior changed** `modules_to_save`  

modules_to_save previously matched by suffix; now the whole sub-module name must match. Pass both names explicitly or edit adapter_config.json to keep old behavior. [github.com](https://github.com/huggingface/peft/releases/tag/v0.22.0)
- **Behavior changed** `OFT Conv2d`  

The forward code of OFT Conv2d layers was corrected, so existing OFT checkpoints targeting Conv2d may produce different outputs when used without merging. [github.com](https://github.com/huggingface/peft/releases/tag/v0.22.0)
- **Behavior changed** `PeftModel.from_pretrained`  

from_pretrained now warns by default on missing and unexpected adapter keys. Pass strict_adapter_check="ignore" to suppress these checks or "error" to fail on a mismatch. [github.com](https://github.com/huggingface/peft/releases/tag/v0.22.0)
- **Behavior changed** `PeftModel.merge_adapter`  

Merging one adapter of a model with several active adapters currently ignores the others, and this will raise an error in a future release. The 0.22.0 notes describe it only as a future change. [github.com](https://github.com/huggingface/peft/releases/tag/v0.22.0)
- **Behavior changed** `prepare_model_for_kbit_training`  

prepare_model_for_kbit_training uses the Transformers default checkpointing when no kwargs are given, which is non-reentrant on current Transformers. Pass use_reentrant True to keep reentrant checkpointing. [github.com](https://github.com/huggingface/peft/releases/tag/v0.22.0)
- **Signature changed** `peft.AdaLoraConfig.__init__`  

Was def \_\_init\_\_(self, task_type: Optional\[Union\[str, TaskType\]\] = None, peft_type: Optional\[Union\[str, PeftType\]\] = None, auto_mapping: Optional\[dict\] = None, peft_version: Optional\[str\] = None, base_model_name_or_path: Optional\[str\] =... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.LoraConfig.__init__`  

Was def \_\_init\_\_(self, task_type: Optional\[Union\[str, TaskType\]\] = None, peft_type: Optional\[Union\[str, PeftType\]\] = None, auto_mapping: Optional\[dict\] = None, peft_version: Optional\[str\] = None, base_model_name_or_path: Optional\[str\] =... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.LoraConfig.init_lora_weights`  

Was init_lora_weights: bool | Literal\['gaussian', 'eva', 'olora', 'pissa', 'pissa_niter\_\[number of iters\]', 'corda', 'loftq', 'orthogonal', 'mica'\]; now init_lora_weights: bool | Literal\['gaussian', 'eva', 'olora', 'pissa'... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.optimizers.create_lorafa_optimizer`  

Was def create_lorafa_optimizer(model: PeftModel, r: int, lora_alpha: int, lr: float, weight_decay: float = 0.0, use_rslora: bool | None = None) -> Optimizer; now def create_lorafa_optimizer(model: PeftModel, \*args: Any, \*\*kwargs: Any) ->... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.PeftModel.from_pretrained`  

Was @classmethod def from_pretrained(cls, model: torch.nn.Module, model_id: Union\[str, os.PathLike\], adapter_name: str = 'default', is_trainable: bool = False, config: Optional\[PeftConfig\] = None, autocast_adapter_dtype: bool = True... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.PeftModel.load_adapter`  

Was def load_adapter(self, model_id: Union\[str, os.PathLike\], adapter_name: str, is_trainable: bool = False, torch_device: Optional\[str\] = None, autocast_adapter_dtype: bool = True, ephemeral_gpu_offload: bool = False, low_cpu_mem_usage... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.prepare_model_for_kbit_training`  

Was def prepare_model_for_kbit_training(model, use_gradient_checkpointing=True, gradient_checkpointing_kwargs=None, auto_clear_cache=True); now def prepare_model_for_kbit_training(model, use_gradient_checkpointing=True... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.tuners.lora.eva.MultiheadAttention.update_layer`  

Was def update_layer(self, \*args, \*\*kwargs) -> None; now def update_layer(self, \*args, config: LoraConfig, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.tuners.lora.intruders.reduce_intruder_dimension`  

Was def reduce_intruder_dimension(peft_model, old_adapter_name='default', new_adapter_name='intruder_reduced', top_k=10, threshold_epsilon=0.5, mitigation_lambda=0.75, logging_sink=print); now def reduce_intruder_dimension(peft_model... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.tuners.lora.model.add_lora_tp_hooks_dtensor`  

Was def add_lora_tp_hooks_dtensor(tp_module: nn.Module, tp_plan_name: str, device_mesh, \*, base_layer: nn.Module, module_name: str) -> None; now def add_lora_tp_hooks_dtensor(tp_module: nn.Module, tp_plan_name: str, device_mesh, \*... [pypi.org](https://pypi.org/project/peft/0.22.0/)
- **Signature changed** `peft.tuners.oft.layer.OFTRotationModule.__init__`  

Was def \_\_init\_\_(self, r, n_elements, block_size, in_features, coft=False, eps=6e-05, block_share=False, kernel_size=(0, 0), use_cayley_neumann=True, num_cayley_neumann_terms=5); now def \_\_init\_\_(self, r, n_elements, block_size... [pypi.org](https://pypi.org/project/peft/0.22.0/)

## peft 0.21.2 breaking changes

peft 0.21.2, released October 1, 2026: 1 breaking change.

- **Removed** `peft.PeftModelForSeq2SeqLM.base_model_prepare_encoder_decoder_kwargs_for_generation`  

PeftModelForSeq2SeqLM.base_model_prepare_encoder_decoder_kwargs_for_generation was removed in peft 0.21.2 [pypi.org](https://pypi.org/project/peft/0.21.2/)

## peft 0.21.1 breaking changes

peft 0.21.1, released September 29, 2026: 1 breaking change.

- **Configuration changed**  

This release enables Tensor Parallel to work with PEFT and requires Transformers 5.17.0 or newer. Users on older Transformers versions must upgrade to use it. [github.com](https://github.com/huggingface/peft/releases/tag/v0.21.1)

## peft 0.21.0 breaking changes

peft 0.21.0, released September 15, 2026: 62 breaking changes.

- **Removed** `peft.tuners.oft.aqlm`  

peft.tuners.oft.aqlm was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.awq`  

peft.tuners.oft.awq was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.bnb`  

peft.tuners.oft.bnb was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.eetq`  

peft.tuners.oft.eetq was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.EetqOFTLinear`  

peft.tuners.oft.EetqOFTLinear was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.gptq`  

peft.tuners.oft.gptq was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.GPTQOFTLinear`  

peft.tuners.oft.GPTQOFTLinear was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.hqq`  

peft.tuners.oft.hqq was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.inc`  

peft.tuners.oft.inc was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)
- **Removed** `peft.tuners.oft.layer.dispatch_default`  

peft.tuners.oft.layer.dispatch_default was removed in peft 0.21.0 [pypi.org](https://pypi.org/project/peft/0.21.0/)

And 52 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## peft 0.20.0 breaking changes

peft 0.20.0, released July 28, 2026: 135 breaking changes.

- **Removed** `peft.tuners.mixed.model.get_gptqmodel_quant_linear`  

peft.tuners.mixed.model.get_gptqmodel_quant_linear was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.shira.ShiraLayer.in_features`  

ShiraLayer.in_features was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.shira.ShiraLayer.out_features`  

ShiraLayer.out_features was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.shira.ShiraLayer.weight_shape`  

ShiraLayer.weight_shape was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.tinylora.TinyLoraLayer.set_layer_idx`  

TinyLoraLayer.set_layer_idx was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.vera.bnb`  

peft.tuners.vera.bnb was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.vera.Linear4bit`  

peft.tuners.vera.Linear4bit was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.vera.Linear8bitLt`  

peft.tuners.vera.Linear8bitLt was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.vera.model.is_bnb_4bit_available`  

peft.tuners.vera.model.is_bnb_4bit_available was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)
- **Removed** `peft.tuners.vera.model.is_bnb_available`  

peft.tuners.vera.model.is_bnb_available was removed in peft 0.20.0 [pypi.org](https://pypi.org/project/peft/0.20.0/)

And 125 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## peft 0.19.0 breaking changes

peft 0.19.0, released April 14, 2026: 149 breaking changes.

- **Removed** `Bone`  

The Bone method was removed. Switch to MiSS; a conversion script is provided to port old Bone checkpoints. [github.com](https://github.com/huggingface/peft/releases/tag/v0.19.0)
- **Removed** `peft.BoneConfig`  

peft.BoneConfig was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.BoneModel`  

peft.BoneModel was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.config.PeftType.BONE`  

peft.config.PeftType.BONE was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.import_utils.is_auto_awq_available`  

peft.import_utils.is_auto_awq_available was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.import_utils.is_auto_gptq_available`  

peft.import_utils.is_auto_gptq_available was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.mapping_func.BaseTuner.set_auxiliary_adapters`  

BaseTuner.set_auxiliary_adapters was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.mapping.PeftType.BONE`  

peft.mapping.PeftType.BONE was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.peft_model.PEFT_TYPE_TO_MODEL_MAPPING`  

peft.peft_model.PEFT_TYPE_TO_MODEL_MAPPING was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)
- **Removed** `peft.peft_model.PeftType.BONE`  

peft.peft_model.PeftType.BONE was removed in peft 0.19.0 [pypi.org](https://pypi.org/project/peft/0.19.0/)

And 139 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### peft 0.18.0 breaking changes

peft 0.18.0, released November 13, 2025: 171 breaking changes.

- **Removed**  

This release no longer supports Python 3.9, which reached end of life. Users must run on Python 3.10 or later. [github.com](https://github.com/huggingface/peft/releases/tag/v0.18.0)
- **Removed** `peft.BOFTModel.get_peft_config_as_dict`  

BOFTModel.get_peft_config_as_dict was removed in peft 0.18.0 [pypi.org](https://pypi.org/project/peft/0.18.0/)

And 169 more in this version.

### peft 0.17.0 breaking changes

peft 0.17.0, released August 1, 2025: 31 breaking changes.

- **Signature changed** `peft.AdaLoraConfig.__init__`  

Was def \_\_init\_\_(self, task_type: Optional\[Union\[str, TaskType\]\] = None, peft_type: Optional\[Union\[str, PeftType\]\] = None, auto_mapping: Optional\[dict\] = None, base_model_name_or_path: Optional\[str\] = None, revision: Optional\[str\] = None... [pypi.org](https://pypi.org/project/peft/0.17.0/)
- **Signature changed** `peft.AdaLoraModel.__init__`  

Was def \_\_init\_\_(self, model, config, adapter_name); now def \_\_init\_\_(self, model, config, adapter_name, \*\*kwargs). [pypi.org](https://pypi.org/project/peft/0.17.0/)

And 29 more in this version.

### peft 0.16.0 breaking changes

peft 0.16.0, released July 3, 2025: 52 breaking changes.

- **Removed** `peft.helpers.LoraLayer.dora_init`  

LoraLayer.dora_init was removed in peft 0.16.0 [pypi.org](https://pypi.org/project/peft/0.16.0/)
- **Removed** `peft.peft_model.TrainableTokensWrapper`  

peft.peft_model.TrainableTokensWrapper was removed in peft 0.16.0 [pypi.org](https://pypi.org/project/peft/0.16.0/)

And 50 more in this version.

### peft 0.15.0 breaking changes

peft 0.15.0, released March 19, 2025: 113 breaking changes.

- **Removed** `peft.__version__`  

peft.\_\_version\_\_ was removed in peft 0.15.0 [pypi.org](https://pypi.org/project/peft/0.15.0/)
- **Removed** `peft.mapping.AdaLoraConfig`  

peft.mapping.AdaLoraConfig was removed in peft 0.15.0 [pypi.org](https://pypi.org/project/peft/0.15.0/)

And 111 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
