Skip to content

FIX Issue with disable adapter test#3045

Merged
BenjaminBossan merged 1 commit intohuggingface:mainfrom
BenjaminBossan:fix-issue-disable-adapter-test
Feb 17, 2026
Merged

FIX Issue with disable adapter test#3045
BenjaminBossan merged 1 commit intohuggingface:mainfrom
BenjaminBossan:fix-issue-disable-adapter-test

Conversation

@BenjaminBossan
Copy link
Member

In #3031, a fix to one of the custom models (using embedding + Conv1D) was introduced to resolve an error in the test_disable_adapters test when run on GPU. However, this very fix resulted in the test failing in some settings on CPU. This PR makes specific changes for CPU to avoid these failures.

With this PR, the mentioned tests pass locally both on CPU and GPU. Note, however, that other tests involving this custom model still fail on GPU, irrespective of the changes in #3031. Fixing these tests would probably require carefully choosing the right tolerances used in the tests, with little to no benefit for actual PEFT use. Therefore, I consider it low priority to investigate these tests.

In huggingface#3031, a fix to one of the custom models (using embedding + Conv1D)
was introduced to resolve an error in the test_disable_adapters test
when run on GPU. However, this very fix resulted in the test failing in
some settings on CPU. This PR makes specific changes for CPU to avoid
these failures.

With this PR, the mentioned tests pass locally both on CPU and GPU.
Note, however, that other tests involving this custom model still fail
on GPU, irrespective of the changes in huggingface#3031. Fixing these tests would
probably require carefully choosing the right tolerances used in the
tests, with little to no benefit for actual PEFT use. Therefore, I
consider it low priority to investigate these tests.
Copy link
Collaborator

@githubnemo githubnemo left a comment

Choose a reason for hiding this comment

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

I'm hopeful that someday in the future we are enlightened why this is happening the way it is. Today is not the day and this change is good :)

@BenjaminBossan BenjaminBossan merged commit f6a7e67 into huggingface:main Feb 17, 2026
2 of 10 checks passed
@BenjaminBossan BenjaminBossan deleted the fix-issue-disable-adapter-test branch February 17, 2026 16:04
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