Skip to content

[Bugfix] Fix updating parameters under align_modules #361

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kylesayrs
Copy link
Contributor

Purpose

  • Fix align_modules to support updating parameters within the context
    • This was caused because turning off offloading (_hf_hook.offload = False) also meant disabling the updating of offload parameters (in the weights map)

Changes

  • Utilize disable_offloading, which updates parameters after the context exits

Testing

  • Added new parameter updating to test_align_modules

Signed-off-by: Kyle Sayers <[email protected]>
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