Skip to content

Remove deprecated training args and is_fast property#46917

Merged
Rocketknight1 merged 1 commit into
huggingface:mainfrom
cyyever:cleanup/overdue-deprecations
Jul 22, 2026
Merged

Remove deprecated training args and is_fast property#46917
Rocketknight1 merged 1 commit into
huggingface:mainfrom
cyyever:cleanup/overdue-deprecations

Conversation

@cyyever

@cyyever cyyever commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

CI

What does this PR do?

Removes overdue deprecations:

  • Deprecated TrainingArguments fields warmup_ratio and logging_dir (plus their __post_init__ migration logic and the warmup_ratio arg in set_lr_scheduler). Docs updated to use warmup_steps (which accepts a float ratio).

  • Deprecated is_fast property from image processing backends (superseded by the backend attribute).

  • I confirm that this is not a pure code agent PR.

Who can review?

trainer: @SunMarc

@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: byt5

@cyyever
cyyever force-pushed the cleanup/overdue-deprecations branch from f1337e6 to d8887ad Compare June 26, 2026 12:25
@Rocketknight1

Copy link
Copy Markdown
Member

cc @SunMarc if we're okay to remove these!

@SunMarc SunMarc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup !

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes deprecated APIs from the Transformers codebase, primarily by deleting legacy TrainingArguments parameters and related deprecation-handling code.

Changes:

  • Removed deprecated TrainingArguments.warmup_ratio and TrainingArguments.logging_dir, plus their associated __post_init__ warnings/migration logic.
  • Removed the deprecated warmup_ratio parameter from TrainingArguments.set_lr_scheduler.
  • Removed the deprecated is_fast property from the image processing backend implementations (Torchvision/PIL backends).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/transformers/training_args.py Drops deprecated training-argument fields and cleans up deprecated scheduler-arg plumbing.
src/transformers/image_processing_backends.py Removes deprecated is_fast property in favor of the backend attribute.

Comment thread src/transformers/training_args.py
Comment thread src/transformers/image_processing_backends.py
@cyyever
cyyever force-pushed the cleanup/overdue-deprecations branch from d8887ad to ba2d03d Compare July 22, 2026 04:27
@cyyever cyyever changed the title Remove deprecated training args Remove deprecated training args and is_fast property Jul 22, 2026
@cyyever

cyyever commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@SunMarc @Rocketknight1 It's ready.

@cyyever
cyyever force-pushed the cleanup/overdue-deprecations branch from ba2d03d to 6988efc Compare July 22, 2026 04:30
@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 29891097431:2
Result: success | Jobs: 4 | Tests: 2,918 | Failures: 0 | Duration: 5m 28s

@Rocketknight1
Rocketknight1 enabled auto-merge July 22, 2026 12:44
@Rocketknight1
Rocketknight1 added this pull request to the merge queue Jul 22, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

Merged via the queue into huggingface:main with commit b6297c0 Jul 22, 2026
106 checks passed
@cyyever
cyyever deleted the cleanup/overdue-deprecations branch July 22, 2026 13:17
SangbumChoi added a commit to SangbumChoi/transformers that referenced this pull request Jul 22, 2026
* upstream/main: (39 commits)
  Remove deprecated training args and `is_fast` property (huggingface#46917)
  Consistent output shape from `get_image_features` (huggingface#46405)
  Fix multi-device mxfp4 dequantization race in `_convert_moe_packed_tensors` (huggingface#47423)
  fix failed test cases for qwen3_omni_moe model (huggingface#47449)
  Fix Hunyuan-VL PIL image resize parity with reference preprocessing (huggingface#47233)
  Move `value` padding into the attention interfaces that need it (huggingface#47451)
  Simplify function dispatch for linear attention (huggingface#47450)
  [cache] Allow sliding window layers to be roll-backed for speculative decoding (huggingface#47447)
  Fix double-shifted training loss in GitForCausalLM (huggingface#47395)
  Fix CohereASR training-loss double-shift (same as Moonshine fix huggingface#46784) (huggingface#46895)
  Warn when `group_by_length` is silently ignored for iterable datasets (huggingface#47379)
  Update bug report list (huggingface#46607)
  Fix shape mismatch in KyutaiSpeechToText `generate()` last window (huggingface#46952)
  Optimize flash attention max seqlen computation in vision attention (huggingface#47170)
  fix: remove unreachable return in special token builder (huggingface#47420)
  Add Harry to slow CI (huggingface#47454)
  BLT: vectorize patch length processing (huggingface#47385)
  Fix `TrackioCallback` fails to log evaluation metrics after training ends (huggingface#46935)
  [Kimi] add integration tests (huggingface#47383)
  Fix typo in `MusicgenForCausalLM.generate()` (huggingface#46974)
  ...
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.

5 participants