[docs] Fix doc format (#28684)
* fix hfoptions * revert changes to other files * fix
This commit is contained in:
@@ -956,6 +956,8 @@ engine = deepspeed.initialize(model=model, config_params=ds_config, ...)
|
|||||||
</hfoption>
|
</hfoption>
|
||||||
<hfoption id="non-pretrained model">
|
<hfoption id="non-pretrained model">
|
||||||
|
|
||||||
|
[`HfDeepSpeedConfig`] is not required for ZeRO-1 or ZeRO-2.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
from transformers.integrations import HfDeepSpeedConfig
|
from transformers.integrations import HfDeepSpeedConfig
|
||||||
from transformers import AutoModel, AutoConfig
|
from transformers import AutoModel, AutoConfig
|
||||||
@@ -969,7 +971,8 @@ model = AutoModel.from_config(config)
|
|||||||
engine = deepspeed.initialize(model=model, config_params=ds_config, ...)
|
engine = deepspeed.initialize(model=model, config_params=ds_config, ...)
|
||||||
```
|
```
|
||||||
|
|
||||||
[`HfDeepSpeedConfig`] is not required for ZeRO-1 or ZeRO-2.
|
</hfoption>
|
||||||
|
</hfoptions>
|
||||||
|
|
||||||
### Non-Trainer ZeRO Inference
|
### Non-Trainer ZeRO Inference
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user