Skip to content

Removed all the deprecated python training code and related tests and utils#18333

Merged
askhade merged 5 commits intomainfrom
askhade/del_deprecated_training_code_part1
Nov 18, 2023
Merged

Removed all the deprecated python training code and related tests and utils#18333
askhade merged 5 commits intomainfrom
askhade/del_deprecated_training_code_part1

Conversation

@askhade
Copy link
Contributor

@askhade askhade commented Nov 7, 2023

Description

Motivation for this PR is code cleanup.

  1. Remove all deprecated python code related to orttrainer, old checkpoint, related tests and utils
  2. Cleanup orttraining_pybind_state.cc to remove all deprecated bindings.

Copy link
Contributor

@Lafi7e Lafi7e left a comment

Choose a reason for hiding this comment

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

Looks like below two files can also be removed:

  • onnxruntime/test/python/onnxruntime_test_training_unittest_utils.py
  • orttraining/orttraining/python/checkpointing_utils.py

@askhade askhade requested a review from xadupre November 15, 2023 19:21
pass
raise
from onnxruntime.training.ortmodule import ORTModule
from onnxruntime.training.ortmodule._graph_execution_manager_factory import GraphExecutionManagerFactory # noqa: F401

Check notice

Code scanning / CodeQL

Unused import

Import of 'GraphExecutionManagerFactory' is not used.
@xadupre
Copy link
Member

xadupre commented Nov 16, 2023

It looks good to me. Should we remove this code in two steps: first a warning then a true deletion?

pengwa
pengwa previously approved these changes Nov 17, 2023
Copy link
Contributor

@pengwa pengwa left a comment

Choose a reason for hiding this comment

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

LGTM. We should add a note in new release for the deprecation information.

@askhade
Copy link
Contributor Author

askhade commented Nov 17, 2023

It looks good to me. Should we remove this code in two steps: first a warning then a true deletion?

The warning has been in place for quite some time now: https://github.com/microsoft/onnxruntime/pull/13022/files. This is the second step.

@askhade askhade merged commit 0233329 into main Nov 18, 2023
@askhade askhade deleted the askhade/del_deprecated_training_code_part1 branch November 18, 2023 02:19
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
… utils (microsoft#18333)

### Description
Motivation for this PR is code cleanup.

1. Remove all deprecated python code related to orttrainer, old
checkpoint, related tests and utils
2. Cleanup orttraining_pybind_state.cc to remove all deprecated
bindings.
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.

4 participants