-
Notifications
You must be signed in to change notification settings - Fork 3k
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
move some auto_parallel args into class AutoTrainingArguments #9155
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9155 +/- ##
===========================================
- Coverage 53.02% 53.02% -0.01%
===========================================
Files 656 657 +1
Lines 106153 106311 +158
===========================================
+ Hits 56288 56367 +79
- Misses 49865 49944 +79 ☔ View full report in Codecov by Sentry. |
Thanks for your contribution! |
class AutoTrainingArguments(TrainingArguments): | ||
""" | ||
自动并行相关参数配置 | ||
""" |
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.
主库里面的代码,建议写英文注释
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.
Done
@@ -61,7 +66,7 @@ def docstring_decorator(fn): | |||
|
|||
@dataclass | |||
@add_start_docstrings(TrainingArguments.__doc__) |
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.
@add_start_docstrings(TrainingArguments.__doc__) | |
@add_start_docstrings(AutoTrainingArguments.__doc__) |
可以这么换一下,看看是不是正常能够提示参数
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.
Done
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.
LGTM
PR types
Others
PR changes
Others
Description
给自动并行增加一个AutoTrainingArguments类,后续自动并行的相关优化开关可以放到这里面而不用每个模型都重新写一次这些优化开关的arguments,只需要写自己相关的args即可