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

fix nf4 memory issue by init op_context in forward #1349

Conversation

jiqing-feng
Copy link
Contributor

@jiqing-feng jiqing-feng commented Sep 5, 2024

Fix nf4 memory issue when using state_dict().

Will open it once it's ready

@jiqing-feng jiqing-feng marked this pull request as draft September 9, 2024 08:25
Copy link

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Titus-von-Koeller
Copy link
Collaborator

Dear @jiqing-feng, please install the pre-commit hooks. Otherwise, you'll always have broken checks going forward and it's quick to install.

@jiqing-feng jiqing-feng marked this pull request as ready for review September 12, 2024 01:14
@jiqing-feng
Copy link
Contributor Author

Fix a small memory issue for nf4, the PR will not block tests from transformers.

@Titus-von-Koeller Titus-von-Koeller merged commit 2784653 into bitsandbytes-foundation:multi-backend-refactor Sep 13, 2024
2 checks passed
@jiqing-feng jiqing-feng deleted the nf4_reload branch December 3, 2024 08:22
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