Skip to content

Commit 182f4c9

Browse files
authored
ENH Add RWKV default target modules (#2810)
1 parent 1a1f972 commit 182f4c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/peft/utils/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def starcoder_model_postprocess_past_key_value(past_key_values):
100100
"gemma3_text": ["q_proj", "v_proj"],
101101
"qwen2": ["q_proj", "v_proj"],
102102
"qwen3": ["q_proj", "v_proj"],
103+
"rwkv": ["key", "value", "receptance", "output"],
104+
"rwkv7": ["r_proj", "k_proj", "v_proj", "o_proj", "key", "value"],
103105
}
104106

105107
# target module mappings that are identical to LORA

0 commit comments

Comments
 (0)