Skip to content

Commit 0f36880

Browse files
authored
Merge branch 'main' into feature_fourierft_conv2d
2 parents 41d9012 + 50329a7 commit 0f36880

File tree

34 files changed

+1107
-4178
lines changed

34 files changed

+1107
-4178
lines changed

docs/source/_toctree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,7 @@
143143
title: Helpers
144144
- local: package_reference/hotswap
145145
title: Hotswapping adapters
146+
- local: package_reference/functional
147+
title: Functions for PEFT integration
146148
title: Utilities
147149
title: API reference
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
2+
rendered properly in your Markdown viewer.
3+
-->
4+
5+
# Functions for PEFT integration
6+
7+
A collection of functions that could be useful for non-PeftModel models, e.g. transformers or diffusers integration
8+
9+
The functions provided here can be considered "public API" of PEFT and hence are safe to be used by packages that provide PEFT integrations.
10+
11+
## Cast the adapter weight dtypes
12+
[[autodoc]] functional.cast_adapter_dtype
13+
- all
14+
15+
## Delete the PEFT adapter from model
16+
[[autodoc]] functional.delete_adapter
17+
- all
18+
19+
## Get the state dict of the PEFT adapter
20+
[[autodoc]] functional.get_peft_model_state_dict
21+
- all
22+
23+
## Inject a PEFT adapter into the model based on a PEFT config
24+
[[autodoc]] functional.inject_adapter_in_model
25+
- all
26+
27+
## Set the active PEFT adapter(s) of the model
28+
[[autodoc]] functional.set_adapter
29+
- all
30+
31+
## Load the weights of the PEFT state dict into the model
32+
[[autodoc]] functional.set_peft_model_state_dict
33+
- all

0 commit comments

Comments
 (0)