Skip to content

Commit

Permalink
fix(peft): adapt to latest internal API
Browse files Browse the repository at this point in the history
  • Loading branch information
dacorvo committed Jan 8, 2025
1 parent 6639b1d commit 408d3b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions optimum/neuron/distributed/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ def _peft_tuner_embedding_to_parallel_embedding(
config.init_lora_weights,
config.use_rslora,
config.use_dora,
config.lora_bias,
)
mark_parameter_init_status_during_parallelization(parent.lora_embedding_A[adapter_name], True)
mark_parameter_init_status_during_parallelization(parent.lora_embedding_B[adapter_name], True)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"diffusers>=0.28.0, <=0.30.3",
"safetensors",
"sentence-transformers >= 2.2.0",
"peft",
"peft>=0.14.0",
"trl==0.11.4",
"compel",
"rjieba",
Expand Down Expand Up @@ -72,7 +72,7 @@
"neuronx_distributed==0.9.0",
"libneuronxla==2.0.5347.0",
],
"diffusers": ["diffusers>=0.28.0, <=0.30.3", "peft"],
"diffusers": ["diffusers>=0.28.0, <=0.30.3", "peft>=0.14.0"],
"sentence-transformers": ["sentence-transformers >= 2.2.0"],
}

Expand Down

0 comments on commit 408d3b6

Please sign in to comment.