FIX Failing target_parameters param usage count #2676
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For testing
target_parameters
, we use a tiny Llama4 model. This model was refactored inhuggingface/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:
tests/test_target_parameters.py::TestDecoderModelsTargetParameters::test_disable_adapter
on Windows, not sure why