jupyterjazz
commited on
Commit
•
27d23b2
1
Parent(s):
4b000ec
lora-multiple-adapters (#11)
Browse files- fix: remove old var (1ba907ac288b5edddf2b71406ed211b36d8e9b10)
- modeling_lora.py +1 -1
modeling_lora.py
CHANGED
@@ -233,7 +233,7 @@ class XLMRobertaLoRA(XLMRobertaModel):
|
|
233 |
self._alpha = config.lora_alpha
|
234 |
|
235 |
self._register_lora(
|
236 |
-
num_adaptations=self.
|
237 |
rank=self._rank,
|
238 |
dropout_p=self._dropout_p,
|
239 |
alpha=self._alpha,
|
|
|
233 |
self._alpha = config.lora_alpha
|
234 |
|
235 |
self._register_lora(
|
236 |
+
num_adaptations=len(self._lora_adaptations),
|
237 |
rank=self._rank,
|
238 |
dropout_p=self._dropout_p,
|
239 |
alpha=self._alpha,
|