Debian Codegraph @

docs/source/package_reference/fsdp.md

raw
1 <!--Copyright 2023 The HuggingFace Team. All rights reserved.
2
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4 the License. You may obtain a copy of the License at
5
6 http://www.apache.org/licenses/LICENSE-2.0
7
8 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9 an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11
12 ⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
13 rendered properly in your Markdown viewer.
14 -->
15
16 # Fully Sharded Data Parallel utilities
17
18 ## enable_fsdp_ram_efficient_loading
19
20 [[autodoc]] utils.enable_fsdp_ram_efficient_loading
21
22 ## disable_fsdp_ram_efficient_loading
23
24 [[autodoc]] utils.disable_fsdp_ram_efficient_loading
25
26 ## merge_fsdp_weights
27
28 [[autodoc]] utils.merge_fsdp_weights
29
30 ## FullyShardedDataParallelPlugin
31
32 [[autodoc]] utils.FullyShardedDataParallelPlugin
33
34 ## fsdp2_load_full_state_dict
35
36 [[autodoc]] utils.fsdp2_load_full_state_dict
37
38 ## fsdp2_switch_optimizer_parameters
39
40 [[autodoc]] utils.fsdp2_switch_optimizer_parameters
41
42 ## fsdp2_prepare_model
43
44 [[autodoc]] utils.fsdp2_prepare_model
45
46 ## fsdp2_prepare_auto_wrap_policy