-
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
[AutoParallel] Fix qwen2vl image shape #10086
base: develop
Are you sure you want to change the base?
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #10086 +/- ##
===========================================
- Coverage 50.00% 49.95% -0.05%
===========================================
Files 757 757
Lines 122442 122540 +98
===========================================
- Hits 61225 61218 -7
- Misses 61217 61322 +105 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
paddlenlp/trainer/auto_trainer.py
Outdated
if isinstance(dtensors, paddle.Tensor): | ||
if self.dense_tensor_idx is not None and self.dense_tensor_idx[i] != []: | ||
global_datas = dtensors.split(self.args.gradient_accumulation_steps, axis=0) | ||
next_dtensor = dtensors[i + 1] | ||
next_dtensor_list = ( |
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.
shall we refer to num_or_sections
parameter in split
, user can pass a number(even segmentation) or sections(uneven segmentation)
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.
Thx, num_or_sections support 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
Before submitting
tests
folder. If there are codecov issues, please add tests cases first.PR types
New features
PR changes
Others
Description
Fix qwen2vl image shape