-
Notifications
You must be signed in to change notification settings - Fork 838
[Docathon][Fix COPY-FROM No.16-19] #6327
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
Conversation
modified: docs/api/paddle/optimizer/Lamb_cn.rst modified: docs/api/paddle/optimizer/Optimizer_cn.rst modified: docs/api/paddle/optimizer/RMSProp_cn.rst
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6327.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.
其他没问题~,就是DistributedStrategy_cn.rst
这个文件本身不规范的地方有点多,如果感兴趣的话把剩下的也该成cpoy-from叭~
参考 API 文档书写规范
举个例子
比如上面是 adaptive_localsgd_configs
copy-from 的就是 COPY-FROM: paddle.distributed.fleet.DistributedStrategy.adaptive_localsgd_configs
然后把示例代码位置放在最后的位置
|
||
optimizer = paddle.optimizer.SGD(learning_rate=0.01) | ||
optimizer = fleet.distributed_optimizer(optimizer, strategy) | ||
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.distributed_optimizer |
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.
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.distributed_optimizer | |
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.auto |
"enable_offload": True, | ||
"checkpoint_shape": [100, 512, 1024] | ||
} | ||
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.recompute_configs |
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.
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.recompute_configs | |
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.recompute |
strategy = fleet.DistributedStrategy() | ||
strategy.gradient_merge = True | ||
strategy.gradient_merge_configs = {"k_steps": 4, "avg": True} | ||
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.gradient_merge_configs |
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.
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.gradient_merge_configs | |
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.gradient_merge |
'lamb_weight_decay': 0.01, | ||
'exclude_from_weight_decay': [], | ||
} | ||
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.lamb_configs |
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.
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.lamb_configs | |
COPY-FROM: paddle.distributed.fleet.DistributedStrategy.lamb |
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.
好的(•̤̀ᵕ•̤́๑)ᵒᵏᵎᵎᵎᵎ,谢谢o师傅
modified: docs/api/paddle/text/Conll05st_cn.rst
rerun 一下 ci |
o师傅,怎么rerun ci啊~ |
麻烦处理一下 codestyle~ |
来啦来啦>~< |
codestyle是什么啊?o师傅,对不起我是笨蛋,呜~看不懂 |
代码风格~,如图需要使用 pre-commit 工具进行检查 |
PR types
others
PR changes
Docs
Description
.. code-block:: python ->COPY-FROM: paddle.distributed.fleet.xxx
[DistributedStrategy_cn]这个不会改
活动 issue : #6300 中文文档 copy-from 清理
@ooooo-create @sunzhongkai588