Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Reinstate PEFT_TYPE_TO_MODEL_MAPPING variable with deprecation #2328

Conversation

BenjaminBossan
Copy link
Member

@BenjaminBossan BenjaminBossan commented Jan 14, 2025

This is for backwards compatibility: In #2282, PEFT_TYPE_TO_MODEL_MAPPING was removed as it was redundant with PEFT_TYPE_TO_TUNER_MAPPING. However, third party code could still use this mapping, e.g.:

https://github.com/AutoGPTQ/AutoGPTQ/blob/6689349625de973b9ee3016c28c11f32acf7f02c/auto_gptq/utils/peft_utils.py#L8

Therefore, it is reinstated here, but a DeprecationWarning will be given if it's used.

This is for backwards compatibility: In huggingface#2282,
PEFT_TYPE_TO_MODEL_MAPPING was removed as it was redundant with
PEFT_TYPE_TO_TUNER_MAPPING. However, third party code could still use
this mapping, e.g.:

https://github.com/AutoGPTQ/AutoGPTQ/blob/6689349625de973b9ee3016c28c11f32acf7f02c/auto_gptq/utils/peft_utils.py#L8

Therefore, it is reinstated here, but a DeprecationWarning will be given
if it's used.
@BenjaminBossan BenjaminBossan changed the title Fix reinstate peft type to model mapping variable with deprecation FIX: Reinstate PEFT_TYPE_TO_MODEL_MAPPING variable with deprecation Jan 14, 2025
@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 merged commit 0ab9711 into huggingface:main Jan 14, 2025
14 checks passed
@BenjaminBossan BenjaminBossan deleted the fix-reinstate-peft_type_to_model_mapping-variable-with-deprecation branch January 14, 2025 16:48
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