[Feature] Add LoRA support for embedding layers (#14177)
Co-authored-by: Baizhou Zhang <sobereddiezhang@gmail.com> Co-authored-by: Beichen-Ma <bm685@cornell.edu>
This commit is contained in:
co-authored by
Baizhou Zhang
Beichen-Ma
parent
9ad02b799d
commit
0c63fb9420
@@ -97,7 +97,17 @@ class TestLoRAEviction(CustomTestCase):
|
||||
max_loras_per_batch=1,
|
||||
enable_lora=True,
|
||||
max_lora_rank=256,
|
||||
lora_target_modules=["all"],
|
||||
# Need to list all lora modules, or "all" might include lora modules without assigning lora weights
|
||||
# lora_target_modules=["all"],
|
||||
lora_target_modules=[
|
||||
"q_proj",
|
||||
"k_proj",
|
||||
"v_proj",
|
||||
"o_proj",
|
||||
"gate_proj",
|
||||
"up_proj",
|
||||
"down_proj",
|
||||
],
|
||||
) as srt_runner:
|
||||
adapter_sequence = lora_paths if not reverse else lora_paths[::-1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user