Skip to content

Conversation

@w-yyh
Copy link
Contributor

@w-yyh w-yyh commented Dec 8, 2025

📋 Summary of Changes
Refactor PretrainedConfig.init: Switched the signature from generic def init(self, **kwargs) to one that explicitly lists all common parameters (use_cache, return_dict, tie_word_embeddings, etc.).

Fix Attribute Overwrite (The Bug): preventing the parent class from using its hardcoded default (False) to overwrite values already set or explicitly passed by the subclass (e.g., Qwen3Config).

Preserved Custom Logic: All existing paddleformers specific logic (e.g., LlmMetaConfig initialization, fuse_ flags, quantization_config handling) remains intact and is correctly processed via kwargs.pop after the standard attributes are assigned.

@paddle-bot
Copy link

paddle-bot bot commented Dec 8, 2025

Thanks for your contribution!

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.

1 participant