Skip to content

FIX Missing low_cpu_mem_usage argument#2156

Merged
BenjaminBossan merged 1 commit intohuggingface:mainfrom
BenjaminBossan:fix-missing-low_cpu_mem_usage-argument
Oct 18, 2024
Merged

FIX Missing low_cpu_mem_usage argument#2156
BenjaminBossan merged 1 commit intohuggingface:mainfrom
BenjaminBossan:fix-missing-low_cpu_mem_usage-argument

Conversation

@BenjaminBossan
Copy link
Member

The newly introduced low_cpu_mem_usage argument was not propagated to the add_adapter method of all PeftModel task types. This is now fixed and tests were added.

Tests were only added for LoRA to avoid running many relatively slow and redundant tests and because low_cpu_mem_usage is not implemented for prompt learning models.

The newly introduced low_cpu_mem_usage argument was not propagated to
the add_adapter method of all PeftModel task types. This is now fixed
and tests were added.
@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
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Thanks! I like the modular design of the tests!

@BenjaminBossan BenjaminBossan merged commit 58a9976 into huggingface:main Oct 18, 2024
@BenjaminBossan BenjaminBossan deleted the fix-missing-low_cpu_mem_usage-argument branch October 18, 2024 08:43
sirluk pushed a commit to sirluk/peft that referenced this pull request Oct 19, 2024
The newly introduced low_cpu_mem_usage argument was not propagated to
the add_adapter method of all PeftModel task types. This is now fixed
and tests were added.
yaswanth19 pushed a commit to yaswanth19/peft that referenced this pull request Oct 20, 2024
The newly introduced low_cpu_mem_usage argument was not propagated to
the add_adapter method of all PeftModel task types. This is now fixed
and tests were added.
yaswanth19 pushed a commit to yaswanth19/peft that referenced this pull request Oct 20, 2024
The newly introduced low_cpu_mem_usage argument was not propagated to
the add_adapter method of all PeftModel task types. This is now fixed
and tests were added.
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
The newly introduced low_cpu_mem_usage argument was not propagated to
the add_adapter method of all PeftModel task types. This is now fixed
and tests were added.
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