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

add single_model network and use intermediate api #9412

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

blacksheep-Aristotle
Copy link

PR types

New features

PR changes

Models

Description

添加llama ,qwen,gpt 单卡组网。
auto_trainer支持使用中层api & 运行脚本支持使用中层api

Copy link

paddle-bot bot commented Nov 12, 2024

Thanks for your contribution!

level = "os_g"
elif ShardingOption.FULL_SHARD in self.args.sharding:
level = "p_g_os"
model, self.optimizer = sharded_data_parallel(model, self.optimizer, level)
Copy link
Contributor

Choose a reason for hiding this comment

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

是否构造dp_config传入parallelize,不需要再单独进行 sharded_data_parallel

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 16.83103% with 1265 lines in your changes missing coverage. Please review.

Project coverage is 52.32%. Comparing base (10a62c7) to head (bbc0a6d).
Report is 6 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/transformers/gpt/modeling_network.py 17.50% 443 Missing ⚠️
paddlenlp/transformers/llama/modeling_network.py 15.97% 426 Missing ⚠️
paddlenlp/transformers/qwen/modeling_network.py 17.18% 376 Missing ⚠️
paddlenlp/trainer/auto_trainer.py 0.00% 20 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9412      +/-   ##
===========================================
- Coverage    53.04%   52.32%   -0.73%     
===========================================
  Files          677      679       +2     
  Lines       108671   109432     +761     
===========================================
- Hits         57649    57256     -393     
- Misses       51022    52176    +1154     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants