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

Skip tied weights disk offload test #2782

Merged
merged 4 commits into from
May 16, 2024
Merged

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented May 15, 2024

What does this do ?

This PR skips a flaky test. Not sure why it happens but the data_ptr() of compute2.weight is sometimes the same of compute1.weight. Hence it is using the same value as compute1 through self.tied_params_map and we get an assert error. I checked that the values are not the same but it gives the same address. This does not happen on my local machine and it passes sometimes on the CI. Maybe an issue with the hardware. We should have enough coverage with test_dispatch_model_tied_weights_memory_with_nested_offload_cpu, so I think it's fine if we skip it.

cc @fxmarty

@SunMarc SunMarc requested a review from muellerzr May 15, 2024 15:35
Comment on lines 487 to 488
# This test fails because sometimes data_ptr() of compute2.weight is the same of compute1.weight.
# I check that the values are not the same but it gives the same address. This does not happen on my local machine.
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we have enough coverage that seems okay, however we can also do a @flakey decorator that retries the test some amount of times first (maybe 3?)

Copy link
Member Author

@SunMarc SunMarc May 15, 2024

Choose a reason for hiding this comment

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

I thought about that but I guess it depends more on the hardware. I launch the test a lot of time when debugging and it was failing each time.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, we can just skip then :)

@HuggingFaceDocBuilderDev

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.

Copy link
Collaborator

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Thanks!

@SunMarc SunMarc merged commit 91e8a3c into huggingface:main May 16, 2024
23 checks passed
yhna940 pushed a commit to yhna940/accelerate that referenced this pull request May 16, 2024
* skip

* fix

* quality

* fix comment
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