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

[VLM]fix bs and grad reset #344

Merged
merged 4 commits into from
Nov 27, 2024
Merged

[VLM]fix bs and grad reset #344

merged 4 commits into from
Nov 27, 2024

Conversation

n1ck-guo
Copy link
Contributor

No description provided.

Signed-off-by: n1ck-guo <[email protected]>
@n1ck-guo n1ck-guo requested review from wenhuach21 and WeiweiZhang1 and removed request for wenhuach21 November 27, 2024 02:37
Signed-off-by: n1ck-guo <[email protected]>
@wenhuach21 wenhuach21 changed the title fix bs and grad rest [mllm]fix bs and grad rest Nov 27, 2024
@wenhuach21 wenhuach21 self-requested a review November 27, 2024 03:38
@wenhuach21 wenhuach21 changed the title [mllm]fix bs and grad rest [VLM]fix bs and grad rest Nov 27, 2024
@n1ck-guo n1ck-guo changed the title [VLM]fix bs and grad rest [VLM]fix bs and grad reset Nov 27, 2024
Signed-off-by: n1ck-guo <[email protected]>
"reset to 1")
logger.warning(
f"batch_size({batch_size}) cannot be used for calibrating non-text modules, reset to 1"
f" and gradient_accumulate_steps reset to {batch_size * gradient_accumulate_steps}")
Copy link
Contributor

Choose a reason for hiding this comment

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

better follow this style,
reset bs to 1 and grad to xxx as bs=8 cannnot be used,

Signed-off-by: n1ck-guo <[email protected]>
f"rest batch_size({batch_size}) to 1 and "
f"gradient_accumulate_steps({gradient_accumulate_steps}) "
f"to {batch_size * gradient_accumulate_steps}, "
f"cause batch_size={batch_size} cannot be used for calibrating non-text modules.")
Copy link
Contributor

Choose a reason for hiding this comment

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

cause?

@wenhuach21 wenhuach21 merged commit 28bbf40 into main Nov 27, 2024
13 checks passed
@wenhuach21 wenhuach21 deleted the hengguo/update1127 branch November 27, 2024 07:24
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