贡献 Triton FIL 后端#
如何贡献#
您可以通过以下任何方式帮助改进 Triton FIL 后端
提交错误报告、功能请求或文档问题
提议和实施新功能
为未解决的问题实施功能或错误修复
错误报告#
提交错误报告时,请包含最小可复现的示例。理想情况下,这应该是一段代码片段,其他开发人员可以复制、粘贴并立即运行以尝试重现错误。请
请包含 import 语句和立即运行示例所需的任何其他代码
避免需要其他开发人员下载模型或数据的示例,除非您无法使用合成生成的数据重现问题
代码贡献#
要为此项目贡献代码,请按照以下步骤操作
查找要处理的问题或提交记录您想要处理的问题的问题。
在问题上评论说您计划处理它。
查看下面的实现细节部分,以获取帮助您以与代码库其余部分一致的方式进行更改的信息。
编码!
创建您的拉取请求。
等待其他开发人员审查您的代码并根据需要更新您的 PR。
一旦 PR 获得批准,它将被合并到主分支中。
签署您的工作#
我们要求所有贡献者“签署”他们的提交。这证明该贡献是您的原创作品,或者您有权在相同许可或兼容许可下提交它。
任何包含未签署提交的贡献将不被接受。
要签署提交,您只需在提交更改时使用
--signoff
(或-s
) 选项$ git commit -s -m "Add cool feature."
这会将以下内容附加到您的提交消息中
Signed-off-by: Your Name <your@email.com>
DCO 的全文
Developer Certificate of Origin Version 1.1 Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 1 Letterman Drive Suite D4700 San Francisco, CA, 94129 Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
开发者工作流程文档#
以下部分提供了对贡献者有用的其他信息
风格#
对 FIL 后端的贡献应
遵守 Almost-Always-Auto 风格
尽可能优先使用 STL 算法而不是 原始循环
使用 C++ 类型,除非显式与 C 代码交互(例如
std::size_t
而不是size_t
)避免依赖传递包含