Change8

v0.17.1

Breaking Changes
📦 peftView on GitHub →
1 breaking1 features🐛 2 fixes🔧 3 symbols

Summary

This patch release fixes bugs related to the new target_parameters feature, specifically ensuring existing parameterizations are preserved and preventing incorrect behavior when loading multiple adapters.

⚠️ Breaking Changes

  • Adding multiple adapters (via model.add_adapter or model.load_adapter) now raises an error instead of failing silently or incorrectly, preventing unexpected behavior when mixing adapters.

Migration Steps

  1. If you were relying on adding multiple adapters simultaneously, you must now load or add adapters sequentially, as the library explicitly prevents simultaneous addition due to complexity.

✨ New Features

  • The target_parameters feature now correctly handles existing parametrizations on nn.Parameter objects, ensuring PEFT does not remove them.

🐛 Bug Fixes

  • Fixed an issue where adding multiple adapters failed to work correctly.
  • Fixed an issue where PEFT incorrectly removed existing parametrizations from nn.Parameter when using target_parameters.

🔧 Affected Symbols

target_parametersmodel.add_adaptermodel.load_adapter