[Chore] Use Transformers v5 names and drop redundant processor use_fast (#58550)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-24 14:14:10 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 484c211fe8
commit d881812500
218 changed files with 869 additions and 813 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ def getattr_iter(
) -> Any:
"""A helper function that retrieves an attribute from an object which may
have multiple possible names. This is useful when fetching attributes from
arbitrary `transformers.PretrainedConfig` instances.
arbitrary `transformers.PreTrainedConfig` instances.
In the case where the first name in `names` is the preferred name, and
any other names are deprecated aliases, setting `warn=True` will log a
@@ -314,7 +314,7 @@ def normalize_value(x):
except Exception:
return str(x)
# PretrainedConfig (must be before dataclass branch as these are now dataclasses)
# PreTrainedConfig (must be before dataclass branch as these are now dataclasses)
if hasattr(x, "to_json_string") and callable(x.to_json_string):
try:
return x.to_json_string()