Skip to content

Commit 6c6d441

Browse files
Update src/peft/tuners/randlora/model.py
Bug fixing Co-authored-by: Benjamin Bossan <[email protected]>
1 parent 95c8fb1 commit 6c6d441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peft/tuners/randlora/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _init_randlora_A_randlora_B_sparse(self, config: RandLoraConfig, adapter_nam
158158

159159
# Number of bases to ensure full rank
160160
num_bases = min_dim / config.r
161-
num_bases = int(n_bases) if num_bases.is_integer() else int(num_bases) + 1 # Ensure full rank
161+
num_bases = int(num_bases) if num_bases.is_integer() else int(num_bases) + 1 # Ensure full rank
162162
randlora_B = torch.rand((max_dim, num_bases, config.r), generator=generator)
163163

164164
# The current implementation is a proof of concept and does take into consideration

0 commit comments

Comments
 (0)