PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
11.71k stars 2.86k forks source link

Add yuan model #8654

Open zhaogf01 opened 4 days ago

zhaogf01 commented 4 days ago

PR types

New features

PR changes

Models

Description

添加了源2.0的模型结构、配置等相关文件

paddle-bot[bot] commented 4 days ago

Thanks for your contribution!

DrownFish19 commented 4 days ago

Lint问题可以参考link进行修复

zhaogf01 commented 3 days ago

我看lint的日志中引起black、isort、copyright_checker failed的文件已经被修改了,请问我还需要修改吗?或者这个错误具体指什么?我没看到引起错误的源文件? 另外,test中的错误需要处理吗?请问这个错误具体是指哪个文件?我没太看懂。

DrownFish19 commented 3 days ago

我看lint的日志中引起black、isort、copyright_checker failed的文件已经被修改了,请问我还需要修改吗?或者这个错误具体指什么?我没看到引起错误的源文件?

具体是格式错误问题,PR中的文件需要满足要求格式。可以本地使用pip install pre-commit && pre-commit install并使用pre-commit run --file XXX.py格式化本地代码并上传。

另外,test中的错误需要处理吗?请问这个错误具体是指哪个文件?我没太看懂。

辛苦拉一下最近代码即可,最新commit已经修复。

codecov[bot] commented 3 days ago

Codecov Report

Attention: Patch coverage is 14.35331% with 543 lines in your changes missing coverage. Please review.

Project coverage is 55.53%. Comparing base (65e721e) to head (8b7878b). Report is 7 commits behind head on develop.

Files Patch % Lines
paddlenlp/transformers/yuan/modeling.py 13.46% 527 Missing :warning:
paddlenlp/transformers/yuan/configuration.py 23.80% 16 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #8654 +/- ## =========================================== - Coverage 55.80% 55.53% -0.28% =========================================== Files 620 623 +3 Lines 96642 97276 +634 =========================================== + Hits 53928 54019 +91 - Misses 42714 43257 +543 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

zhaogf01 commented 2 days ago

请问目前的三个failed应该如何修改?