Skip to content

refactor: remove deprecations past their removal window for v0.11.1 - #645

Merged
rebel-thkim merged 1 commit into
devfrom
remove-deprecated-load
Jul 28, 2026
Merged

refactor: remove deprecations past their removal window for v0.11.1#645
rebel-thkim merged 1 commit into
devfrom
remove-deprecated-load

Conversation

@rebel-thkim

Copy link
Copy Markdown
Contributor

Summary

Per the deprecation policy in src/optimum/rbln/utils/deprecation.py (raise an error for one release at the deprecated version, then remove in the following release), this removes everything whose window closed at v0.11.0 or earlier, ahead of the v0.11.1 release.

Removed (past due)

Target Type Deprecated since
RBLNAutoConfig.load, RBLNModelConfig.load deprecate_methodfrom_pretrained v0.11.0
max_seq_lensmax_seq_len (Qwen2-VL / Qwen2.5-VL / Qwen3-VL vision configs) deprecate_kwarg v0.11.0
pad_token_id (RBLNModelForSeq2SeqLMConfig) deprecate_kwarg v0.10.0 (overdue)
num_mel_bins (RBLNASTForAudioClassificationConfig) deprecate_kwarg v0.10.0 (overdue)

The load methods were pure delegating aliases of from_pretrained, so the whole method (not just the decorator) is deleted. A repo-wide search (src / tests / examples / docs, including comments and docstrings) found no remaining callers or references; the only hits were the deleted methods' own docstring examples. The load example in deprecation.py's docstring is a generic usage illustration of the decorator and is kept.

Old kwargs now fail with the standard ValueError: Unexpected arguments from RBLNModelConfig.__init__, so misuse still surfaces clearly.

Kept (window not yet closed — v0.12.0)

  • model_input_shapes (configuration_generic.py)
  • tensor_parallel_sizenum_devices, _torch_dtypedtype (configuration_utils.py)

Verification

  • ruff format --check and ruff check --select I pass on all edited files.
  • python -m py_compile passes.
  • pytest tests/test_config.py tests/test_base.py could not collect in my local environment due to a pre-existing rebel._C version mismatch unrelated to this change; the existing deprecation tests only cover the v0.12.0 deprecations, which are untouched. Please rely on CI for the test run.

🤖 Generated with Claude Code

Per the deprecation policy in utils/deprecation.py (raise for one release
at the deprecated version, then remove in the next release), remove
everything whose window closed at v0.11.0 or earlier:

- Delete RBLNAutoConfig.load and RBLNModelConfig.load (deprecated since
  v0.11.0; from_pretrained is the replacement and both were pure
  delegating aliases). No remaining callers in src/tests/examples/docs.
- Drop @deprecate_kwarg(max_seq_lens -> max_seq_len, v0.11.0) from
  Qwen2-VL / Qwen2.5-VL / Qwen3-VL vision configs.
- Drop @deprecate_kwarg(pad_token_id, v0.10.0) from seq2seq config and
  @deprecate_kwarg(num_mel_bins, v0.10.0) from AST config (both overdue).

Old kwargs now fail with the standard "Unexpected arguments" ValueError
from RBLNModelConfig.__init__. Deprecations targeting v0.12.0
(model_input_shapes, tensor_parallel_size, _torch_dtype) are kept.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@rebel-thkim
rebel-thkim requested a review from rebel-kblee July 27, 2026 10:38

@rebel-kblee rebel-kblee 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.

👍

@rebel-thkim
rebel-thkim merged commit fa3945a into dev Jul 28, 2026
26 checks passed
@rebel-thkim
rebel-thkim deleted the remove-deprecated-load branch July 28, 2026 03:05
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.

2 participants