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

[tests] reset known modules that are patched on each test function end #2147

Merged
merged 6 commits into from
Dec 7, 2024

Conversation

winglian
Copy link
Collaborator

@winglian winglian commented Dec 7, 2024

No description provided.

@winglian winglian changed the title reset known modules that are patched on each test function end [tests] reset known modules that are patched on each test function end Dec 7, 2024
@winglian winglian merged commit 5bef190 into main Dec 7, 2024
9 of 11 checks passed
@winglian winglian deleted the pytest-reset-patches branch December 7, 2024 22:24
djsaunde pushed a commit that referenced this pull request Dec 16, 2024
#2147)

* reset known modules that are patched on each test function end

* fix the llama model module name

* prevent unsloth patching multiple times

* pop classes out of the globals after reset

* fix tuple indexing

* manually workaround for llama fa2
djsaunde pushed a commit that referenced this pull request Dec 17, 2024
#2147)

* reset known modules that are patched on each test function end

* fix the llama model module name

* prevent unsloth patching multiple times

* pop classes out of the globals after reset

* fix tuple indexing

* manually workaround for llama fa2
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