transformers
e31c5f60 - FIX: Minimal fix for loading PEFT weights (#42387)

Commit
185 days ago
FIX: Minimal fix for loading PEFT weights (#42387) * FIX Minimal fix for loading PEFT weights After the weight conversion PR #41580, some adjustments were still required for loading PEFT weights. This PR presents a minimal fix to make it work again. Besides renaming keys, this PR does not address possible conversions that might be required to be applied to the PEFT weights themselves (most wouldn't work anyway, but e.g. chunking should be possible to implement). As for test, the existing test_peft_from_pretrained in test_peft_integration.py actually fails on main right now, this PR fixes it. As the tests are slow tests, normal CI won't pick this up though. * Allow n:n matching * Reviewer feedback
Parents
Loading