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

[Need to test] Remove max_memory usage and adapter float16 initialization by default #3610

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arnavgarg1
Copy link
Contributor

No description provided.

@github-actions
Copy link

Unit Test Results

  6 files  ±0    6 suites  ±0   45m 59s ⏱️ +59s
31 tests ±0  26 ✔️ ±0    5 💤 ±0  0 ±0 
82 runs  ±0  66 ✔️ ±0  16 💤 ±0  0 ±0 

Results for commit b7e6068. ± Comparison against base commit d15a0c5.

@@ -321,7 +321,6 @@ def to_device(self, device):
self.model = PeftModel.from_pretrained(
self.model,
tmpdir,
torch_dtype=torch.float16,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We probably need a way to plumb this in, otherwise it's going to load in fp32, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is true yeah, I think we actually need a way to plumb in

quantization:
    bits: 16
    type: bfloat16

and

quantization:
    bits: 16
    type: float16

and then trickle this down appropriately to both the base model and the adapter.

This will also allow users to experiment with non-deepspeed-based training if they'd like (say they have a H100 or A100)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you think?

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.

None yet

2 participants