-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docathon][Add CN Doc No.35-37] #6442
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6442.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
提了一些修改意见
|
||
描述 | ||
::::::::: | ||
保存模型参数以进行自动并行推理。支持 dp + mp + pp + shardin(stage1)、dp + sharding stage2-3。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shardin -> sharding
- **path_prefix**: 要保存的路径前缀。如果 `path_preifx` 以路径分隔符结尾, 则路径将作为目录进行处理,参数将保存在其中,并自动命名为 saved_parameters。 | ||
其他,参数将保存为名称 path_preifx_dist{global_rank}.pdparams 和 path_preifx_dist{global_rank}.pdattrs。 | ||
- **dist_model**: 分布式模型中的模型。 | ||
- **cvt2cpu**: 在使用分片阶段 3 时将参数移动到 CPU。如果不使用分片阶段 3, 则 var 无效。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
分片阶段3 -> sharding stage 3
与前文描述保持一致。
…ve_for_auto_inference_cn.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/api/paddle/incubate/distributed/utils/io/dist_save/save_cn.rst
Outdated
Show resolved
Hide resolved
docs/api/paddle/incubate/distributed/utils/io/dist_save/save_cn.rst
Outdated
Show resolved
Hide resolved
docs/api/paddle/incubate/distributed/utils/io/dist_save/save_for_auto_inference_cn.rst
Outdated
Show resolved
Hide resolved
docs/api/paddle/incubate/distributed/utils/io/dist_save/save_for_auto_inference_cn.rst
Outdated
Show resolved
Hide resolved
…or_auto_inference_cn.rst
…or_auto_inference_cn.rst
PR types
Others
PR changes
Docs
Description
补充缺失的中文api文档 :
#6193
[No37] paddle.incubate.distributed.utils.io.save_for_auto.save_for_auto_inference
这个连英文文档都没有
添加中文文档:
paddle.incubate.distributed.utils.io.dist_save.save
paddle.incubate.distributed.utils.io.dist_save.save_for_auto_inference
英文文档链接:https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/incubate/distributed/utils/io/dist_save/save_en.html
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/incubate/distributed/utils/io/dist_save/save_for_auto_inference_en.html
@sunzhongkai588 @SylarTiaNII