-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[LLM] support QWen1.5-Moe #8338
base: develop
Are you sure you want to change the base?
[LLM] support QWen1.5-Moe #8338
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8338 +/- ##
===========================================
+ Coverage 53.96% 54.08% +0.12%
===========================================
Files 618 622 +4
Lines 96827 97722 +895
===========================================
+ Hits 52256 52857 +601
- Misses 44571 44865 +294 ☔ View full report in Codecov by Sentry. |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from .configuration import QWen2MoeConfig |
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.
QWen2MoEConfig会不会更好,把Moe都改成MoE。
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.
已修改
@@ -0,0 +1,1580 @@ | |||
# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. |
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.
2023 -> 2024,都改掉吧
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.
已修改
llm/qwen2moe/lora_argument.json
Outdated
{ | ||
"model_name_or_path": "qwen/Qwen1.5-MoE-A2.7B", | ||
"dataset_name_or_path": "./data", | ||
"output_dir": "./checkpoints/qwen2moe_lora_ckpts", |
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.
确认是否ok,并同步更新 readme 文档
from .configuration import QWen2MoeConfig | ||
from .modeling import QWen2MoeForCausalLM | ||
from .tokenizer import QWen2MoeTokenizer |
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.
from .configuration import QWen2MoeConfig | |
from .modeling import QWen2MoeForCausalLM | |
from .tokenizer import QWen2MoeTokenizer | |
from .configuration import * | |
from .modeling import * | |
from .tokenizer import* |
paddlenlp/transformers/__init__.py
Outdated
from .qwen2moe.modeling import * | ||
from .qwen2moe.configuration import * | ||
from .qwen2moe.tokenizer import * |
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.
from .qwen2moe.modeling import * | |
from .qwen2moe.configuration import * | |
from .qwen2moe.tokenizer import * | |
from .qwen2moe import * |
@@ -0,0 +1,13 @@ | |||
# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. |
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.
这个文件需要吗?
PR types
New features
PR changes
Models
Description
QWen
andQWen2Moe
with same prefixQWen
. The longest name will match each model name before others.