Since the line matching module name to a substring pattern is called twice, I created a function and moved it to peft.utils.other. I think its a utility function that could be useful multiple times.
Also added a test case closely resembling the example in issue 2194 which passes now.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
This is a bugfix for issue 2194
Since the line matching module name to a substring pattern is called twice, I created a function and moved it to
peft.utils.other
. I think its a utility function that could be useful multiple times.Also added a test case closely resembling the example in issue 2194 which passes now.