Skip to content

Conversation

@BenjaminBossan
Copy link
Member

There is an error in an OFT test because .cpu() is called on a parameter instead of a module. Calling it on parameter is not an in-place operation, so it has no effect.

FYI @zqiu24

There is an error in an OFT test because .cpu() is called on a parameter
instead of a module. Calling it on parameter is not an in-place
operation, so it has no effect.
@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.

@BenjaminBossan BenjaminBossan requested a review from githubnemo July 3, 2025 14:20
@zqiu24
Copy link
Contributor

zqiu24 commented Jul 4, 2025

@BenjaminBossan Thanks, can you point me to the test?

@BenjaminBossan
Copy link
Member Author

Thanks, can you point me to the test?

def test_oft_add_new_adapter_does_not_change_device(self, mlp):

@BenjaminBossan BenjaminBossan merged commit 0755ab9 into huggingface:main Jul 7, 2025
21 of 27 checks passed
@BenjaminBossan BenjaminBossan deleted the fix-oft-parameter-device-test branch July 7, 2025 13:57
efraimdahl pushed a commit to efraimdahl/peft that referenced this pull request Jul 12, 2025
There is an error in an OFT test because .cpu() is called on a parameter
instead of a module. Calling it on parameter is not an in-place
operation, so it has no effect.
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.

4 participants