Implement a class that wraps a frozen weight matrix with a trainable low-rank update, mimicking the kind of adapter commonly attached to attention projection layers in large transformers.
You are given:
The effective (adapted) weight is W0 plus a scaled product of B and A. Your class must support:
The scaling applied to the low-rank update should be alpha divided by r.
When printing arrays in tests, convert them to Python lists first.