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 test_model_reload test #1005

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

kylesayrs
Copy link
Collaborator

Purpose

  • Fix failing test_model_reload resulting from slightly different behavior of update_offload_parameter

Changes

  • With the newest changes to update_offload_parameter, the new parameter data is copied into the existing tensor rather than replacing it. This breaks its use case for patch_tied_tensors_bug, which uses the function to create new tensors which are untied.

Testing

  • Previously failing tests in tests/llmcompressor/transformers/sparsification/test_compress_tensor_utils.py now pass

Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Copy link

👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review.

Copy link
Collaborator

@dsikka dsikka left a comment

Choose a reason for hiding this comment

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

awesome

@dsikka dsikka merged commit bb8660a into main Dec 20, 2024
7 of 8 checks passed
@dsikka dsikka deleted the kylesayrs/fix-update_offload_parameter-test branch December 20, 2024 20:52
kylesayrs added a commit that referenced this pull request Dec 23, 2024
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
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.

3 participants