Change8
Error2 reports

Fix ModuleNotFoundError

in PEFT

Solution

The "ModuleNotFoundError: No module named 'peft'" error typically occurs because the peft package is either not installed or not installed in the correct environment. Fix this by first ensuring your virtual environment is activated, then install or reinstall peft using `pip install peft`. If using gradient checkpointing from recent peft versions, also make sure you have transformers>=4.35.0 installed.

Timeline

First reported:Jul 27, 2025
Last reported:Jan 6, 2026

Need More Help?

View the full changelog and migration guides for PEFT

View PEFT Changelog