Skip to content

Conversation

@Kaedeharai
Copy link
Contributor

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

@paddle-bot
Copy link

paddle-bot bot commented Jan 3, 2024

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6442.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

Copy link
Contributor

@SylarTiaNII SylarTiaNII left a 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。
Copy link
Contributor

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 无效。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

分片阶段3 -> sharding stage 3
与前文描述保持一致。

Copy link
Contributor

@SylarTiaNII SylarTiaNII left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luotao1 luotao1 closed this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants