Skip to content

Conversation

@MekkCyber
Copy link
Contributor

What does this PR do?

When creating the dict config, checks if the key exists in the defaut config before trying to access its value.
It was causing the error :

File "./transformers/src/transformers/utils/quantization_config.py", line 1364, in to_diff_dict
    if value != default_config_dict[key]:
                ~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: 'config_groups'

@MekkCyber MekkCyber requested a review from SunMarc March 24, 2025 10:53
@github-actions github-actions bot marked this pull request as draft March 24, 2025 10:53
@github-actions
Copy link
Contributor

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. When it is ready for review, please click the Ready for review button (at the bottom of the PR page).

@MekkCyber MekkCyber marked this pull request as ready for review March 24, 2025 11:02
Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thx !

@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.

@MekkCyber MekkCyber merged commit 9e125d9 into main Mar 24, 2025
24 checks passed
@MekkCyber MekkCyber deleted the fix_dict_compressed branch March 24, 2025 12:06
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request May 14, 2025
soghomon-b pushed a commit to soghomon-b/transformers that referenced this pull request Aug 24, 2025
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