Debian Codegraph @

docs/source/package_reference/kwargs.md

raw
1 <!--Copyright 2021 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 # Kwargs handlers
17
18 The following objects can be passed to the main [`Accelerator`] to customize how some PyTorch objects
19 related to distributed training or mixed precision are created.
20
21 ## AutocastKwargs
22
23 [[autodoc]] AutocastKwargs
24
25 ## DistributedDataParallelKwargs
26
27 [[autodoc]] DistributedDataParallelKwargs
28
29 ## FP8RecipeKwargs
30
31 [[autodoc]] utils.FP8RecipeKwargs
32
33 ## ProfileKwargs
34
35 [[autodoc]] utils.ProfileKwargs
36
37 ## GradScalerKwargs
38
39 [[autodoc]] GradScalerKwargs
40
41 ## InitProcessGroupKwargs
42
43 [[autodoc]] InitProcessGroupKwargs
44
45 ## KwargsHandler
46
47 [[autodoc]] utils.KwargsHandler