Commit 42f25d6
Skip PEFT LoRA Scaling if the scale is 1.0 (huggingface#7576)
* Skip scaling if scale is identity
* move check for weight one to scale and unscale lora
* fix code style/quality
* Empty-Commit
---------
Co-authored-by: Steven Munn <[email protected]>
Co-authored-by: Sayak Paul <[email protected]>
Co-authored-by: Steven Munn <[email protected]>1 parent 33c5d12 commit 42f25d6
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
| |||
0 commit comments