Skip to content

Conversation

BenjaminBossan
Copy link
Member

@BenjaminBossan BenjaminBossan commented Jul 28, 2025

For testing target_parameters, we use a tiny Llama4 model. This model was refactored in
huggingface/transformers#39501, resulting in one parameter being accessed an additional time:

https://github.com/huggingface/transformers/pull/39501/files#diff-e668ec07f78afdb2cb805d939e47453757f0b9437436cb860fcb7cb2431c9cf5R69

(to doublle-check: bad commit: 300d42a43eb3804002b841a389637ceb99a081bb, good commit: abaa043d60edfd0eae78b7a0474aad8e5e433bda)

Therefore, a unit test that relied on how often this parameter was accessed started failing. This PR updates the count to the correct number.

Additionally changes:

  • debug print statements that were accidentally left over are now removed
  • had to loosen some tolerances for tests/test_target_parameters.py::TestDecoderModelsTargetParameters::test_disable_adapter on Windows, not sure why

For testing target_parameters, we use a tiny Llama4 model. This model
was refactored in
huggingface/transformers#39501, resulting in one
parameter being accessed an additional time:

https://github.com/huggingface/transformers/pull/39501/files#diff-e668ec07f78afdb2cb805d939e47453757f0b9437436cb860fcb7cb2431c9cf5R69

Therefore, a unit test that relied on how often this parameter was
accessed started failing. This PR updates the count to the correct
number.

Additionally debug print statements that were accidentally left over are
now removed.
@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
Copy link
Member Author

Note: MacOS tests are failing for unrelated reasons due to a change in transformers that impacts torch <= 2.3. This has been reported.

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.

Thanks for investigating and the fix, LGTM

@BenjaminBossan BenjaminBossan merged commit c11a9df into huggingface:main Jul 30, 2025
23 of 27 checks passed
@BenjaminBossan BenjaminBossan deleted the fix-failing-target-parameter-test-after-transformers-change-llama4 branch July 30, 2025 10:29
cyyever pushed a commit to cyyever/peft that referenced this pull request Sep 4, 2025
)

* added reward weights for multi-reward runs in GRPO

* reward_weights are float, moved from GRPOTrainer to GRPOConfig

* minor comment fix

* minor

* fix test

* missing link

---------

Co-authored-by: Quentin Gallouédec <[email protected]>
Co-authored-by: Quentin Gallouédec <[email protected]>
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