Skip to content

Transformers Fix v4.57 rename from PretrainedConfig to PreTrainedConfig#3445

Merged
danielhanchen merged 1 commit into
unslothai:mainfrom
mmathew23:fix/pretrainconfig
Oct 13, 2025
Merged

Transformers Fix v4.57 rename from PretrainedConfig to PreTrainedConfig#3445
danielhanchen merged 1 commit into
unslothai:mainfrom
mmathew23:fix/pretrainconfig

Conversation

@mmathew23

Copy link
Copy Markdown
Contributor

Fixes #3415

Users also report it fixes the issue for them. The change is needed due to transformers renaming PretrainedConfig to PreTrainedConfig in the main version of transformers.

@mmathew23 mmathew23 changed the title Handle transformers rename from PretrainedConfig to PreTrainedConfig Transformers Fix v4.57 rename from PretrainedConfig to PreTrainedConfig Oct 13, 2025
@danielhanchen danielhanchen merged commit bfad39b into unslothai:main Oct 13, 2025
abiswas-realadvice pushed a commit to abiswas-realadvice/unsloth that referenced this pull request May 14, 2026
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.

[Bug] On import NameError: name 'PreTrainedConfig' is not defined. Did you mean: 'PretrainedConfig'?

2 participants