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

[optimization] support 8bit optims from bistandbytes #163

Merged
merged 5 commits into from
Dec 30, 2024
Merged

Conversation

sayakpaul
Copy link
Collaborator

@sayakpaul sayakpaul requested a review from a-r-r-o-w December 30, 2024 03:14
@@ -79,6 +79,7 @@ class Args:

# Optimizer arguments
optimizer: str = "adamw"
Copy link
Owner

Choose a reason for hiding this comment

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

Could we instead allow specifying adamw-8bit-bnb here instead of use_8bit? Reason being TorchAO also supports 8-bit implementations so we could then use adamw-8bit-torchao in the future

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@sayakpaul sayakpaul requested a review from a-r-r-o-w December 30, 2024 08:02
@@ -79,6 +79,7 @@ class Args:

# Optimizer arguments
optimizer: str = "adamw"
use_8bit_bnb_bnb: bool = False
Copy link
Owner

Choose a reason for hiding this comment

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

This is incorrect, no?

Copy link
Owner

@a-r-r-o-w a-r-r-o-w left a comment

Choose a reason for hiding this comment

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

Good to merge after the fix

@sayakpaul
Copy link
Collaborator Author

Working fine with all the changes: https://wandb.ai/sayakpaul/finetrainers-ltxv/runs/kl9swsq8.

I have added a note in the README too.

@sayakpaul sayakpaul merged commit 191ea8b into main Dec 30, 2024
@sayakpaul sayakpaul deleted the bnb-8bit-optim branch December 30, 2024 08:33
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.

Support 8bit optimizers from bitsandbytes
2 participants