peft
622c2821 - FIX Don't warn about unknown layer type when using target parameters (#2997)

Commit
6 days ago
FIX Don't warn about unknown layer type when using target parameters (#2997) When using target_parameters, the in_features and out_features are not derived from the targeted base layer type, but directly from the shape of the targeted parameter. However, the utility function used to derive these shapes would warn about the layer type being unknown. Therefore, when using target_parameters, users would get a useless warning about an unknown type of module. This PR fixes this and removes the warning for target_parameters. Unrelated change: For some reason, osf_continual_learning.py does not conform to the ruff style and it slipped into the main branch. Fixing it here.
Parents
Loading