Skip to content
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

LLama convert docs #6754

Merged
merged 13 commits into from
Jul 18, 2024
Merged

LLama convert docs #6754

merged 13 commits into from
Jul 18, 2024

Conversation

xuxinyi389
Copy link
Contributor

PR types

Docs

PR changes

Docs

Description

Pcard-73263
补充llama使用的fairscaleAPI与paddle的映射文档。

Copy link

paddle-bot bot commented Jul 10, 2024

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

@xuxinyi389 xuxinyi389 marked this pull request as draft July 10, 2024 09:23
@xuxinyi389 xuxinyi389 marked this pull request as ready for review July 10, 2024 09:23
@xuxinyi389 xuxinyi389 force-pushed the llama_docs branch 2 times, most recently from 00dee87 to c73e2e9 Compare July 10, 2024 13:11
Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

你直接手动维护markdown表格就行

| | mp_group| 模型并行组|
| | name| 网络层名称|

### 转写示例
Copy link
Collaborator

Choose a reason for hiding this comment

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

转写示例 需要写明:对哪些参数进行转写,参考模板 https://github.com/PaddlePaddle/docs/blob/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/pytorch_api_mapping_format_cn.md

#### var1: 简述功能

#### var2: 简述功能

Copy link
Contributor Author

@xuxinyi389 xuxinyi389 Jul 17, 2024

Choose a reason for hiding this comment

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

torch多的参数从用途来看均可直接删除。故无需 转写示例

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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


| PyTorch | PaddlePaddle | 备注 |
| ----------- | ------------ | -------------------------------------------------------------------------------------- |
| d | d | 全局默认数据类型,均支持所有浮点类型|
Copy link
Collaborator

Choose a reason for hiding this comment

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

输入数据类型不一致,要写: torch的输入数据类型,paddle的输入数据类型,需要转写

这个是不是有了,直接在原有基础上修改吧,这个 改成:[ 输入参数类型不一致 ] 分类更合理

@@ -1,4 +1,4 @@
## [ 输入参数用法不一致 ]torch.set_default_tensor_type
## [ 输入参数类型不一致 ]torch.set_default_tensor_type
Copy link
Collaborator

@zhwesky2010 zhwesky2010 Jul 18, 2024

Choose a reason for hiding this comment

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

这个目录应该放到 torch.*,也就是ops下面吧。

others是针对没有分类的,为啥要从toch.* 移到others下面去

Copy link
Contributor Author

Choose a reason for hiding this comment

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

set_default_dtype 是放在other下面,这个api好像也不是op操作,我理解ops下应该放置操作Tensor的api,即输入是Tensor的API

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit 56781ca into PaddlePaddle:develop Jul 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants