You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v5.4.0 breaks PretrainedConfig type checking #45071
We don't guarantee mypy compatibility unfortunately! If someone can find a clean fix that restores it, we might merge that PR, but we don't want to add a lot of code complexity to do it
We don't guarantee that mypy would work, indeed. Instead, we are slowly moving towards making transformers ty-compatible, and I can confirm that ty complains about the same things
Activity
Cap transformers at `<5.4.0` (#372)
Rocketknight1 commentedon Apr 2, 2026
We don't guarantee
mypycompatibility unfortunately! If someone can find a clean fix that restores it, we might merge that PR, but we don't want to add a lot of code complexity to do itfix: restore mypy type checking for PreTrainedConfig subclasses (hugg…
fix: restore mypy type checking for PreTrainedConfig subclasses (hugg…
shhKnight30 commentedon Apr 5, 2026
@Rocketknight1 please look at my PR once
zucchini-nlp commentedon Apr 9, 2026
@fynnsu hey, we'll merge the suggestion from @shhKnight30
We don't guarantee that mypy would work, indeed. Instead, we are slowly moving towards making transformers
ty-compatible, and I can confirm thattycomplains about the same thingsCap transformers at `<5.4.0` (vllm-project#372)
fix: restore mypy type checking for PreTrainedConfig subclasses (#45071…
fix: restore mypy type checking for PreTrainedConfig subclasses (hugg…