Skip to content

Add ERNIE-Layout to release 2.4 branch #3470

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

Merged
merged 193 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
52a18de
fix multi-layer-inherit
wj-Mcat Aug 23, 2022
7b50b54
update bert model unittest
wj-Mcat Aug 24, 2022
75c2903
merge master branch
wj-Mcat Aug 24, 2022
b1629c0
update requirements.txt
wj-Mcat Aug 24, 2022
d6f58c8
update ernie modeling test
wj-Mcat Aug 24, 2022
522becf
update roberta unittest
wj-Mcat Aug 24, 2022
0f133c0
update roformer modeling testing
wj-Mcat Aug 24, 2022
d4b4122
complete ernie label loss
wj-Mcat Aug 24, 2022
200af6d
complete ernie/roberta/roformer unittest
wj-Mcat Aug 25, 2022
26daca4
update label/loss
wj-Mcat Aug 25, 2022
0861160
Merge branch 'develop' into add-modeling-output
wj-Mcat Aug 25, 2022
58e785a
Merge branch 'develop' into fix-multi-inhert
wj-Mcat Aug 25, 2022
c19efe5
Merge branch 'develop' into fix-multi-inhert
wj-Mcat Aug 29, 2022
3a90faa
update refactor code
wj-Mcat Aug 30, 2022
13a13af
remove unrelated requirements
wj-Mcat Aug 31, 2022
2ed52ed
Merge branch 'add-modeling-output' of github.com:wj-Mcat/PaddleNLP in…
wj-Mcat Aug 31, 2022
da23449
Merge branch 'develop' into add-modeling-output
wj-Mcat Sep 6, 2022
58e5e7e
add license
JunnYu Sep 6, 2022
b88fc4e
Update setup.py and README Examples (#3208)
w5688414 Sep 6, 2022
19e03c4
Move token_num fetch out of train cycle (#3089)
JamesLim-sy Sep 6, 2022
b743705
Add finance course (#3207)
chenxiaozeng Sep 6, 2022
4f10afa
Update README_cn.md (#3212)
chenxiaozeng Sep 6, 2022
c7287ce
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_de…
guoshengCS Sep 6, 2022
c6abe76
Update README.md (#3209)
bruce0210 Sep 6, 2022
0ed8de7
[Recompute] Update recompute for hybrid parallel interface. (#3211)
wuhuachaocoding Sep 7, 2022
a6ab9c8
Update README_cn.md
wawltor Sep 7, 2022
60a475e
[ModelingOutput]update roformer unittest (#3159)
wj-Mcat Sep 7, 2022
9b51a64
Update README_cn.md
wawltor Sep 7, 2022
bd8fa1a
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_de…
guoshengCS Sep 7, 2022
12c605a
Fix windows dtype bug of neural search (#3182)
kztao Sep 7, 2022
9ab5a91
Update README_cn.md
wawltor Sep 7, 2022
98f6df6
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_de…
guoshengCS Sep 7, 2022
ead4382
Update README_cn.md
wawltor Sep 7, 2022
824982d
Update README_cn.md
wawltor Sep 7, 2022
9f858e6
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_de…
guoshengCS Sep 7, 2022
cbc0703
Merge pull request #3210 from JunnYu/add_stable_diffusion_licence_and…
wj-Mcat Sep 7, 2022
447c014
[ModelingOutput]add more output for skep model (#3146)
wj-Mcat Sep 7, 2022
63ad917
Merge branch 'develop' into fix-multi-inhert
wj-Mcat Sep 7, 2022
9570637
fix conflicts
wj-Mcat Sep 7, 2022
a837aee
remove model_config_file and resource_files_names
wj-Mcat Sep 7, 2022
88435c2
Merge branch 'develop' into remove-unused-code
wj-Mcat Sep 7, 2022
6fa2df5
Update README_cn.md (#3219)
chenxiaozeng Sep 7, 2022
23979e7
Remove boost library. (#3215)
joey12300 Sep 8, 2022
f05794c
Update bos url for UIE (#3222)
linjieccc Sep 8, 2022
3dfadff
Merge branch 'develop' into remove-unused-code
wj-Mcat Sep 8, 2022
635eb8c
源码安装htbuilder,避免windows安装失败 (#3221)
paopjian Sep 8, 2022
fbd155d
Merge branch 'develop' into add-modeling-output
guoshengCS Sep 8, 2022
848268d
Merge pull request #3130 from wj-Mcat/add-modeling-output
wj-Mcat Sep 8, 2022
f0c64b8
not default to gpu (#3218)
Sep 8, 2022
332da6b
Update codegen params and doc (#3228)
Sep 8, 2022
0ea3cc4
Merge branch 'develop' into fix-multi-inhert
wj-Mcat Sep 8, 2022
f32a6ca
Merge pull request #3114 from wj-Mcat/fix-multi-inhert
wj-Mcat Sep 8, 2022
b50fa0d
Merge branch 'develop' into remove-unused-code
wj-Mcat Sep 8, 2022
51fa58f
update three models
wj-Mcat Sep 8, 2022
93d9c67
Merge branch 'remove-unused-code' of github.com:wj-Mcat/PaddleNLP int…
wj-Mcat Sep 8, 2022
2f84f97
Merge pull request #3220 from wj-Mcat/remove-unused-code
wj-Mcat Sep 8, 2022
f4e1b67
[Unittest]add roformerv2 unittest (#2994)
wj-Mcat Sep 9, 2022
8b827f4
Optimize text classification deploy (#3217)
lugimzzz Sep 9, 2022
6b59ba2
fix data distill for UIE (#3231)
linjieccc Sep 9, 2022
94dd90a
[Pre-Training] ERNIE-CW pre-training tasks docs. (#3111)
ZHUI Sep 9, 2022
3e66b0c
Update README.md & Add more data into csv& change UI (#3237)
w5688414 Sep 9, 2022
4ce8fd9
fix bug of label dimension smaller than 1 (#3238)
linjieccc Sep 9, 2022
363269a
update output dirname of compression api (#3252)
LiuChiachi Sep 13, 2022
2173cf3
[ModelingOutput] add tinybert/Electra/XLNet/ALBERT/ERNIE-M more outpu…
wj-Mcat Sep 14, 2022
64c695a
Add unit tests for T5 (#3115)
FrostML Sep 14, 2022
8f5f965
analysis_module_bug_fix (#3246)
lugimzzz Sep 14, 2022
815ddfb
[CodeStyle] Add copyright for python file. (#3259)
ZHUI Sep 14, 2022
e1f700a
[IssueTemplate] Add issue template (#3251)
wj-Mcat Sep 14, 2022
28f0b91
[BugFix]update vocab_size in init_config (#3260)
wj-Mcat Sep 14, 2022
135e9fa
update t5 tests (#3266)
FrostML Sep 14, 2022
87613d4
Update debug mode for relation prompt (#3263)
linjieccc Sep 14, 2022
8fc38d6
Update README.md and Rename dir to FAQ directory (#3272)
w5688414 Sep 15, 2022
37a6860
[DOC] Add ernie-1.0-base-zh-cw benchmark results. (#3248)
ZHUI Sep 15, 2022
b1ad851
[DOC] Update highlights of README.md (#3278)
ZHUI Sep 15, 2022
8ca5cd8
Add unit tests for UnifiedTransformer (#3177)
FrostML Sep 16, 2022
fb4eec7
[Trainer] Support recompute for trainer. (#3261)
ZHUI Sep 16, 2022
0f464e8
Upgrade FAQ finance to Milvus 2.1 (#3267)
w5688414 Sep 16, 2022
46f395a
Fix ft substr bug (#3279)
joey12300 Sep 16, 2022
0bdb7b5
remove glog/logging.h (#3280)
joey12300 Sep 16, 2022
20ab09b
Update ft version to 0.2.0 (#3285)
joey12300 Sep 16, 2022
7ce1b5c
update docs wechat code (#3284)
JunnYu Sep 16, 2022
7fdfbf2
update link typo (#3236)
ZHUI Sep 16, 2022
eb05f40
add_dataset_link (#3286)
lugimzzz Sep 16, 2022
338fe2a
Add use_faster flag for uie of taskflow. (#3194)
joey12300 Sep 16, 2022
1e919ba
fix import error (#2853)
JunnYu Sep 16, 2022
9a25764
[TIPC]Support @to_static train for base-transformer (#3277)
0x45f Sep 17, 2022
a4749e1
Add ft compile doc and scripts (#3292)
joey12300 Sep 17, 2022
2baa92a
fix ft build script (#3293)
joey12300 Sep 18, 2022
e893a63
Add Milvus2.1 Support and Update pipielines qa ui (#3283)
w5688414 Sep 18, 2022
b8e12c5
fix bug of relation example is empty (#3295)
linjieccc Sep 19, 2022
f6e0068
Compression API Supports ERNIE-M and more Pretrained models (#3234)
LiuChiachi Sep 19, 2022
938edda
optimize train.py (#3300)
lugimzzz Sep 19, 2022
0befe96
update ernie task tipc
JunnYu Sep 19, 2022
611b7c5
update
JunnYu Sep 19, 2022
77b65d3
optimize_sparse_strategy (#3311)
lugimzzz Sep 20, 2022
8a3a1aa
Add FAQ and missing json output files (#3298)
w5688414 Sep 20, 2022
929e019
Add Docker compile Support for Pipelines (#3315)
w5688414 Sep 20, 2022
d558737
Update README_en.md (#3320)
linjieccc Sep 20, 2022
df9e647
Update __init__.py
wawltor Sep 20, 2022
31a8dc5
Replace OMP with std::thread (#3309)
HexToString Sep 20, 2022
aae81be
Merge branch 'develop' into update_ernie_task_tipc
FrostML Sep 21, 2022
2080001
Merge pull request #3302 from JunnYu/update_ernie_task_tipc
JunnYu Sep 21, 2022
e9d24e5
update tipc log (#3333)
zhengya01 Sep 21, 2022
a4065c9
Remove unused function of Pipelines (#3330)
w5688414 Sep 21, 2022
17ca23a
update CodeGen doc (#3299)
Sep 21, 2022
7708822
fix tipc log (#3337)
zhengya01 Sep 21, 2022
8dc205c
[MoE] Fix recompute & communication api (#3338)
sljlp Sep 21, 2022
68d7946
[few-shot] fix typo and failed links (#3339)
LemonNoel Sep 21, 2022
c64ed99
[New Model]add t5-encoder-model (#3168)
wj-Mcat Sep 21, 2022
675bfa1
Update retrieval based classification README.md (#3322)
w5688414 Sep 22, 2022
2f57f9b
Fix TIPC log path (#3347)
0x45f Sep 22, 2022
ad6fe24
Upgrade Neural Search README.md (#3350)
w5688414 Sep 22, 2022
b525401
support layoutxlm re dygraph to static (#3325)
WenmuZhou Sep 22, 2022
07994a1
upgrade-modeling-output (#3305)
wj-Mcat Sep 22, 2022
85d7ac6
Compression API supports ELECTRA (#3324)
LiuChiachi Sep 23, 2022
62f55d0
[FasterGeneration] MBart supports dy2sta (#3356)
FrostML Sep 23, 2022
90491a0
unimo unittests (#3349)
FrostML Sep 23, 2022
24fb15e
[Benchamrk] Fix fuse_transformer option of TIPC (#3358)
Liujie0926 Sep 23, 2022
3d83e74
Fix the README description of Pipelines & Neural Search (#3353)
w5688414 Sep 23, 2022
fb69d15
supports distribute (#3361)
LiuChiachi Sep 23, 2022
0711a60
Fix the semantic search example mistakes (#3363)
w5688414 Sep 24, 2022
b4b1bdc
[BugFix] Fix amp usage for evaluation. (#3303)
ZHUI Sep 24, 2022
07e5c55
[MoE] Fix distributed wait api (#3365)
sljlp Sep 26, 2022
0e159ad
Fix gpt example attention mask (#3240)
Sep 26, 2022
adf6fca
Fix erniegen no model_config_file (#3321)
Sep 26, 2022
252a9c0
fix tipc log for benchmark and upate bigru_crf config (#3373)
zhengya01 Sep 27, 2022
abf217e
add t5 encoder model (#3376)
wj-Mcat Sep 27, 2022
521fd43
MBART supports freeze multi-lingual model when dy2sta (#3367)
FrostML Sep 27, 2022
829f445
fix dataloader memory overflow
westfish Sep 28, 2022
759ec97
add warning
westfish Sep 28, 2022
18e2e11
Update README_en.md (#3375)
dengyi-g Sep 28, 2022
fe2543d
Improve CodeGen (#3371)
Sep 28, 2022
131750a
Add codegen unittests (#3348)
FrostML Sep 29, 2022
3b6b183
[BugFix] fix supporting `OrderedDict` bug in paddle.jit module (#3364)
wj-Mcat Sep 29, 2022
be4b6c2
【Hackathon + GradientCache】 (#1799)
Zhiyuan-Fan Sep 29, 2022
3abb358
[TIPC] Add scripts for npu and xpu, test=develop (#3377)
YanhuiDua Sep 29, 2022
2cfeadf
Add ERNIE-LayoutX (#3183)
linjieccc Sep 29, 2022
bc23b8b
[Dygraph] Support sharding stage2/3+dp in GPT-3 model (#2471)
haohongxiang Sep 29, 2022
985a9a4
complete t5 more output (#3370)
Yam0214 Sep 29, 2022
d6f1c61
fix gpt N4C32 dp script bug (#3392)
sneaxiy Sep 29, 2022
0eb3792
codestyle
westfish Sep 30, 2022
6a0be69
Update README.md of neural search (#3391)
w5688414 Sep 30, 2022
d6f460e
Update artist model activateion (#3106)
JunnYu Oct 8, 2022
e5189e9
fix gpt ut (#3407)
FrostML Oct 8, 2022
3db0016
add qg example
westfish Oct 8, 2022
afcfb67
delete useless scripts
westfish Oct 8, 2022
e08cd02
delete .sh files in t5 dir
westfish Oct 9, 2022
116790b
normalize t5 naming
westfish Oct 9, 2022
fdc9a1b
rewrite run_gen.py to train.py and predict.py in unimo-text
westfish Oct 9, 2022
c297ab0
Update README_cn.md (#3413)
chenxiaozeng Oct 9, 2022
2dfdfa0
fix bigru crf offset index error (#3418)
JunnYu Oct 9, 2022
4f70f72
modified according to zeyang's comments
westfish Oct 9, 2022
c92632b
modified according to zeyang's comments
westfish Oct 9, 2022
c5c06ce
fix bert unittest bug (#3422)
wj-Mcat Oct 9, 2022
fcb477d
[BugFix]Fix ernie tokenizer unittest (#3423)
wj-Mcat Oct 9, 2022
9c6300d
update qg example readme
westfish Oct 9, 2022
6b54c4e
fix pillow deperate warning (#3404)
JunnYu Oct 10, 2022
c987531
Update taskflow.py (#3424)
alkaideemo Oct 10, 2022
5070840
fix bug of debug mode (#3417)
linjieccc Oct 10, 2022
3109311
rewrite unimo-text/predict.py to retrain only the prediction function
westfish Oct 10, 2022
0cb7fe9
support paddle serving http deploy for text classification (#3378)
lugimzzz Oct 10, 2022
b6a718b
[prompt] add doc (#3362)
LemonNoel Oct 10, 2022
3f9ea47
modified according to zeyang's comments, 20221010
westfish Oct 10, 2022
1e81d90
[few-shot] fix script for multi_class and fix input type for windows …
LemonNoel Oct 10, 2022
9182f34
Update README_cn.md
wawltor Oct 10, 2022
a8f08c8
adjust the position of the experiment' result
westfish Oct 11, 2022
289d821
Merge branch 'develop' into qg-example
westfish Oct 11, 2022
eee364e
Merge pull request #3410 from westfish/qg-example
westfish Oct 11, 2022
031e2bf
support mlu training (#3431)
ShawnNew Oct 11, 2022
70b6e50
remove the tcn for the paddlenlp (#3435)
wawltor Oct 11, 2022
01be779
add qg-taskflow
westfish Oct 11, 2022
aa1bef4
fix code style
westfish Oct 11, 2022
907144f
Add multi type files index update example for pipelines (#3439)
w5688414 Oct 11, 2022
0b4985d
[MLU] support SQuAD_Bert with mlu device (#3434)
qipengh Oct 12, 2022
ee696c3
Update FAQ Finance Paddle Serving dependencies (#3430)
w5688414 Oct 12, 2022
ddb59bf
Add batch prediction for pipelines (#3432)
w5688414 Oct 12, 2022
e544a04
Support past_key_values argument for Electra (#3411)
sijunhe Oct 12, 2022
50cd219
Merge branch 'develop' into uie_reader_memory_overflow
westfish Oct 12, 2022
7fbd726
modified according to zeyang's comments
westfish Oct 12, 2022
db1f991
refine gpt (#3447)
FrostML Oct 12, 2022
4c4f961
Merge branch 'develop' into uie_reader_memory_overflow
westfish Oct 13, 2022
c65dbb4
Merge pull request #3381 from westfish/uie_reader_memory_overflow
westfish Oct 13, 2022
63b3c31
Merge branch 'develop' into qg-taskflow
westfish Oct 13, 2022
e83abbb
fix some typos in qg-example readme
westfish Oct 13, 2022
b1e373c
Merge branch 'qg-taskflow' of github.com:westfish/PaddleNLP into qg-t…
westfish Oct 13, 2022
6011ed8
Fix #3446 (#3457)
JunnYu Oct 13, 2022
426b757
Merge branch 'develop' into qg-taskflow
westfish Oct 13, 2022
a3e92bb
Merge pull request #3438 from westfish/qg-taskflow
westfish Oct 13, 2022
a6b4691
[NEW Features] feature_extraction and processor support from_pretrain…
JunnYu Oct 13, 2022
988204d
Update README.md and optimize DocPrompt postprocess (#3441)
linjieccc Oct 14, 2022
c7e6f0e
add symbolic link for ernie_layout
linjieccc Oct 14, 2022
136e239
Merge branch 'release/2.4' into update_2.4
linjieccc Oct 14, 2022
a150ede
Update README.md
linjieccc Oct 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
134 changes: 134 additions & 0 deletions .copyright.hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

import argparse
import io
import re
import sys
import os
import datetime

COPYRIGHT = '''Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.'''

def _generate_copyright(comment_mark):
copyright=COPYRIGHT.split(os.linesep)
header = copyright[0].rstrip()

p = re.search('(\d{4})', header).group(0)
now = datetime.datetime.now()

header = header.replace(p,str(now.year))

ans=[comment_mark + " " + header + os.linesep]
for idx, line in enumerate(copyright[1:]):
ans.append(comment_mark + " " + line.rstrip() + os.linesep)

return ans

def _get_comment_mark(path):
lang_type=re.compile(r"\.(py|sh)$")
if lang_type.search(path) is not None:
return "#"

lang_type=re.compile(r"\.(h|c|hpp|cc|cpp|cu|go|cuh|proto)$")
if lang_type.search(path) is not None:
return "//"

return None


RE_ENCODE = re.compile(r"^[ \t\v]*#.*?coding[:=]", re.IGNORECASE)
RE_COPYRIGHT = re.compile(r".*Copyright( \(c\))* \d{4}", re.IGNORECASE)
RE_SHEBANG = re.compile(r"^[ \t\v]*#[ \t]?\!")

def _check_copyright(path):
head=[]
try:
with open(path) as f:
head = [next(f) for x in range(4)]
except StopIteration:
pass

for idx, line in enumerate(head):
if RE_COPYRIGHT.search(line) is not None:
return True

return False

def generate_copyright(path, comment_mark):
original_contents = io.open(path, encoding="utf-8").readlines()
head = original_contents[0:4]

insert_line_no=0
for i, line in enumerate(head):
if RE_ENCODE.search(line) or RE_SHEBANG.search(line):
insert_line_no=i+1

copyright = _generate_copyright(comment_mark)
if insert_line_no == 0:
new_contents = copyright
if len(original_contents) > 0 and len(original_contents[0].strip()) != 0:
new_contents.append(os.linesep)
new_contents.extend(original_contents)
else:
new_contents=original_contents[0:insert_line_no]
new_contents.append(os.linesep)
new_contents.extend(copyright)
if len(original_contents) > insert_line_no and len(original_contents[insert_line_no].strip()) != 0:
new_contents.append(os.linesep)
new_contents.extend(original_contents[insert_line_no:])
new_contents="".join(new_contents)

with io.open(path, 'w') as output_file:
output_file.write(new_contents)



def main(argv=None):
parser = argparse.ArgumentParser(
description='Checker for copyright declaration.')
parser.add_argument('filenames', nargs='*', help='Filenames to check')
args = parser.parse_args(argv)

retv = 0
for path in args.filenames:
comment_mark = _get_comment_mark(path)
if comment_mark is None:
print("warning:Unsupported file", path, file=sys.stderr)
continue

if _check_copyright(path):
continue

generate_copyright(path, comment_mark)


if __name__ == '__main__':
exit(main())
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/----.md

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/---general-issues---.md

This file was deleted.

23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/ask-question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🐛 Ask Question
description: 请描述您使用PaddleNLP时遇到的问题
title: "[Question]: "
labels:
- question
body:
- type: markdown
attributes:
value: >
#### 你可以在这里提出一个使用/咨询问题,提问之前请确保:

- 1)已经百度/谷歌搜索过你的问题,但是没有找到解答;

- 2)已经在官网查询过[API文档](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html)与[FAQ](https://www.paddlepaddle.org.cn/documentation/docs/zh/faq/index_cn.html),但是没有找到解答;

- 3)已经在[历史issue](https://github.com/PaddlePaddle/Paddle/issues)中搜索过,没有找到同类issue或issue未被解答。

- type: textarea
id: question
attributes:
label: 请提出你的问题
validations:
required: true
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 🐛 Bug Report
description: PaddleNLP问题反馈
title: "[Bug]: "
labels: bug
body:
- type: textarea
id: environment
attributes:
label: 软件环境
description: |
请使用以下命令给出您本地Paddle相关包信息
```sh
pip list | grep paddle

```
value: |
- paddlepaddle:
- paddlepaddle-gpu:
- paddlenlp:
render: Markdown
validations:
required: true
- type: checkboxes
id: dumplicated-problem
attributes:
label: 重复问题
description: 是否已在issues中搜索相关问题
options:
- label: I have searched the existing issues
required: true
- type: textarea
id: descripton
attributes:
label: 错误描述
description: 给出错误详细描述,以便能够更好的追踪相关问题
render: Markdown
validations:
required: true
- type: textarea
id: mvp-code
attributes:
label: 稳定复现步骤 & 代码
description: 请给出稳定复现该问题的步骤 & 代码,以便相关人员能够快速定位到具体问题。
validations:
required: true
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/docs-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 🐛 Docs Report
description: PaddleNLP文档反馈
title: "[Docs]: "
labels:
- documentation

body:
- type: textarea
id: environment
attributes:
label: 软件环境
description: |
请使用以下命令给出您本地Paddle相关包信息
```sh
pip list | grep paddle

```
value: |
- paddlepaddle:
- paddlepaddle-gpu:
- paddlenlp:
render: Markdown
validations:
required: true
- type: textarea
id: description
attributes:
label: 详细描述
description: 请详细描述您想要反馈的具体问题
render: Markdown
validations:
required: true
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "\U0001F680 Feature request"
description: 请详细描述您所需功能
labels: [ "feature" ]
body:
- type: textarea
id: feature-request
validations:
required: true
attributes:
label: Feature request
description: |
对特性提案的清晰而简明的描述。如果论文和代码存在,请提供链接。

- type: textarea
id: motivation
validations:
required: true
attributes:
label: Motivation
description: |
请概述这项建议的动机。您的特性要求与问题有关吗?

- type: textarea
id: contribution
validations:
required: true
attributes:
label: Your contribution
description: |
Is there any way that you could help, e.g. by submitting a PR? Make sure to read the CONTRIBUTING.MD [readme](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md)
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/new-model.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "\U0001F31F 添加新模型"
description: 请为新模型提交一份说明
labels: [ "New model" ]

body:
- type: textarea
id: description-request
validations:
required: true
attributes:
label: 简要描述
description: |
请简要描述模型的类型、解决的问题等。

- type: checkboxes
id: information-tasks
attributes:
label: 是否已开源
options:
- label: 已开源
- label: 未开源

- type: textarea
id: additional-info
attributes:
label: 模型详细信息
description: |
请给出新模型相关信息,如论文地址、现存代码地址等。
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/others.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🧩 其他 Others
description: 提出其他问题。
labels: [others]

body:
- type: markdown
attributes:
value: >
#### 你可以在这里提出任何前面几类模板不适用的问题,包括但不限于:优化性建议、框架使用体验反馈、版本兼容性问题、报错信息不清楚等。

- type: textarea
id: others
attributes:
label: 问题描述
validations:
required: true

- type: markdown
attributes:
value: >
感谢你的贡献 🎉!


7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ repos:
files: \.md$
- id: remove-tabs
files: \.md$
- repo: local
hooks:
- id: copyright_checker
name: copyright_checker
entry: python .copyright.hook
language: system
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|xpu|kps|py|sh)$
Loading