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

[FSDP] Enable loading prequantized weights with bf16/fp16/fp32 quant_storage #1295

Conversation

matthewdouglas
Copy link
Member

This is a companion PR for huggingface/transformers#32276 to allow us to load prequantized weights with alternate storage. We keep track of metadata we need the same way we would with Params4bit.__new__ after PR #970.

This works with models exported with a non-default quant_storage such as this one in NF4 with BF16 storage.

@Titus-von-Koeller
@winglian

@matthewdouglas matthewdouglas merged commit 3a6911f into bitsandbytes-foundation:main Jul 29, 2024
22 checks passed
@matthewdouglas matthewdouglas deleted the fsdp-load-prequantized branch July 29, 2024 15:11
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.

1 participant