Small fixes to the documentation (#16180)

This commit is contained in:
Sylvain Gugger
2022-03-18 17:48:27 -04:00
committed by GitHub
parent ffc319e7b8
commit 8d7420768c
12 changed files with 21 additions and 21 deletions

View File

@@ -1181,9 +1181,9 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
Mirror source to accelerate downloads in China. If you are from China and have an accessibility
problem, you can set this option to resolve it. Note that we do not guarantee the timeliness or safety.
Please refer to the mirror site for more information.
_fast_init(`bool`, *optional*, defaults to ```True`):
_fast_init(`bool`, *optional*, defaults to `True`):
Whether or not to disable fast initialization.
low_cpu_mem_usage(`bool``, *optional*, defaults to ```False`):
low_cpu_mem_usage(`bool``, *optional*, defaults to `False`):
Tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
This is an experimental feature and a subject to change at any moment.
torch_dtype (`str` or `torch.dtype`, *optional*):