Fix Conv1d (Convnd) implementation#157
Fix Conv1d (Convnd) implementation#157sentient-codebot wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
Hi Nan, @sentient-codebot great implementation! Wondering whether you have attempted nn.convtranspose1d, nn.convtranspose2d, nn.convtranspose3d. Been bugging me quite a while. Would you mind sharing your implementation in case you did? Thanks! |
|
Hi, I am trying to make lora applicable to ConvTranspose3d with this code: `class ConvTransposeLoRA(nn.Module, LoRALayer): However, a problem occurs as output_size is None, and I cannot define output_size as it fluctuates. Would you know how to solve this? |
|
Should we merge? |
|
great job ! thank you a lot for solving my problems @sentient-codebot |
The current Conv1d (and Conv3d) is not working due to the incompatible shape of (lora_A @ lora_B). I changed only the lora_B's initialization. The shape of lora_B now depends on the dimensions of conv.weight, so it works for 1d to n-d case.
Before
After
Fixes #115