You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The layer pattern name, used only if `layers_to_transform` is different from `None` and if the layer
58
-
pattern is not in the common layers pattern.
58
+
pattern is not in the common layers pattern. This should target the `nn.ModuleList` of the model, which is
59
+
often called `'layers'` or `'h'`.
59
60
"""
60
61
61
62
boft_block_size: int=field(
@@ -129,10 +130,11 @@ class BOFTConfig(PeftConfig):
129
130
"help": "The layer indexes to transform, is this argument is specified, PEFT will transform only the layers indexes that are specified inside this list. If a single integer is passed, PEFT will transform only the layer at this index."
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern."
136
+
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern. "
137
+
"This should target the `nn.ModuleList` of the model, which is often called `'layers'` or `'h'`."
The layer pattern name, used only if `layers_to_transform` is different from `None`. This should target the
55
+
`nn.ModuleList` of the model, which is often called `'layers'` or `'h'`.
55
56
rank_pattern (`dict`):
56
57
The mapping from layer names or regexp expression to ranks which are different from the default rank
57
58
specified by `r`.
@@ -96,10 +97,11 @@ class HRAConfig(PeftConfig):
96
97
"help": "The layer indexes to transform, is this argument is specified, PEFT will transform only the layers indexes that are specified inside this list. If a single integer is passed, PEFT will transform only the layer at this index."
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern."
103
+
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern. "
104
+
"This should target the `nn.ModuleList` of the model, which is often called `'layers'` or `'h'`."
103
105
},
104
106
)
105
107
bias: str=field(default="none", metadata={"help": "Bias type for HRA. Can be 'none', 'all' or 'hra_only'"})
The layer pattern name, used only if `layers_to_transform` is different from `None`. This should target the
60
+
`nn.ModuleList` of the model, which is often called `'layers'` or `'h'`.
60
61
rank_pattern (`dict`):
61
62
The mapping from layer names or regexp expression to ranks which are different from the default rank
62
63
specified by `r`.
@@ -108,10 +109,11 @@ class LoHaConfig(LycorisConfig):
108
109
"help": "The layer indexes to transform, is this argument is specified, PEFT will transform only the layers indexes that are specified inside this list. If a single integer is passed, PEFT will transform only the layer at this index."
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern."
115
+
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern. "
116
+
"This should target the `nn.ModuleList` of the model, which is often called `'layers'` or `'h'`."
The layer pattern name, used only if `layers_to_transform` is different from `None`. This should target the
64
+
`nn.ModuleList` of the model, which is often called `'layers'` or `'h'`.
64
65
rank_pattern (`dict`):
65
66
The mapping from layer names or regexp expression to ranks which are different from the default rank
66
67
specified by `r`.
@@ -117,10 +118,11 @@ class LoKrConfig(LycorisConfig):
117
118
"help": "The layer indexes to transform, is this argument is specified, PEFT will transform only the layers indexes that are specified inside this list. If a single integer is passed, PEFT will transform only the layer at this index."
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern."
124
+
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern. "
125
+
"This should target the `nn.ModuleList` of the model, which is often called `'layers'` or `'h'`."
The layer pattern name, used only if `layers_to_transform` is different from `None`. This should target the
128
+
`nn.ModuleList` of the model, which is often called `'layers'` or `'h'`.
128
129
rank_pattern (`dict`):
129
130
The mapping from layer names or regexp expression to ranks which are different from the default rank
130
131
specified by `r`.
@@ -229,7 +230,8 @@ class LoraConfig(PeftConfig):
229
230
default=None,
230
231
metadata={
231
232
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern."
232
-
"This only works when target_modules is a list of str."
233
+
"This only works when target_modules is a list of str. This should target the `nn.ModuleList` of the "
234
+
"model, which is often called `'layers'` or `'h'`."
The layer pattern name, used only if `layers_to_transform` is different from `None`. This should target the
59
+
`nn.ModuleList` of the model, which is often called `'layers'` or `'h'`.
59
60
rank_pattern (`dict`):
60
61
The mapping from layer names or regexp expression to ranks which are different from the default rank
61
62
specified by `r`.
@@ -117,10 +118,11 @@ class OFTConfig(PeftConfig):
117
118
"help": "The layer indexes to transform, is this argument is specified, PEFT will transform only the layers indexes that are specified inside this list. If a single integer is passed, PEFT will transform only the layer at this index."
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern."
124
+
"help": "The layer pattern name, used only if `layers_to_transform` is different to None and if the layer pattern is not in the common layers pattern. "
125
+
"This should target the `nn.ModuleList` of the model, which is often called `'layers'` or `'h'`."
The layer pattern name, used only if `layers_to_transform` is different from `None`. This should target the
84
+
`nn.ModuleList` of the model, which is often called `'layers'` or `'h'`.
84
85
"""
85
86
86
87
r: int=field(default=4, metadata={"help": "The rank of incremental matrices."})
@@ -169,7 +170,8 @@ class VBLoRAConfig(PeftConfig):
169
170
default=None,
170
171
metadata={
171
172
"help": "The layer indexes to transform, is this argument is specified, PEFT will transform only the layers indexes that are specified inside this list. If a single integer is passed, PEFT will transform only the layer at this index. "
172
-
"This only works when target_modules is a list of str."
173
+
"This only works when target_modules is a list of str. This should target the `nn.ModuleList` of the "
174
+
"model, which is often called `'layers'` or `'h'`."
0 commit comments