LoRA's appeal is the parameter count. A full weight matrix has d_in times d_out entries; the low-rank update has only r times the sum of the two dimensions.
Implement lora_param_count(d_in, d_out, r), the trainable parameters of one LoRA adapter.
Add the two dimensions and multiply by the rank.
No results yet
Run your code to check it against the examples, or submit to run every test.